Check the alarm details
Execute the show alarm details API to checks details of the alarm.
Example format
curl -s -H "X-Auth-Token: . . ." "https://telemetry.jp-east-1.cloud.global.fujitsu.com/v2/alarms/alarmId"
- Replace alarmId with the ID of the alarm.
- Refer to "Show alarm details (GET /v2/alarms/{alarm_id})" for details on the parameters.
- If the alarm does not exist (because it has already been deleted, for example), an error will occur.
Example of request
The example below retrieves the details of the alarm "2a5d914d-ac5c-474d-8550-58098f668a66":
curl -s -H "X-Auth-Token: . . ." "https://telemetry.jp-east-1.cloud.global.fujitsu.com/v2/alarms/2a5d914d-ac5c-474d-8550-58098f668a66"
Example of response
{
"alarm_actions": [
"http://orchestration-cfn.jp-east-1.internal.cloud.global.fujitsu.
com/v1/signal/arn%3Aopenstack%3Aheat%3A%3Acd1e2866ebda406bb16b8196022e2692
%3Astacks%2Faz1_test_stack_vm3%2F548ae98a-a0bc-43bd-aff5-a4146f783585
%2Fresources%2Fscaleout_policy?Timestamp=2015-07-17T05%3A34%3A21Z
&SignatureMethod=HmacSHA256&AWSAccessKeyId=cab5efa3009b4f00817b354b0744601e
&SignatureVersion=2&Signature=FKLe2NApryuVZUCybV%2F%2Ffmd21xw%2BYApUSridiKE5M%2FE%3D"
],
"alarm_id": "2a5d914d-ac5c-474d-8550-58098f668a66",
"description": "Scale-out if the average CPU > 80% for 1 minutes",
"enabled": true,
"insufficient_data_actions": [],
"name": "az1_test_stack_vm3-scalein_alarm-fzps2blpsiql",
"ok_actions": [],
"project_id": "c52b2f54d96a4c28ba9a318eae9c843c",
"repeat_actions": true,
"state": "alarm",
"state_timestamp": "2015-07-29T00:14:13.832040",
"threshold_rule": {
"comparison_operator": "gt",
"evaluation_periods": 1,
"exclude_outliers": false,
"meter_name": "fcx.compute.cpu_util",
"period": 60,
"query": [
{
"field": "metadata.user_metadata.groupname",
"op": "eq",
"value": "az1_test_stack_vm3-auto_scaling_group-h5ve5jiy5pbf"
},
{
"field": "project_id",
"op": "eq",
"value": "c52b2f54d96a4c28ba9a318eae9c843c"
}
],
"statistic": "avg",
"threshold": 80.0
},
"time_constraints": [],
"timestamp": "2015-07-17T05:34:28.674867",
"type": "threshold",
"user_id": "2cc0568f5daf4ac694a49f3b32a42dfc"
}
- Note the following:
- "enabled": Indicates whether alarm evaluation is enabled. When set to "false", actions are not executed.
- "alarm_actions", "ok_actions", "insufficient_actions": Contain the actions to execute when the alarm transitions to the state. If the item is not set, no action is executed when the alarm transitions to the state.
- "threshold_rule": Contains the items below, which can be checked in the statistics of subsequent samples:
- "comparison_operator": Comparison operator to use against the threshold.
- "meter_name": Name of the meter for threshold monitoring.
- "period": Statistic interval when retrieving statistics of a sample.
- "query": Conditions to retrieve statistics from meter samples for threshold monitoring. The items "field", "op", "value" comprise one condition.
- "statistics": Aggregation method used to compare against the threshold.
- "threshold": Threshold value.