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

Event containing collected metrics batch. More...

#include <event_types.h>

Inheritance diagram for kcenon::monitoring::metric_collection_event:
Inheritance graph
Collaboration diagram for kcenon::monitoring::metric_collection_event:
Collaboration graph

Public Member Functions

 metric_collection_event (const std::string &collector_name, std::vector< metric > metrics)
 
std::string get_type_name () const override
 Get the event type name.
 
const std::string & get_collector_name () const
 
const std::vector< metric > & get_metrics () const
 
size_t get_metric_count () const
 
- Public Member Functions inherited from kcenon::monitoring::event_base
virtual ~event_base ()=default
 
std::chrono::steady_clock::time_point get_timestamp () const
 Get timestamp when event was created.
 
uint64_t get_id () const
 Get unique event ID.
 

Private Attributes

std::string collector_name_
 
std::vector< metricmetrics_
 

Additional Inherited Members

- Protected Member Functions inherited from kcenon::monitoring::event_base
 event_base ()
 

Detailed Description

Event containing collected metrics batch.

Definition at line 290 of file event_types.h.

Constructor & Destructor Documentation

◆ metric_collection_event()

kcenon::monitoring::metric_collection_event::metric_collection_event ( const std::string & collector_name,
std::vector< metric > metrics )
inline

Member Function Documentation

◆ get_collector_name()

const std::string & kcenon::monitoring::metric_collection_event::get_collector_name ( ) const
inline

◆ get_metric_count()

size_t kcenon::monitoring::metric_collection_event::get_metric_count ( ) const
inline

◆ get_metrics()

const std::vector< metric > & kcenon::monitoring::metric_collection_event::get_metrics ( ) const
inline

◆ get_type_name()

std::string kcenon::monitoring::metric_collection_event::get_type_name ( ) const
inlineoverridevirtual

Get the event type name.

Returns
String representation of the event type

Implements kcenon::monitoring::event_base.

Examples
/home/runner/work/monitoring_system/monitoring_system/include/kcenon/monitoring/core/event_types.h.

Definition at line 296 of file event_types.h.

296 {
297 return "metric_collection_event";
298 }

Member Data Documentation

◆ collector_name_

std::string kcenon::monitoring::metric_collection_event::collector_name_
private

◆ metrics_

std::vector<metric> kcenon::monitoring::metric_collection_event::metrics_
private

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