Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
AlertTest Class Reference
Inheritance diagram for AlertTest:
Inheritance graph
Collaboration diagram for AlertTest:
Collaboration graph

Protected Member Functions

alert create_test_alert ()
 

Detailed Description

Definition at line 180 of file test_alert_types.cpp.

Member Function Documentation

◆ create_test_alert()

alert AlertTest::create_test_alert ( )
inlineprotected

Definition at line 182 of file test_alert_types.cpp.

182 {
183 alert_labels labels;
184 labels.set("service", "api");
185 labels.set("env", "prod");
186 alert a("high_cpu", labels);
187 a.severity = alert_severity::critical;
188 a.value = 95.0;
189 return a;
190 }
Key-value labels for alert identification and routing.
void set(const std::string &key, const std::string &value)
Add or update a label.
Core alert data structure.

References kcenon::monitoring::alert_labels::set(), kcenon::monitoring::alert::severity, and kcenon::monitoring::alert::value.

Here is the call graph for this function:

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