Skip to content

Commit

Permalink
Merge "Rename OS::Metering::Alarm to OS::Ceilometer::Alarm"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Aug 27, 2013
2 parents d7bb1f0 + c60a606 commit 8e64406
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions etc/heat/environment.d/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ resource_registry:
# Choose your implementation of AWS::CloudWatch::Alarm
#"AWS::CloudWatch::Alarm": "file:///etc/heat/templates/AWS_CloudWatch_Alarm.yaml"
"AWS::CloudWatch::Alarm": "OS::Heat::CWLiteAlarm"
"OS::Metering::Alarm": "OS::Ceilometer::Alarm"
2 changes: 1 addition & 1 deletion etc/heat/templates/AWS_CloudWatch_Alarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Mappings:

Resources:
__alarm__:
Type: OS::Metering::Alarm
Type: OS::Ceilometer::Alarm
Properties:
description:
Ref: AlarmDescription
Expand Down
2 changes: 1 addition & 1 deletion heat/engine/resources/ceilometer/alarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ def handle_delete(self):

def resource_mapping():
return {
'OS::Metering::Alarm': CeilometerAlarm,
'OS::Ceilometer::Alarm': CeilometerAlarm,
}
2 changes: 1 addition & 1 deletion heat/tests/test_ceilometer_alarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"Parameters" : {},
"Resources" : {
"MEMAlarmHigh": {
"Type": "OS::Metering::Alarm",
"Type": "OS::Ceilometer::Alarm",
"Properties": {
"description": "Scale-up if MEM > 50% for 1 minute",
"counter_name": "MemoryUtilization",
Expand Down

0 comments on commit 8e64406

Please sign in to comment.