Debian Codegraph @

heat_tempest_plugin/tests/scenario/templates/test_aodh_alarm.yaml

raw
1 heat_template_version: 2013-05-23
2 parameters:
3 metric_id:
4 type: string
5 resources:
6 asg:
7 type: OS::Heat::AutoScalingGroup
8 properties:
9 max_size: 5
10 min_size: 1
11 resource:
12 type: OS::Heat::RandomString
13 scaleup_policy:
14 type: OS::Heat::ScalingPolicy
15 properties:
16 adjustment_type: change_in_capacity
17 auto_scaling_group_id: {get_resource: asg}
18 cooldown: 0
19 scaling_adjustment: 1
20 alarm:
21 type: OS::Aodh::GnocchiAggregationByMetricsAlarm
22 properties:
23 metrics:
24 - {get_param: metric_id}
25 comparison_operator: ge
26 evaluation_periods: 1
27 granularity: 60
28 aggregation_method: mean
29 threshold: 10
30 alarm_actions:
31 - str_replace:
32 template: trust+url
33 params:
34 url: {get_attr: [scaleup_policy, signal_url]}
35 outputs:
36 asg_size:
37 value: {get_attr: [asg, current_size]}