PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::monitoring::metric_value Struct Reference

Standard metric value structure with type information. More...

#include <pacs_monitor.h>

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

Public Member Functions

 metric_value ()=default
 
 metric_value (std::string n, double v, metric_type t=metric_type::gauge, std::unordered_map< std::string, std::string > tg={})
 

Public Attributes

std::string name
 
double value
 
metric_type type {metric_type::gauge}
 
std::chrono::system_clock::time_point timestamp
 
std::unordered_map< std::string, std::string > tags
 

Detailed Description

Standard metric value structure with type information.

Definition at line 77 of file pacs_monitor.h.

Constructor & Destructor Documentation

◆ metric_value() [1/2]

kcenon::pacs::monitoring::metric_value::metric_value ( )
default

◆ metric_value() [2/2]

kcenon::pacs::monitoring::metric_value::metric_value ( std::string n,
double v,
metric_type t = metric_type::gauge,
std::unordered_map< std::string, std::string > tg = {} )
inline

Definition at line 86 of file pacs_monitor.h.

89 {})
90 : name(std::move(n))
91 , value(v)
92 , type(t)
93 , timestamp(std::chrono::system_clock::now())
94 , tags(std::move(tg)) {}
@ move
C-MOVE move request/response.
std::chrono::system_clock::time_point timestamp
std::unordered_map< std::string, std::string > tags

Member Data Documentation

◆ name

std::string kcenon::pacs::monitoring::metric_value::name

◆ tags

std::unordered_map<std::string, std::string> kcenon::pacs::monitoring::metric_value::tags

◆ timestamp

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

◆ type

metric_type kcenon::pacs::monitoring::metric_value::type {metric_type::gauge}

◆ value

double kcenon::pacs::monitoring::metric_value::value

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