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

Event containing logging system metrics. More...

#include <event_types.h>

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

Classes

struct  logging_stats
 

Public Member Functions

 logging_metric_event (const std::string &logger_name, const logging_stats &stats)
 
std::string get_type_name () const override
 Get the event type name.
 
const std::string & get_logger_name () const
 
const logging_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

std::string logger_name_
 
logging_stats stats_
 

Additional Inherited Members

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

Detailed Description

Event containing logging system metrics.

Definition at line 79 of file event_types.h.

Constructor & Destructor Documentation

◆ logging_metric_event()

kcenon::monitoring::logging_metric_event::logging_metric_event ( const std::string & logger_name,
const logging_stats & stats )
inline

Member Function Documentation

◆ get_logger_name()

const std::string & kcenon::monitoring::logging_metric_event::get_logger_name ( ) const
inline

◆ get_stats()

const logging_stats & kcenon::monitoring::logging_metric_event::get_stats ( ) const
inline

◆ get_type_name()

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

94 {
95 return "logging_metric_event";
96 }

Member Data Documentation

◆ logger_name_

std::string kcenon::monitoring::logging_metric_event::logger_name_
private

◆ stats_

logging_stats kcenon::monitoring::logging_metric_event::stats_
private

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