Add "state" to condition keyname

"state" can be specified as a condition for event-based alarm.
So this patch add it to the condition kayname list.

https://review.opendev.org/#/c/700167/

Change-Id: Ib0d3a87c09aaea7b5c7863330285f86025f591ae
This commit is contained in:
Toshiaki Takahashi 2020-08-14 22:40:54 +00:00
parent 9b42fa3d32
commit 9b9eba5272

View File

@ -23,10 +23,10 @@ SECTIONS = (DESCRIPTION, EVENT, SCHEDULE, METRIC, METADATA,
('description', 'event_type', 'schedule', 'metric',
'metadata', 'target_filter', 'condition', 'action')
CONDITION_KEYNAMES = (CONSTRAINT, GRANULARITY, EVALUATIONS, AGGREGATION_METHOD,
THRESHOLD, COMPARISON_OPERATOR, RESOURCE_TYPE) = \
THRESHOLD, COMPARISON_OPERATOR, RESOURCE_TYPE, STATE) = \
('constraint', 'granularity', 'evaluations',
'aggregation_method', 'threshold', 'comparison_operator',
'resource_type')
'resource_type', 'state')
log = logging.getLogger('tosca')