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

Event containing thread pool metrics. More...

#include <event_types.h>

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

Classes

struct  thread_pool_stats
 

Public Member Functions

 thread_pool_metric_event (const std::string &pool_name, const thread_pool_stats &stats)
 
std::string get_type_name () const override
 Get the event type name.
 
const std::string & get_pool_name () const
 
const thread_pool_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 pool_name_
 
thread_pool_stats stats_
 

Additional Inherited Members

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

Detailed Description

Event containing thread pool metrics.

Published by thread pool monitoring components to report current pool state including active/idle threads, queue depth, and throughput.

Thread Safety:
This class is thread-safe for read operations after construction. All accessors are const.

Definition at line 49 of file event_types.h.

Constructor & Destructor Documentation

◆ thread_pool_metric_event()

kcenon::monitoring::thread_pool_metric_event::thread_pool_metric_event ( const std::string & pool_name,
const thread_pool_stats & stats )
inline

Member Function Documentation

◆ get_pool_name()

const std::string & kcenon::monitoring::thread_pool_metric_event::get_pool_name ( ) const
inline

◆ get_stats()

const thread_pool_stats & kcenon::monitoring::thread_pool_metric_event::get_stats ( ) const
inline

◆ get_type_name()

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

63 {
64 return "thread_pool_metric_event";
65 }

Member Data Documentation

◆ pool_name_

std::string kcenon::monitoring::thread_pool_metric_event::pool_name_
private

◆ stats_

thread_pool_stats kcenon::monitoring::thread_pool_metric_event::stats_
private

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