List alert events
GET/api/v1/orgs/{orgId}/alert-events
Retrieve a paginated list of alert events (fired alerts) for an organization. An alert event is created when an alert policy's trigger condition is met and its delay passes without a reading that meets the reset condition. It is resolved automatically when the reset condition is met and the delay passes without a reading that meets the trigger condition. All filters are optional and combined with logical AND.
Parameters
status(integer, optional): Filter by event status. Status values are numbers.0Firing (currently active, not yet resolved),1Acknowledged,2Resolved (closed automatically once the reset condition holds). Manual acknowledgement is not available, so1does not occur in this version.alertPolicyId(UUID, optional): Filter by the alert policy that fired the event.deviceId(string, optional): Filter by the device the triggering data stream belongs to.start(datetime, optional): Return events fired on or after this timestamp (ISO 8601 UTC).end(datetime, optional): Return events fired before this timestamp (ISO 8601 UTC).sorting(string, optional, default:FiredTime DESC): Sort expression, e.g.firedTime asc.skipCount(integer, optional, default: 0): Number of records to skip.maxResultCount(integer, optional, default: 10): Maximum records to return.
Responses
200 OK: Returns a paginated list of alert events. Each item includesalertEventId,alertPolicyId,policyName(a point-in-time snapshot of the policy name at fire time, unaffected by later renames),deviceId,dataStreamId,status,triggeredValue(the last data stream value received when the delay ended, which may not meetalertLevel),alertLevel(the trigger condition at fire time),firedTime, and, once applicable,resolvedTimeandresolvedBy. Events are resolved automatically, soresolvedByisnull.acknowledgedTimeandacknowledgedByare alsonullin this version.statusis a number (0Firing,2Resolved).
Request
Responses
- 200
OK