Zigbee Protocol Controller 1.6.0
zigpc_diagnostics_metric Class Referenceabstract

Abstract top level metric from which all diagnostic metric derive from. More...

#include <zigpc_diagnostics_metric.hpp>

Inheritance diagram for zigpc_diagnostics_metric:
zigpc_counter_plugin_metric zigpc_cpu_load_metric zigpc_example_metric zigpc_mem_usage_metric zigpc_neighbor_metric zigpc_uptime_metric

Public Member Functions

 zigpc_diagnostics_metric (zigpc_diagnostics_notification &notif, std::string metric_id)
 Generic diagnostic metric constructor. More...
 
std::string get_metric_id (void) const
 
std::string get_serialized_value (void) const
 
virtual void update_value (void)=0
 

Protected Attributes

zigpc_diagnostics_notificationon_update_complete
 
std::string metric_id
 
std::string serialized_value
 

Detailed Description

Abstract top level metric from which all diagnostic metric derive from.

Constructor & Destructor Documentation

◆ zigpc_diagnostics_metric()

zigpc_diagnostics_metric::zigpc_diagnostics_metric ( zigpc_diagnostics_notification notif,
std::string  metric_id 
)
inline

Generic diagnostic metric constructor.

Parameters
notifObject to call on value_update completion.
metric_idIdentifier to which the metric will publish its resulting value.

Member Function Documentation

◆ get_metric_id()

std::string zigpc_diagnostics_metric::get_metric_id ( void  ) const
inline

◆ get_serialized_value()

std::string zigpc_diagnostics_metric::get_serialized_value ( void  ) const
inline

◆ update_value()

virtual void zigpc_diagnostics_metric::update_value ( void  )
pure virtual

Member Data Documentation

◆ metric_id

std::string zigpc_diagnostics_metric::metric_id
protected

◆ on_update_complete

zigpc_diagnostics_notification& zigpc_diagnostics_metric::on_update_complete
protected

◆ serialized_value

std::string zigpc_diagnostics_metric::serialized_value
protected

The documentation for this class was generated from the following file: