|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Additional metadata for alert context. More...
#include <alert_types.h>

Public Member Functions | |
| alert_annotations ()=default | |
| alert_annotations (std::string sum, std::string desc) | |
Public Attributes | |
| std::string | summary |
| Brief description. | |
| std::string | description |
| Detailed description. | |
| std::optional< std::string > | runbook_url |
| Link to runbook. | |
| std::unordered_map< std::string, std::string > | custom |
| Custom annotations. | |
Additional metadata for alert context.
Annotations provide human-readable information about the alert but are not used for routing or deduplication.
Definition at line 163 of file alert_types.h.
|
default |
|
inline |
Definition at line 171 of file alert_types.h.
| std::unordered_map<std::string, std::string> kcenon::monitoring::alert_annotations::custom |
Custom annotations.
Definition at line 167 of file alert_types.h.
Referenced by kcenon::monitoring::alert_template::render(), TEST(), and TEST().
| std::string kcenon::monitoring::alert_annotations::description |
Detailed description.
Definition at line 165 of file alert_types.h.
Referenced by kcenon::monitoring::create_sample_alert(), kcenon::monitoring::json_alert_formatter::format(), kcenon::monitoring::alert_template::render(), kcenon::monitoring::alert_rule::set_description(), TEST(), TEST(), and TEST().
| std::optional<std::string> kcenon::monitoring::alert_annotations::runbook_url |
Link to runbook.
Definition at line 166 of file alert_types.h.
Referenced by kcenon::monitoring::alert_template::render(), kcenon::monitoring::alert_rule::set_runbook_url(), TEST(), TEST(), and TEST().
| std::string kcenon::monitoring::alert_annotations::summary |
Brief description.
Definition at line 164 of file alert_types.h.
Referenced by kcenon::monitoring::create_sample_alert(), kcenon::monitoring::json_alert_formatter::format(), kcenon::monitoring::text_alert_formatter::format(), kcenon::monitoring::console_color_notifier::notify(), kcenon::monitoring::alert_template::render(), kcenon::monitoring::alert_rule::set_summary(), TEST(), TEST(), and TEST().