]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Rename OS::Metering::Alarm to OS::Ceilometer::Alarm
authorAngus Salkeld <asalkeld@redhat.com>
Fri, 23 Aug 2013 06:30:12 +0000 (16:30 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Mon, 26 Aug 2013 23:01:38 +0000 (09:01 +1000)
The other resources are named by project so this is to
try and be more consistent.

There is a mapping to allow the original name to work.

Change-Id: If60cc577a5a770bdaada70c7eae1ae3fc1776056

etc/heat/environment.d/default.yaml
etc/heat/templates/AWS_CloudWatch_Alarm.yaml
heat/engine/resources/ceilometer/alarm.py
heat/tests/test_ceilometer_alarm.py

index 678f888f4f6a39ee299279ce24b6a85c33f0cb69..1f4c848a6b16a02ec8ab4ad281b30d249508a415 100644 (file)
@@ -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"
index 1f8fea96dcd085538dde24ff38c5dffc87073ec6..bfdf565e3da6742dfcb2f88d043c8d59cf6215ed 100644 (file)
@@ -59,7 +59,7 @@ Mappings:
 
 Resources:
   __alarm__:
-    Type: OS::Metering::Alarm
+    Type: OS::Ceilometer::Alarm
     Properties:
       description:
         Ref: AlarmDescription
index 646fd8d7b20b7749a57d03b5a9d6d67dd71b9f29..487a56b75faa8047af358c3006742fd0700d921c 100644 (file)
@@ -130,5 +130,5 @@ class CeilometerAlarm(resource.Resource):
 
 def resource_mapping():
     return {
-        'OS::Metering::Alarm': CeilometerAlarm,
+        'OS::Ceilometer::Alarm': CeilometerAlarm,
     }
index 141df1fcc287e5960fb853dfebcfe18b8fdcd8d8..9261720a207ecf8c9874c195e4524d80f1daaf41 100644 (file)
@@ -44,7 +44,7 @@ alarm_template = '''
   "Parameters" : {},
   "Resources" : {
     "MEMAlarmHigh": {
-     "Type": "OS::Metering::Alarm",
+     "Type": "OS::Ceilometer::Alarm",
      "Properties": {
         "description": "Scale-up if MEM > 50% for 1 minute",
         "counter_name": "MemoryUtilization",