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

Additional metadata for alert context. More...

#include <alert_types.h>

Collaboration diagram for kcenon::monitoring::alert_annotations:
Collaboration graph

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ alert_annotations() [1/2]

kcenon::monitoring::alert_annotations::alert_annotations ( )
default

◆ alert_annotations() [2/2]

kcenon::monitoring::alert_annotations::alert_annotations ( std::string sum,
std::string desc )
inline

Definition at line 171 of file alert_types.h.

172 : summary(std::move(sum)), description(std::move(desc)) {}
std::string description
Detailed description.
std::string summary
Brief description.

Member Data Documentation

◆ custom

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().

◆ description

◆ runbook_url

std::optional<std::string> kcenon::monitoring::alert_annotations::runbook_url

◆ summary


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