|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Event fired when a metric is collected. More...
#include <observer_interface.h>

Public Member Functions | |
| metric_event (const std::string &source, const metric &data) | |
| const std::string & | source () const |
| const metric & | data () const |
| std::chrono::steady_clock::time_point | timestamp () const |
Private Attributes | |
| std::string | source_ |
| metric | metric_data_ |
| std::chrono::steady_clock::time_point | timestamp_ |
Event fired when a metric is collected.
This event is published whenever a metric is collected from a source. It contains the source identifier, the metric data, and a timestamp for when the event was created.
Definition at line 51 of file observer_interface.h.
|
inline |
Definition at line 53 of file observer_interface.h.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 62 of file observer_interface.h.
Referenced by data().
|
private |
Definition at line 61 of file observer_interface.h.
Referenced by source().
|
private |
Definition at line 63 of file observer_interface.h.
Referenced by timestamp().