summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ceilometerclient/v2/shell.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ceilometerclient/v2/shell.py b/ceilometerclient/v2/shell.py
index d16797a..9bf6176 100644
--- a/ceilometerclient/v2/shell.py
+++ b/ceilometerclient/v2/shell.py
@@ -299,11 +299,12 @@ def _display_alarm_list(alarms, sortby=None):
def _display_rule(type, rule):
if type == 'threshold':
- return ('%(meter_name)s %(comparison_operator)s '
+ return ('%(statistic)s(%(meter_name)s) %(comparison_operator)s '
'%(threshold)s during %(evaluation_periods)s x %(period)ss' %
{
'meter_name': rule['meter_name'],
'threshold': rule['threshold'],
+ 'statistic': rule['statistic'],
'evaluation_periods': rule['evaluation_periods'],
'period': rule['period'],
'comparison_operator': OPERATORS_STRING.get(