POST api/alarm/get_alarm_message
Get alarm list by device ID
Request Information
Body Parameters
GetAlarmMessageByUseIdModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AccessToken |
Token |
string |
None. |
| Imei |
IMEI |
string |
None. |
| MapType |
|
string |
None. |
| BeginTime |
Begin Time(UTC) |
string |
None. |
| EndTime |
End Time(UTC) |
string |
None. |
| TimeZone |
TimeZone |
decimal number |
None. |
Response Information
Resource Description
Return the alarm list
AlarmMessageResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Result |
Result |
Collection of AlarmMessageOutputDto |
None. |
| State |
Status Code 0:Success 1:Fail |
integer |
None. |
| Msg |
Error Message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": [
{
"Imei": "sample string 1",
"ExceptionID": "sample string 2",
"AlarmType": "sample string 3",
"AlarmName": "sample string 4",
"AlarmTime": "sample string 5",
"Lat": 6.1,
"Lng": 7.1
},
{
"Imei": "sample string 1",
"ExceptionID": "sample string 2",
"AlarmType": "sample string 3",
"AlarmName": "sample string 4",
"AlarmTime": "sample string 5",
"Lat": 6.1,
"Lng": 7.1
}
],
"State": 1,
"Msg": "sample string 2"
}
application/xml, text/xml
Sample:
<AlarmMessageResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">
<Msg>sample string 2</Msg>
<State>1</State>
<Result>
<AlarmMessageOutputDto>
<AlarmName>sample string 4</AlarmName>
<AlarmTime>sample string 5</AlarmTime>
<AlarmType>sample string 3</AlarmType>
<ExceptionID>sample string 2</ExceptionID>
<Imei>sample string 1</Imei>
<Lat>6.1</Lat>
<Lng>7.1</Lng>
</AlarmMessageOutputDto>
<AlarmMessageOutputDto>
<AlarmName>sample string 4</AlarmName>
<AlarmTime>sample string 5</AlarmTime>
<AlarmType>sample string 3</AlarmType>
<ExceptionID>sample string 2</ExceptionID>
<Imei>sample string 1</Imei>
<Lat>6.1</Lat>
<Lng>7.1</Lng>
</AlarmMessageOutputDto>
</Result>
</AlarmMessageResult>