Alarm Log
Will list all historically triggered alarms.
URL Structure is:
https://api.trackunit.com/public/AlarmLog
GetAlarmLog
Parameters
Name | Data type | Unit of measurement | Note |
---|---|---|---|
unitId | String | N/A | Unit identifier. If supplied, we return only logs for that alarm. |
dateFrom | DateTime | UTC | If supplied, only logs for alarms triggered after this date will be returned. |
dateTo | DateTime | UTC | If supplied, only logs for alarms triggered before this date will be returned. |
Columns
Refer to the following table for description of columns:
Name | Data type | Unit of measurement | Nullability | Note |
---|---|---|---|---|
alarmId | String | N/A | FALSE | Unit identifier. |
unitId | String | N/A | FALSE | Unit identifier. |
triggeredAt | DateTime | UTC | FALSE | |
address | Address | N/A | FALSE | |
location | Location | N/A | FALSE | |
recipients | AlarmRecipient | N/A | FALSE |
Request (example)
{}
Response
{
"list": [
{
"alarmId": "70329",
"unitId": "34333",
"triggeredAt": "2014-03-05T07:00:02.7421152Z",
"address": {
"country": "DK",
"zipCode": "3120",
"city": "Dronningmølle",
"streetAddress": "Dr Mølle Strandvej 556"
},
"location": {
"latitude": 56.5802783333333,
"longitude": 8.5522
},
"recipients": [
{
"contactId": 29829,
"sentVia": "Mail",
"phoneNumber": "499988776655",
"email": "[email protected]",
"delivered": true
}
]
},
{
"alarmId": "70329",
"unitId": "39670",
"triggeredAt": "2014-03-05T07:00:02.7421152Z",
"address": {
"country": "DK",
"zipCode": "3520",
"city": "Farum",
"streetAddress": "Farum Gydevej 73"
},
"location": {
"latitude": 56.0230783333333,
"longitude": 8.38722
},
"recipients": [
{
"contactId": 29829,
"sentVia": "Mail",
"phoneNumber": "499988776655",
"email": "[email protected]",
"delivered": true
}
]
},
{
"alarmId": "70329",
"unitId": "46208",
"triggeredAt": "2014-03-05T07:00:02.7421152Z",
"address": {
"country": "DK",
"zipCode": "2660",
"city": "Brøndby Strand",
"streetAddress": "Dyringparken 132"
},
"location": {
"latitude": 56.5546116666667,
"longitude": 8.55791333333333
},
"recipients": [
{
"contactId": 29829,
"sentVia": "Mail",
"phoneNumber": "499988776655",
"email": "[email protected]",
"delivered": true
}
]
},
{
"alarmId": "70329",
"unitId": "46209",
"triggeredAt": "2014-03-05T07:00:02.7421152Z",
"address": {
"country": "DK",
"zipCode": "3050",
"city": "Humlebæk",
"streetAddress": "Kirkeskov Alle 13"
},
"location": {
"latitude": 55.6207083333333,
"longitude": 12.3338833333333
},
"recipients": [
{
"contactId": 29829,
"sentVia": "Mail",
"phoneNumber": "499988776655",
"email": "[email protected]",
"delivered": true
}
]
}
]
}
Updated less than a minute ago