Count Alerts

GET {{baseUrl}}/v2/alerts/count?query=<string>&searchIdentifier=<string>&searchIdentifierType=id

Count alerts in Opsgenie

Request Params

KeyDatatypeRequiredDescription
querystringSearch query to apply while filtering the alerts
searchIdentifierstringIdentifier of the saved search query to apply while filtering the alerts
searchIdentifierTypestringIdentifier type of the saved search query. Possible values are id and name. Default value is id. If searchIdentifier is not provided, this value is ignored.

RESPONSES

status: OK

{&quot;requestId&quot;:&quot;pariatur enim dolor officia sed&quot;,&quot;took&quot;:0,&quot;data&quot;:{&quot;count&quot;:81025449}}