Synchronize upstream version of 0.9
[parser.git] / tosca2heat / heat-translator / translator / tests / data / hot_output / monitoring / hot_monitoring_scaling.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Template for deploying servers based on policies.
5
6 parameters: {}
7 resources:
8   asg_scale_out:
9     type: OS::Heat::ScalingPolicy
10     properties:
11       auto_scaling_group_id:
12         get_resource: asg_group
13       adjustment_type: change_in_capacity
14       scaling_adjustment: 1
15       cooldown: 60
16   low_cpu_usage:
17     type: OS::Aodh::Alarm
18     properties:
19       meter_name: cpu_util
20       description: utilization less_than 20%
21       evaluation_periods: 1
22       period: 600
23       statistic: avg
24       threshold: 20
25       comparison_operator: gt
26   asg_group:
27     type: OS::Heat::AutoScalingGroup
28     properties:
29       min_size: 2
30       desired_capacity: 3
31       resource:
32         type: asg_res.yaml
33       max_size: 10
34       cooldown: 60
35   asg_scale_in:
36     type: OS::Heat::ScalingPolicy
37     properties:
38       auto_scaling_group_id:
39         get_resource: asg_group
40       adjustment_type: change_in_capacity
41       scaling_adjustment: -1
42       cooldown: 60
43   high_cpu_usage:
44     type: OS::Aodh::Alarm
45     properties:
46       meter_name: cpu_util
47       description: utilization greater_than 60%
48       evaluation_periods: 1
49       period: 600
50       statistic: avg
51       threshold: 60
52       comparison_operator: gt
53 outputs: {}