diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2023-06-05 18:16:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 18:16:28 +0300 |
commit | 81174475a315fdf5a0b6d23bd5edbae82d028cb1 (patch) | |
tree | babac50e663952097bb8db5aacf544ce744984cf /aclk/schema-wrappers/alarm_stream.cc | |
parent | cfc91853eb8ed17572076e9ebc26a40d40391402 (diff) |
Generate, store and transmit a unique alert event_hash_id (#15111)
* generate and store an event_hash_id
* transmit to cloud
* transmit to the cloud
Diffstat (limited to 'aclk/schema-wrappers/alarm_stream.cc')
-rw-r--r-- | aclk/schema-wrappers/alarm_stream.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/aclk/schema-wrappers/alarm_stream.cc b/aclk/schema-wrappers/alarm_stream.cc index af0b891ca4..11b9284f5a 100644 --- a/aclk/schema-wrappers/alarm_stream.cc +++ b/aclk/schema-wrappers/alarm_stream.cc @@ -86,6 +86,7 @@ void destroy_alarm_log_entry(struct alarm_log_entry *entry) freez(entry->rendered_info); freez(entry->chart_context); + freez(entry->transition_id); } static void fill_alarm_log_entry(struct alarm_log_entry *data, AlarmLogEntry *proto) @@ -134,6 +135,9 @@ static void fill_alarm_log_entry(struct alarm_log_entry *data, AlarmLogEntry *pr proto->set_rendered_info(data->rendered_info); proto->set_chart_context(data->chart_context); + + proto->set_event_id(data->event_id); + proto->set_transition_id(data->transition_id); } char *generate_alarm_log_entry(size_t *len, struct alarm_log_entry *data) |