获取一个 alarm by its ID
This API allows retrieving an alarm by its ID.
Request
GET /api/v2/alarms/{alarmID} HTTP/1.1
Host: gear.cloud.studio
Authorization: Bearer {accessToken}参数
| 名称 | 说明 |
|---|---|
| accessToken | Access token with permissions to read alarm information. See this page for more information. The 访问令牌 can also be sent as part of the query string, 使用 "accessToken" parameter. |
| alarmID | Unique identifier of the alarm for which information is requested. |
Response
The response contains the specified alarm, as shown in this example:
{
"AlarmID": 1266896,
"DeviceID": 7370,
"DeviceDescription": "Controlador RUPANCO",
"EndpointID": 0,
"AlarmTypeID": 1,
"AlarmTypeDescription": "Dispositivo fuera de línea",
"AlarmSeverityID": 3,
"AlarmSeverityDescription": "Alta",
"Details": "",
"DateTimeCreated_UTC": "2021-10-15T17:34:35",
"DateTimeClosed_UTC": "2021-10-15T18:21:39",
"SequenceNumber": 28885207,
"MTTRMinutes": 47.0
}