Template Class HwMonBackend
Defined in File hardware_monitor_backend.hpp
Class Documentation
-
template<class DEV>
class HwMonBackend HwMonBackend retrieves the monitoring information for the requested number of cards. The monitored quantities are those available in FlxCard's monitoring_data_t. A custom set of registers to monitor can be passed by means of a file read at startup time. The monitoring information is returned in json format. No interaction with the network.
Public Functions
-
HwMonBackend(const std::vector<device_pair> &device_pairs, const std::string &extras_file)
- Parameters:
device_pairs -- pair of primary and secondary device of a card.
extras_file -- name of file containing additional registers to monitor.
-
std::string get_monitor_data()
- Returns:
string containing the monitoring information in JSON format.
-
HwMonBackend(const std::vector<device_pair> &device_pairs, const std::string &extras_file)