diff --git a/monasca_persister/repositories/utils.py b/monasca_persister/repositories/utils.py index fa4f3a3e..e55c7816 100644 --- a/monasca_persister/repositories/utils.py +++ b/monasca_persister/repositories/utils.py @@ -87,6 +87,11 @@ def parse_alarm_state_hist_message(message): '"subAlarmExpression":', '"sub_alarm_expression":') + sub_alarms_json_snake_case = sub_alarms_json_snake_case.replace( + '"currentValues":', + '"current_values":') + + # jobrs: I do not think that this shows up sub_alarms_json_snake_case = sub_alarms_json_snake_case.replace( '"metricDefinition":', '"metric_definition":')