Home
last modified time | relevance | path

Searched full:reportingtype (Results 1 – 15 of 15) sorted by relevance

/openbmc/telemetry/src/types/
H A Dreporting_type.hpp12 enum class ReportingType : uint32_t enum
23 struct EnumTraits<ReportingType>
25 static constexpr auto propertyName = ConstexprString{"ReportingType"};
28 constexpr std::array<std::pair<std::string_view, ReportingType>, 3>
30 {std::make_pair<std::string_view, ReportingType>(
31 "xyz.openbmc_project.Telemetry.Report.ReportingType.OnChange",
32 ReportingType::onChange),
33 std::make_pair<std::string_view, ReportingType>(
34 "xyz.openbmc_project.Telemetry.Report.ReportingType.OnRequest",
35 ReportingType::onRequest),
[all …]
/openbmc/telemetry/src/
H A Dreport_manager.cpp49 std::string reportName, std::string reportingType, in ReportManager()
54 if (reportingType.empty()) in ReportManager()
56 reportingType = in ReportManager()
57 utils::enumToString(ReportingType::onRequest); in ReportManager()
77 utils::toReportingType(reportingType), in ReportManager()
102 const ReportingType reportingType, Milliseconds interval, in verifyAddReport() argument
121 if ((reportingType == ReportingType::periodic && interval < minInterval) || in verifyAddReport()
122 (reportingType != ReportingType::periodic && in verifyAddReport()
139 const std::string& reportName, const ReportingType reportingType, in addReport() argument
147 return addReport(reportId, reportName, reportingType, reportActions, in addReport()
[all …]
H A Dreport.cpp25 const ReportingType reportingTypeIn, in Report()
34 name(reportName), reportingType(reportingTypeIn), interval(intervalIn), in Report()
39 deduceBufferSize(reportUpdates, reportingType)), in Report()
68 auto errorMessages = verify(reportingType, interval); in Report()
157 const ReportingType reportingTypeIn) const in deduceBufferSize()
160 reportingTypeIn == ReportingType::onRequest) in deduceBufferSize()
173 deduceBufferSize(newReportUpdates, reportingType); in setReadingBuffer()
209 ReportingType newReportingTypeT = reportingType; in makeReportInterface()
232 throw errors::InvalidArgument("ReportingType"); in makeReportInterface()
235 if (reportingType != newReportingTypeT) in makeReportInterface()
[all …]
H A Dreport_manager.hpp48 const ReportingType reportingType, Milliseconds interval,
53 const std::string& reportName, const ReportingType reportingType,
59 const ReportingType reportingType,
H A Dreport.hpp59 const ReportingType reportingType,
99 const ReportingType reportingTypeIn) const;
111 static std::vector<ErrorMessage> verify(ReportingType, Milliseconds);
116 ReportingType reportingType; member in Report
H A Dreport_factory.hpp34 const ReportingType reportingType,
H A Dreport_factory.cpp20 const ReportingType reportingType, in make() argument
43 bus->get_io_context(), objServer, id, name, reportingType, in make()
/openbmc/telemetry/tests/src/
H A Dtest_report.cpp48 return defaultParams().reportingType(ReportingType::onChange); in defaultOnChangeParams()
139 params.reportId(), params.reportName(), params.reportingType(), in makeReport()
244 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "ReportingType"), in TEST_F()
245 Eq(utils::enumToString(defaultParams().reportingType()))); in TEST_F()
429 utils::enumToString(ReportingType::periodic), in TEST_F()
452 .reportingType(ReportingType::onRequest) in TEST_F()
469 .reportingType(ReportingType::onRequest) in TEST_F()
476 EXPECT_THAT(getProperty<std::string>(report->getPath(), "ReportingType"), in TEST_F()
477 Eq(utils::enumToString(ReportingType::onRequest))); in TEST_F()
484 .reportingType(ReportingType::onRequest) in TEST_F()
[all …]
H A Dtest_report_manager.cpp80 utils::enumToString(params.reportingType()), in addReport()
149 make("Report"s, "Report"s, ReportingType::onRequest, in TEST_F()
168 .expectMake(reportParams.reportingType(ReportingType::onChange), in TEST_F()
329 reportParams.reportingType(ReportingType::periodic); in TEST_F()
562 {"ReportingType", utils::toUnderlying(reportParams.reportingType())},
/openbmc/telemetry/tests/src/params/
H A Dreport_params.hpp35 ReportParams& reportingType(const ReportingType val) in reportingType() function in ReportParams
41 ReportingType reportingType() const in reportingType() function in ReportParams
126 << params.reportNameProperty << "\", ReportingType: \"" in PrintTo()
145 ReportingType reportingTypeProperty = ReportingType::onChange;
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DReport.interface.yaml10 It triggers update of the Readings property. If ReportingType is not
14 Performs safe modification of ReportingType and Interval properties
18 - name: ReportingType
19 type: enum[self.ReportingType]
55 - name: ReportingType
56 type: enum[self.ReportingType]
115 - name: ReportingType
175 ReportingType property has value "Periodic", but Interval is set
H A DReportManager.interface.yaml24 - name: reportingType
25 type: enum[xyz.openbmc_project.Telemetry.Report.ReportingType]
/openbmc/bmcweb/redfish-core/lib/
H A Dmetric_report_definition.hpp133 "xyz.openbmc_project.Telemetry.Report.ReportingType.OnChange") in toRedfishReportingType()
138 "xyz.openbmc_project.Telemetry.Report.ReportingType.OnRequest") in toRedfishReportingType()
143 "xyz.openbmc_project.Telemetry.Report.ReportingType.Periodic") in toRedfishReportingType()
154 return "xyz.openbmc_project.Telemetry.Report.ReportingType.OnChange"; in toDbusReportingType()
158 return "xyz.openbmc_project.Telemetry.Report.ReportingType.OnRequest"; in toDbusReportingType()
162 return "xyz.openbmc_project.Telemetry.Report.ReportingType.Periodic"; in toDbusReportingType()
280 std::string reportingType; in fillReportDefinition() local
289 dbus_utils::UnpackErrorPrinter(), properties, "ReportingType", in fillReportDefinition()
290 reportingType, "Interval", interval, "ReportActions", reportActions, in fillReportDefinition()
302 toRedfishReportingType(reportingType); in fillReportDefinition()
[all …]
/openbmc/telemetry/src/interfaces/
H A Dreport_factory.hpp40 const ReportingType reportingType,
/openbmc/telemetry/tests/src/mocks/
H A Dreport_factory_mock.hpp62 (const std::string&, const std::string&, const ReportingType,
81 params.reportingType(), params.reportActions(), in expectMake()