percent_of_overlap=0 to validate gnocchi alarm
As we do in evaluator, api must pass percent_of_overlap=0 to validate the query. Change-Id: Iecb8d256339f8026dbc1b88d8d6ee5c46463dd15
This commit is contained in:
parent
ea0b9e9da9
commit
78d5608f09
@ -169,7 +169,8 @@ class AggregationMetricByResourcesLookupRule(AlarmGnocchiThresholdRule):
|
||||
rule.metric),
|
||||
'headers': {'Content-Type': "application/json",
|
||||
'X-Auth-Token': ks_client.auth_token},
|
||||
'params': {'aggregation': rule.aggregation_method},
|
||||
'params': {'aggregation': rule.aggregation_method,
|
||||
'percent_of_overlap': 0},
|
||||
'data': rule.query,
|
||||
}
|
||||
|
||||
|
@ -2929,7 +2929,8 @@ class TestAlarmsRuleGnocchi(TestAlarmsBase):
|
||||
'resource/instance/metric/ameter'),
|
||||
headers={'Content-Type': 'application/json',
|
||||
'X-Auth-Token': mock.ANY},
|
||||
params={'aggregation': 'count'},
|
||||
params={'aggregation': 'count',
|
||||
'percent_of_overlap': 0},
|
||||
data=expected_query)],
|
||||
fake_post.mock_calls),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user