Fix missing metric names for Alarm
Story: 2001785 Task: 12498 Change-Id: I7f1bc61fc3f285759e64e8aadb66da5fea7a0e41
This commit is contained in:
parent
56e903db8c
commit
42d50efbc6
|
@ -67,7 +67,13 @@ def show_alarm_id(data):
|
|||
|
||||
|
||||
def show_metric_name(data):
|
||||
return data['metrics'][0]['name']
|
||||
if len(data['metrics']) > 1:
|
||||
names = []
|
||||
for metric in data['metrics']:
|
||||
names.append(metric['name'])
|
||||
return ', '.join(['%s' % (n) for n in names])
|
||||
else:
|
||||
return data['metrics'][0]['name']
|
||||
|
||||
|
||||
def show_def_name(data):
|
||||
|
|
Loading…
Reference in New Issue