blob: 67276932d706e0218cbfe267b2193e5c15b30684 [file] [log] [blame]
Nikhil Potadeb669b6b2019-03-13 10:52:21 -07001#pragma once
2
Zhikui Renf57836b2020-09-25 15:33:55 -07003#include <boost/asio/io_service.hpp>
Nikhil Potadeb669b6b2019-03-13 10:52:21 -07004#include <sensor.hpp>
5
6class NVMeSensor : public Sensor
7{
8 public:
9 NVMeSensor(sdbusplus::asio::object_server& objectServer,
10 boost::asio::io_service& io,
11 std::shared_ptr<sdbusplus::asio::connection>& conn,
12 const std::string& sensorName,
Ed Tanous8a57ec02020-10-09 12:46:52 -070013 std::vector<thresholds::Threshold>&& thresholds,
Nikhil Potadeb669b6b2019-03-13 10:52:21 -070014 const std::string& sensorConfiguration, const int busNumber);
15 virtual ~NVMeSensor();
16
17 NVMeSensor& operator=(const NVMeSensor& other) = delete;
18
Nikhil Potadeb669b6b2019-03-13 10:52:21 -070019 int bus;
20
21 private:
22 sdbusplus::asio::object_server& objServer;
23
24 void checkThresholds(void) override;
25};