report.hpp (dcc4e1936173a93251a02066432bc2bcbc386240) report.hpp (7e098e93ef0974739459d296f99ddfab54722c23)
1#pragma once
2
3#include "interfaces/json_storage.hpp"
4#include "interfaces/metric.hpp"
5#include "interfaces/report.hpp"
6#include "interfaces/report_manager.hpp"
7#include "types/report_types.hpp"
8

--- 9 unchanged lines hidden (view full) ---

18 public:
19 Report(boost::asio::io_context& ioc,
20 const std::shared_ptr<sdbusplus::asio::object_server>& objServer,
21 const std::string& reportName, const std::string& reportingType,
22 const bool emitsReadingsSignal,
23 const bool logToMetricReportsCollection, const Milliseconds period,
24 interfaces::ReportManager& reportManager,
25 interfaces::JsonStorage& reportStorage,
1#pragma once
2
3#include "interfaces/json_storage.hpp"
4#include "interfaces/metric.hpp"
5#include "interfaces/report.hpp"
6#include "interfaces/report_manager.hpp"
7#include "types/report_types.hpp"
8

--- 9 unchanged lines hidden (view full) ---

18 public:
19 Report(boost::asio::io_context& ioc,
20 const std::shared_ptr<sdbusplus::asio::object_server>& objServer,
21 const std::string& reportName, const std::string& reportingType,
22 const bool emitsReadingsSignal,
23 const bool logToMetricReportsCollection, const Milliseconds period,
24 interfaces::ReportManager& reportManager,
25 interfaces::JsonStorage& reportStorage,
26 std::vector<std::shared_ptr<interfaces::Metric>> metrics);
26 std::vector<std::shared_ptr<interfaces::Metric>> metrics,
27 const bool enabled);
27 ~Report() = default;
28
29 Report(const Report&) = delete;
30 Report(Report&&) = delete;
31 Report& operator=(const Report&) = delete;
32 Report& operator=(Report&&) = delete;
33
34 std::string getName() const override

--- 28 unchanged lines hidden (view full) ---

63 std::shared_ptr<sdbusplus::asio::object_server> objServer;
64 std::unique_ptr<sdbusplus::asio::dbus_interface> reportIface;
65 std::unique_ptr<sdbusplus::asio::dbus_interface> deleteIface;
66 std::vector<std::shared_ptr<interfaces::Metric>> metrics;
67 boost::asio::steady_timer timer;
68
69 interfaces::JsonStorage::FilePath fileName;
70 interfaces::JsonStorage& reportStorage;
28 ~Report() = default;
29
30 Report(const Report&) = delete;
31 Report(Report&&) = delete;
32 Report& operator=(const Report&) = delete;
33 Report& operator=(Report&&) = delete;
34
35 std::string getName() const override

--- 28 unchanged lines hidden (view full) ---

64 std::shared_ptr<sdbusplus::asio::object_server> objServer;
65 std::unique_ptr<sdbusplus::asio::dbus_interface> reportIface;
66 std::unique_ptr<sdbusplus::asio::dbus_interface> deleteIface;
67 std::vector<std::shared_ptr<interfaces::Metric>> metrics;
68 boost::asio::steady_timer timer;
69
70 interfaces::JsonStorage::FilePath fileName;
71 interfaces::JsonStorage& reportStorage;
72 bool enabled;
71
72 public:
73 static constexpr const char* reportIfaceName =
74 "xyz.openbmc_project.Telemetry.Report";
75 static constexpr const char* reportDir =
76 "/xyz/openbmc_project/Telemetry/Reports/";
77 static constexpr const char* deleteIfaceName =
78 "xyz.openbmc_project.Object.Delete";
79 static constexpr size_t reportVersion = 4;
80};
73
74 public:
75 static constexpr const char* reportIfaceName =
76 "xyz.openbmc_project.Telemetry.Report";
77 static constexpr const char* reportDir =
78 "/xyz/openbmc_project/Telemetry/Reports/";
79 static constexpr const char* deleteIfaceName =
80 "xyz.openbmc_project.Object.Delete";
81 static constexpr size_t reportVersion = 4;
82};