blob: 67276932d706e0218cbfe267b2193e5c15b30684 [file] [log] [blame]
#pragma once
#include <boost/asio/io_service.hpp>
#include <sensor.hpp>
class NVMeSensor : public Sensor
{
public:
NVMeSensor(sdbusplus::asio::object_server& objectServer,
boost::asio::io_service& io,
std::shared_ptr<sdbusplus::asio::connection>& conn,
const std::string& sensorName,
std::vector<thresholds::Threshold>&& thresholds,
const std::string& sensorConfiguration, const int busNumber);
virtual ~NVMeSensor();
NVMeSensor& operator=(const NVMeSensor& other) = delete;
int bus;
private:
sdbusplus::asio::object_server& objServer;
void checkThresholds(void) override;
};