blob: c01c34a375fc57eaff8d24dcbc0498e11c792e5c [file] [log] [blame]
#pragma once
#include <sdbusplus/asio/object_server.hpp>
#include <chrono>
#include <memory>
#include <vector>
class ReportManager
{
public:
ReportManager(
const std::shared_ptr<sdbusplus::asio::object_server>& objServer);
~ReportManager();
ReportManager(const ReportManager&) = delete;
ReportManager& operator=(const ReportManager&) = delete;
private:
std::shared_ptr<sdbusplus::asio::object_server> objServer;
std::shared_ptr<sdbusplus::asio::dbus_interface> reportManagerIntf;
static constexpr uint32_t maxReports{20};
static constexpr std::chrono::milliseconds minInterval{1000};
};