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
This commit is contained in:
parent
32e9e83b3a
commit
b659a7abf3
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue