Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::metric_value Struct Reference

Represents a single metric value with metadata. More...

#include <monitoring_core.h>

Collaboration diagram for kcenon::monitoring::metric_value:
Collaboration graph

Public Member Functions

 metric_value (const std::string &n="", double v=0.0)
 

Public Attributes

std::string name
 
double value
 
std::chrono::system_clock::time_point timestamp
 
std::unordered_map< std::string, std::string > tags
 

Detailed Description

Represents a single metric value with metadata.

Examples
storage_example.cpp.

Definition at line 48 of file monitoring_core.h.

Constructor & Destructor Documentation

◆ metric_value()

kcenon::monitoring::metric_value::metric_value ( const std::string & n = "",
double v = 0.0 )
inline

Member Data Documentation

◆ name

◆ tags

◆ timestamp

std::chrono::system_clock::time_point kcenon::monitoring::metric_value::timestamp

◆ value


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