diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2022-08-04 10:18:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 10:18:53 +0300 |
commit | 2fd2607475479bcb1e5d929f109ffd5537303bb7 (patch) | |
tree | af2d78ab77e0a7bcde089e28c67d59c01948e302 /aclk/schema-wrappers | |
parent | 5634e0fdd1c9241e3d31bd80dd3908b3ef4f10d7 (diff) |
Send chart context with alert events to the cloud (#13409)
* add chart context to alert events
* migrate health log tables to add chart_context
* send it via proto message
* add from v3 to v4
* free table
* free chart_context
Diffstat (limited to 'aclk/schema-wrappers')
-rw-r--r-- | aclk/schema-wrappers/alarm_stream.cc | 3 | ||||
-rw-r--r-- | aclk/schema-wrappers/alarm_stream.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/aclk/schema-wrappers/alarm_stream.cc b/aclk/schema-wrappers/alarm_stream.cc index 338e512d8f..f643933002 100644 --- a/aclk/schema-wrappers/alarm_stream.cc +++ b/aclk/schema-wrappers/alarm_stream.cc @@ -118,6 +118,7 @@ void destroy_alarm_log_entry(struct alarm_log_entry *entry) freez(entry->old_value_string); freez(entry->rendered_info); + freez(entry->chart_context); } static void fill_alarm_log_entry(struct alarm_log_entry *data, AlarmLogEntry *proto) @@ -166,6 +167,8 @@ static void fill_alarm_log_entry(struct alarm_log_entry *data, AlarmLogEntry *pr proto->set_updated(data->updated); proto->set_rendered_info(data->rendered_info); + + proto->set_chart_context(data->chart_context); } char *generate_alarm_log_entry(size_t *len, struct alarm_log_entry *data) diff --git a/aclk/schema-wrappers/alarm_stream.h b/aclk/schema-wrappers/alarm_stream.h index 2932bb192f..63911da3fa 100644 --- a/aclk/schema-wrappers/alarm_stream.h +++ b/aclk/schema-wrappers/alarm_stream.h @@ -97,6 +97,8 @@ struct alarm_log_entry { // rendered_info char *rendered_info; + + char *chart_context; }; struct send_alarm_snapshot { |