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

Event containing system resource metrics. More...

#include <event_types.h>

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

Classes

struct  resource_stats
 

Public Member Functions

 system_resource_event (const resource_stats &stats)
 
std::string get_type_name () const override
 Get the event type name.
 
const resource_statsget_stats () 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

resource_stats stats_
 

Additional Inherited Members

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

Detailed Description

Event containing system resource metrics.

Examples
event_bus_example.cpp.

Definition at line 110 of file event_types.h.

Constructor & Destructor Documentation

◆ system_resource_event()

kcenon::monitoring::system_resource_event::system_resource_event ( const resource_stats & stats)
inlineexplicit

Member Function Documentation

◆ get_stats()

const resource_stats & kcenon::monitoring::system_resource_event::get_stats ( ) const
inline

◆ get_type_name()

std::string kcenon::monitoring::system_resource_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 127 of file event_types.h.

127 {
128 return "system_resource_event";
129 }

Member Data Documentation

◆ stats_

resource_stats kcenon::monitoring::system_resource_event::stats_
private

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