rally-openstack/samples/tasks/scenarios/ceilometer/create-and-get-alarm.json
maxinjian 0c5ce21ba5 Add CeilometerAlarms.create_and_get_alarm
Create and get the newly created alarm.

These scenarios test GET /v2/alarms/(alarm_id)
Initially alarm is created and then its detailed information is
fetched using its alarm_id.

Change-Id: I3320df227bd963890e4be8765569dbd82329ff4d
2016-11-07 23:52:50 -05:00

32 lines
881 B
JSON

{
"CeilometerAlarms.create_and_get_alarm": [
{
"args": {
"meter_name": "ram_util",
"threshold": 10.0,
"type": "threshold",
"statistic": "avg",
"alarm_actions": ["http://localhost:8776/alarm"],
"ok_actions": ["http://localhost:8776/ok"],
"insufficient_data_actions": ["http://localhost:8776/notok"]
},
"runner": {
"type": "constant",
"times": 10,
"concurrency": 2
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
}
},
"sla": {
"failure_rate": {
"max": 0
}
}
}
]
}