Show alarm details (GET /v2/alarms/{alarm_id})
Show details on the specified alarm.
{alarm_id}: ID of the alarm
Request headers
Refer to "Common API items".
Request parameters
None.
Response headers
Status
If normal, the following status is returned.
200: Normal completion
Refer to "Common API error codes" if the state is error.
Data type | Cardinality |
---|---|
Int | 1..1 |
Response elements
Information (in JSON format) on the specified alarm.
Refer to "type Alarm" for details.
Example of request
Example: Show information on the specified alarm.
curl -H 'X-Auth-Token: ImFkbWluVVJMIjogImh0dHA6Ly8xMC4x . . .' \
'https://telemetry.jp-east-1.cloud.global.fujitsu.com/v2/alarms/801bad91-1176-4143-8448-0f83ea755c88'
Example of response
{
"alarm_actions": [
"{\"service\": \"mail\", \"action\": \"send\", \"parameters\":{} }"
],
"alarm_id": "801bad91-1176-4143-8448-0f83ea755c88",
"description": "Alarm when cpu_util is eq a avg of 99.0 over 60 seconds",
"enabled": true,
"insufficient_data_actions": [],
"name": "my_alarm",
"ok_actions": [],
"project_id": "22ef168c58d94872a66c90d74297136a",
"repeat_actions": false,
"severity": "low",
"state": "insufficient data",
"state_timestamp": "2014-10-22T08:39:10.896493",
"threshold_rule": {
"comparison_operator": "eq",
"evaluation_periods": 1,
"exclude_outliers": false,
"meter_name": "my_meter",
"period": 60,
"query": [],
"statistic": "avg",
"threshold": 99.0
},
"time_constraints": [],
"timestamp": "2014-10-22T08:39:10.896493",
"type": "threshold",
"user_id": "13d97e9c31454563b8aa78b0b2e92385"
}