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

Error boundary configuration. More...

#include <error_boundary.h>

Collaboration diagram for kcenon::monitoring::error_boundary_config:
Collaboration graph

Public Member Functions

bool validate () const
 

Public Attributes

std::string name
 
size_t error_threshold = 5
 
std::chrono::seconds error_window = std::chrono::seconds(60)
 
bool enable_fallback_logging = true
 
degradation_level max_degradation = degradation_level::emergency
 
error_boundary_policy policy = error_boundary_policy::fail_fast
 
bool enable_automatic_recovery = false
 
std::chrono::milliseconds recovery_timeout = std::chrono::milliseconds(5000)
 

Detailed Description

Error boundary configuration.

Examples
health_reliability_example.cpp.

Definition at line 87 of file error_boundary.h.

Member Function Documentation

◆ validate()

bool kcenon::monitoring::error_boundary_config::validate ( ) const
inline

Definition at line 97 of file error_boundary.h.

97 {
98 if (name.empty()) {
99 return false;
100 }
101 if (error_threshold == 0) {
102 return false;
103 }
104 return true;
105 }

References error_threshold, and name.

Referenced by TEST_F().

Here is the caller graph for this function:

Member Data Documentation

◆ enable_automatic_recovery

bool kcenon::monitoring::error_boundary_config::enable_automatic_recovery = false

◆ enable_fallback_logging

bool kcenon::monitoring::error_boundary_config::enable_fallback_logging = true
Examples
health_reliability_example.cpp.

Definition at line 91 of file error_boundary.h.

Referenced by demonstrate_error_boundaries().

◆ error_threshold

size_t kcenon::monitoring::error_boundary_config::error_threshold = 5

◆ error_window

std::chrono::seconds kcenon::monitoring::error_boundary_config::error_window = std::chrono::seconds(60)
Examples
health_reliability_example.cpp.

Definition at line 90 of file error_boundary.h.

Referenced by demonstrate_error_boundaries().

◆ max_degradation

◆ name

std::string kcenon::monitoring::error_boundary_config::name

◆ policy

◆ recovery_timeout

std::chrono::milliseconds kcenon::monitoring::error_boundary_config::recovery_timeout = std::chrono::milliseconds(5000)

Definition at line 95 of file error_boundary.h.

Referenced by TEST_F().


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