From b659a7abf35edb6814e868c9f88bbe1539570d35 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 19 Jul 2018 19:11:23 +0200 Subject: [PATCH] aodh/gnocchi: remove constraints on aggregation methods The current list misses the percentile and all rate based aggregation methods. Rather than adding them, let's remove the constraint and let Gnocchi and Aodh validate the data. Change-Id: I0330c09d72c20d63d08770b52d3071512a418260 --- heat/engine/resources/openstack/aodh/gnocchi/alarm.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/heat/engine/resources/openstack/aodh/gnocchi/alarm.py b/heat/engine/resources/openstack/aodh/gnocchi/alarm.py index 9203a572ba..69353ac9f8 100644 --- a/heat/engine/resources/openstack/aodh/gnocchi/alarm.py +++ b/heat/engine/resources/openstack/aodh/gnocchi/alarm.py @@ -13,7 +13,6 @@ from heat.common.i18n import _ -from heat.engine import constraints from heat.engine import properties from heat.engine.resources import alarm_base from heat.engine import support @@ -27,7 +26,6 @@ COMMON_GNOCCHI_PROPERTIES = ( 'aggregation_method', 'threshold', ) - common_gnocchi_properties_schema = { COMPARISON_OPERATOR: properties.Schema( properties.Schema.STRING, @@ -43,10 +41,6 @@ common_gnocchi_properties_schema = { AGGREGATION_METHOD: properties.Schema( properties.Schema.STRING, _('The aggregation method to compare to the threshold.'), - constraints=[ - constraints.AllowedValues(['mean', 'sum', 'last', 'max', 'min', - 'std', 'median', 'first', 'count']), - ], update_allowed=True ), GRANULARITY: properties.Schema(