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

Generic system event for monitoring components. More...

#include <observer_interface.h>

Collaboration diagram for kcenon::monitoring::system_event:
Collaboration graph

Public Types

enum class  event_type {
  component_started , component_stopped , error_occurred , warning_raised ,
  configuration_changed , threshold_exceeded
}
 

Public Member Functions

 system_event (event_type type, const std::string &component, const std::string &message)
 
event_type type () const
 
const std::string & component () const
 
const std::string & message () const
 
std::chrono::steady_clock::time_point timestamp () const
 

Private Attributes

event_type type_
 
std::string component_
 
std::string message_
 
std::chrono::steady_clock::time_point timestamp_
 

Detailed Description

Generic system event for monitoring components.

Represents various system-level events such as component lifecycle changes, errors, warnings, and configuration updates. Each event has a type, source component, message, and timestamp.

Thread Safety:
This class is thread-safe for read operations. Once constructed, all accessors are const.

Definition at line 90 of file observer_interface.h.

Member Enumeration Documentation

◆ event_type

Constructor & Destructor Documentation

◆ system_event()

kcenon::monitoring::system_event::system_event ( event_type type,
const std::string & component,
const std::string & message )
inline

Member Function Documentation

◆ component()

const std::string & kcenon::monitoring::system_event::component ( ) const
inline

◆ message()

const std::string & kcenon::monitoring::system_event::message ( ) const
inline

◆ timestamp()

std::chrono::steady_clock::time_point kcenon::monitoring::system_event::timestamp ( ) const
inline

◆ type()

event_type kcenon::monitoring::system_event::type ( ) const
inline

Member Data Documentation

◆ component_

std::string kcenon::monitoring::system_event::component_
private

◆ message_

std::string kcenon::monitoring::system_event::message_
private

◆ timestamp_

std::chrono::steady_clock::time_point kcenon::monitoring::system_event::timestamp_
private

◆ type_

event_type kcenon::monitoring::system_event::type_
private

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