Removed FutureVersion from API
Instead of using FutureVersion API currently used version is updated.
This change needs to be bumped together with [1]. API that utilized map
of variants to be more flexible and backwards compatible was reverted.
It was decided that straight forward API that is commonly used should be
used instead.
Removed MetricId property from Metric. In telemetry it was implemented
as a name for Metric, but it was supposed to work as described in [2].
Currently MetricId is not supported by telemetry service and property
was removed.
Tested:
- After chaging bmcweb to use new API old and new features are working
as expected
[1]: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/44270
[2]: https://redfish.dmtf.org/schemas/v1/MetricReportDefinition.v1_4_2.json
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: I5930a466a370f268d68f575a4a3db5ee9655e574
diff --git a/src/metric.hpp b/src/metric.hpp
index e6c0ea1..fa462cb 100644
--- a/src/metric.hpp
+++ b/src/metric.hpp
@@ -14,9 +14,8 @@
public std::enable_shared_from_this<Metric>
{
public:
- Metric(Sensors sensors, OperationType operationType, std::string id,
- CollectionTimeScope, CollectionDuration,
- std::unique_ptr<interfaces::Clock>);
+ Metric(Sensors sensors, OperationType operationType, CollectionTimeScope,
+ CollectionDuration, std::unique_ptr<interfaces::Clock>);
void initialize() override;
void deinitialize() override;
@@ -34,7 +33,6 @@
metrics::CollectionData&
findAssociatedData(const interfaces::Sensor& notifier);
- std::string id;
std::vector<MetricValue> readings;
Sensors sensors;
OperationType operationType;