blob: a676e257bb81af94408453eafa9e9da61cb146a5 [file] [log] [blame]
#pragma once
#include "interfaces/metric.hpp"
#include "interfaces/sensor_listener.hpp"
class Metric : public interfaces::Metric, public interfaces::SensorListener
{
public:
const std::vector<MetricValue>& getReadings() const override
{
return readings;
}
void sensorUpdated(interfaces::Sensor&, uint64_t) override
{}
void sensorUpdated(interfaces::Sensor&, uint64_t, double value) override
{}
private:
std::vector<MetricValue> readings;
};