diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2023-10-02 09:56:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 09:56:01 +0300 |
commit | 8c9492a4767001459d99e232b58f63baf1e95f91 (patch) | |
tree | 197db611d871a9d608f1462d82595fe84a8b1d65 /aclk/schema-wrappers/alarm_stream.cc | |
parent | 3c98ee23124fefc761c3c67cc343b17fde366d2e (diff) |
Send alerts summary field to cloud (#16056)
* new aclk schema
* transmit summary to cloud and expose in v2/alerts
* missing assign
Diffstat (limited to 'aclk/schema-wrappers/alarm_stream.cc')
-rw-r--r-- | aclk/schema-wrappers/alarm_stream.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/aclk/schema-wrappers/alarm_stream.cc b/aclk/schema-wrappers/alarm_stream.cc index 1538bc9e09..6e38ebfa68 100644 --- a/aclk/schema-wrappers/alarm_stream.cc +++ b/aclk/schema-wrappers/alarm_stream.cc @@ -68,26 +68,21 @@ void destroy_alarm_log_entry(struct alarm_log_entry *entry) { //freez(entry->node_id); //freez(entry->claim_id); - freez(entry->chart); freez(entry->name); freez(entry->family); - freez(entry->config_hash); - freez(entry->timezone); - freez(entry->exec_path); freez(entry->conf_source); freez(entry->command); - freez(entry->value_string); freez(entry->old_value_string); - freez(entry->rendered_info); freez(entry->chart_context); freez(entry->transition_id); freez(entry->chart_name); + freez(entry->summary); } static void fill_alarm_log_entry(struct alarm_log_entry *data, AlarmLogEntry *proto) @@ -136,6 +131,7 @@ static void fill_alarm_log_entry(struct alarm_log_entry *data, AlarmLogEntry *pr proto->set_event_id(data->event_id); proto->set_transition_id(data->transition_id); proto->set_chart_name(data->chart_name); + proto->set_summary(data->summary); } char *generate_alarm_log_entry(size_t *len, struct alarm_log_entry *data) |