Ask Your Question

Create combination alarm using ceilometer API

asked 2015-08-19 23:59:17 -0500

chitranshi-shubham gravatar image


I am trying to create a ceilometer-combination-alarm using ceilometer API, I can create ceilometer-threshold-alarm using this api call

ceilometerclient.alarms.create(name = "XYZ",...)

is there a way to create combination alarm using ceilometer API ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-20 02:44:14 -0500

ram gravatar image

The same call cc.alarms.create(**fields) is used to create the ceilometer-combination-alarm. I am not sure is that your question? or you are looking for some other API to create the combination alarm?

edit flag offensive delete link more


Hey Ram, can you just give me an example like the one I have given above. because if we make the same call, how is ceilometer client able to differentiate between the two ??

chitranshi-shubham gravatar imagechitranshi-shubham ( 2015-08-20 03:43:22 -0500 )edit

Actually, parameters we pass to the function makes the difference between the threshold-alarm and combination-alarm. In case of combination alarm, we need to provide the minimum of two alarm_ids and these alarm_ids parameter is indication to create combination alarm.

ram gravatar imageram ( 2015-08-20 04:25:38 -0500 )edit

Also, note that alarm_ids parameter is not there in threshold-alarm creation. You can see usage the example at the link: (

ram gravatar imageram ( 2015-08-20 04:28:59 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-08-19 23:59:17 -0500

Seen: 225 times

Last updated: Aug 20 '15