Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
database::monitoring::performance_alert Class Reference

Alert system for performance thresholds. More...

#include <performance_monitor.h>

Collaboration diagram for database::monitoring::performance_alert:
Collaboration graph

Public Types

enum class  alert_type {
  high_latency , high_error_rate , connection_pool_exhaustion , slow_query ,
  memory_usage , cpu_usage
}
 

Public Member Functions

 performance_alert (alert_type type, const std::string &message, std::chrono::steady_clock::time_point timestamp)
 
alert_type type () const
 
const std::string & message () const
 
std::chrono::steady_clock::time_point timestamp () const
 

Private Attributes

alert_type type_
 
std::string message_
 
std::chrono::steady_clock::time_point timestamp_
 

Detailed Description

Alert system for performance thresholds.

Definition at line 140 of file performance_monitor.h.

Member Enumeration Documentation

◆ alert_type

Constructor & Destructor Documentation

◆ performance_alert()

database::monitoring::performance_alert::performance_alert ( alert_type type,
const std::string & message,
std::chrono::steady_clock::time_point timestamp )

Member Function Documentation

◆ message()

const std::string & database::monitoring::performance_alert::message ( ) const
inline

Definition at line 156 of file performance_monitor.h.

156{ return message_; }

References message_.

Referenced by TEST_F().

Here is the caller graph for this function:

◆ timestamp()

std::chrono::steady_clock::time_point database::monitoring::performance_alert::timestamp ( ) const
inline

Definition at line 157 of file performance_monitor.h.

157{ return timestamp_; }

References timestamp_.

Referenced by TEST_F().

Here is the caller graph for this function:

◆ type()

alert_type database::monitoring::performance_alert::type ( ) const
inline

Definition at line 155 of file performance_monitor.h.

155{ return type_; }

References type_.

Referenced by TEST_F(), and TEST_F().

Here is the caller graph for this function:

Member Data Documentation

◆ message_

std::string database::monitoring::performance_alert::message_
private

Definition at line 161 of file performance_monitor.h.

Referenced by message().

◆ timestamp_

std::chrono::steady_clock::time_point database::monitoring::performance_alert::timestamp_
private

Definition at line 162 of file performance_monitor.h.

Referenced by timestamp().

◆ type_

alert_type database::monitoring::performance_alert::type_
private

Definition at line 160 of file performance_monitor.h.

Referenced by type().


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