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

Event fired when configuration changes. More...

#include <event_types.h>

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

Public Types

enum class  change_type { added , modified , removed }
 

Public Member Functions

 configuration_change_event (const std::string &component, const std::string &config_key, change_type type, const std::string &old_value="", const std::string &new_value="")
 
std::string get_type_name () const override
 Get the event type name.
 
const std::string & get_component () const
 
const std::string & get_config_key () const
 
change_type get_change_type () const
 
const std::string & get_old_value () const
 
const std::string & get_new_value () 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 component_
 
std::string config_key_
 
change_type type_
 
std::string old_value_
 
std::string new_value_
 

Additional Inherited Members

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

Detailed Description

Event fired when configuration changes.

Definition at line 211 of file event_types.h.

Member Enumeration Documentation

◆ change_type

Constructor & Destructor Documentation

◆ configuration_change_event()

kcenon::monitoring::configuration_change_event::configuration_change_event ( const std::string & component,
const std::string & config_key,
change_type type,
const std::string & old_value = "",
const std::string & new_value = "" )
inline

Member Function Documentation

◆ get_change_type()

change_type kcenon::monitoring::configuration_change_event::get_change_type ( ) const
inline

◆ get_component()

const std::string & kcenon::monitoring::configuration_change_event::get_component ( ) const
inline

◆ get_config_key()

const std::string & kcenon::monitoring::configuration_change_event::get_config_key ( ) const
inline

◆ get_new_value()

const std::string & kcenon::monitoring::configuration_change_event::get_new_value ( ) const
inline

◆ get_old_value()

const std::string & kcenon::monitoring::configuration_change_event::get_old_value ( ) const
inline

◆ get_type_name()

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

227 {
228 return "configuration_change_event";
229 }

Member Data Documentation

◆ component_

std::string kcenon::monitoring::configuration_change_event::component_
private

◆ config_key_

std::string kcenon::monitoring::configuration_change_event::config_key_
private

◆ new_value_

std::string kcenon::monitoring::configuration_change_event::new_value_
private

◆ old_value_

std::string kcenon::monitoring::configuration_change_event::old_value_
private

◆ type_

change_type kcenon::monitoring::configuration_change_event::type_
private

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