Querying Custom Alerts

The allCustomAlarmsWithFilters query retrieves custom, user defined alarms for a specific building and provides detailed information for each alarm. With a valid authorization token header, run the below query from your app or API client using the below URL and input parameters.

Query Request

From your app or API client, use the below URL:

URL: https://api.abound.carrier.io/prod-ahs-api/graphql/

Argument: The buildingId, deviceType and fromTimestamp are required

Query Response

In response to the query mentioned above, the system will display all historical alarms marked as resolved, provide links to specific alerts for a building, and indicate if any alarms were acknowledged by a user.

Query
                    
                      {
allCustomAlarmsWithFilters(criteria: {
buildingId: "37afffb0-4bd6-46b9-9166-bac78282dd28",
deviceType: ALL,
fromTimestamp: "1718287653132"
}) {
count
list {
aboundId
acknowledgedByUserId
acknowledgment
alarmEndedTime
alarmStartTime
alarmType
alert {
name
}
buildingId
id
isActive
label
metricCriteria {
currentValue
}
}
}
}
RESPONSE
                    
                      {
"data": {
"allCustomAlarmsWithFilters": {
"count": 5,
"list": [
{
"aboundId": "b6bdd356-7389-4c90-8dc0-feeffab0178a",
"acknowledgedByUserId": null,
"acknowledgment": false,
"alarmEndedTime": 1720802005129,
"alarmStartTime": 1720802005129,
"alarmType": "HISTORICAL",
"alert": {
"name": "owls alert"
}
},
{
"aboundId": "a18813ff-4923-432f-bb1d-fb8c602c9ae5",
"acknowledgedByUserId": null,
"acknowledgment": false,
"alarmEndedTime": 1720802002216,
"alarmStartTime": 1720802002216,
"alarmType": "HISTORICAL",
"alert": {
"name": "owls alert"
},
"buildingId": "37afffb0-4bd6-46b9-9166-bac78282dd28",
"id": "0a17afdc-dab1-4902-add8-f29772d2d0f9",
"isActive": false,
"label": "RESOLVED",
"metricCriteria": null
},
{
"buildingId": "37afffb0-4bd6-46b9-9166-bac78282dd28",
"id": "1cad9bb9-caa0-4151-b1cc-22305183f63f",
"isActive": false,
"label": "RESOLVED",
"metricCriteria": null
}
]
}
}
}