created AddReportFutureVersion dbus method
New method will support CollectionTimeScope, CollectionDuration
In order to make not breaking interface changes bmcweb will switch to
AddReportFutureVersion, then AddReport will be changed to match
AddReportFutureVersion, then redfish will switch back to use AddReport,
then AddReportFutureVersion will be removed.
Tested:
- Verified that current version of bmcweb works fine with old API
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: I51a9b7fb2f4da5b8d2f688ccd5e93710352b1ac7
diff --git a/src/numeric_threshold.hpp b/src/numeric_threshold.hpp
index 0951956..338d00b 100644
--- a/src/numeric_threshold.hpp
+++ b/src/numeric_threshold.hpp
@@ -4,7 +4,8 @@
#include "interfaces/sensor_listener.hpp"
#include "interfaces/threshold.hpp"
#include "interfaces/trigger_action.hpp"
-#include "interfaces/trigger_types.hpp"
+#include "types/milliseconds.hpp"
+#include "types/trigger_types.hpp"
#include <boost/asio/steady_timer.hpp>
@@ -19,11 +20,10 @@
{
public:
NumericThreshold(
- boost::asio::io_context& ioc,
- std::vector<std::shared_ptr<interfaces::Sensor>> sensors,
+ boost::asio::io_context& ioc, Sensors sensors,
std::vector<std::string> sensorNames,
std::vector<std::unique_ptr<interfaces::TriggerAction>> actions,
- std::chrono::milliseconds dwellTime, numeric::Direction direction,
+ Milliseconds dwellTime, numeric::Direction direction,
double thresholdValue);
~NumericThreshold();
@@ -33,9 +33,9 @@
private:
boost::asio::io_context& ioc;
- const std::vector<std::shared_ptr<interfaces::Sensor>> sensors;
+ const Sensors sensors;
const std::vector<std::unique_ptr<interfaces::TriggerAction>> actions;
- const std::chrono::milliseconds dwellTime;
+ const Milliseconds dwellTime;
const numeric::Direction direction;
const double thresholdValue;