Merge "make aggregation-method argument as a mandatory field"

This commit is contained in:
Jenkins
2016-02-24 16:09:37 +00:00
committed by Gerrit Code Review

View File

@@ -523,6 +523,7 @@ def common_alarm_gnocchi_arguments(rule_namespace, create=False):
help='Number of periods to evaluate over.')
@utils.arg('--aggregation-method', metavar='<AGGREATION>',
dest=rule_namespace + '/aggregation_method',
required=create,
help=('Aggregation method to use, one of: ' +
str(GNOCCHI_AGGREGATION) + '.'))
@utils.arg('--comparison-operator', metavar='<OPERATOR>',