Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::time_series_sample< T > Struct Template Reference

Single sample in time series with timestamp. More...

#include <time_series_buffer.h>

Collaboration diagram for kcenon::monitoring::time_series_sample< T >:
Collaboration graph

Public Member Functions

 time_series_sample () noexcept
 
 time_series_sample (std::chrono::system_clock::time_point ts, T val) noexcept
 

Public Attributes

std::chrono::system_clock::time_point timestamp
 
value
 

Detailed Description

template<typename T>
struct kcenon::monitoring::time_series_sample< T >

Single sample in time series with timestamp.

Definition at line 70 of file time_series_buffer.h.

Constructor & Destructor Documentation

◆ time_series_sample() [1/2]

template<typename T >
kcenon::monitoring::time_series_sample< T >::time_series_sample ( )
inlinenoexcept

◆ time_series_sample() [2/2]

template<typename T >
kcenon::monitoring::time_series_sample< T >::time_series_sample ( std::chrono::system_clock::time_point ts,
T val )
inlinenoexcept

Definition at line 76 of file time_series_buffer.h.

77 : timestamp(ts), value(val) {}
std::chrono::system_clock::time_point timestamp

Member Data Documentation

◆ timestamp

template<typename T >
std::chrono::system_clock::time_point kcenon::monitoring::time_series_sample< T >::timestamp

Definition at line 71 of file time_series_buffer.h.

◆ value

template<typename T >
T kcenon::monitoring::time_series_sample< T >::value

Definition at line 72 of file time_series_buffer.h.


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