Alert Rule

Create an alert rule for a specific organization.

put/org/{orgId}/alert-rule

Request

  • Base URL: https://api.pangolin.net/v1
  • URL: https://api.pangolin.net/v1/org/{orgId}/alert-rule
  • Auth: HTTP bearer

Path parameters

orgIdstring required

Request body

namestring required
eventType'health_check_healthy' | 'health_check_unhealthy' | 'health_check_toggle' | 'site_online' | 'site_offline' | 'site_toggle' | 'resource_healthy' | 'resource_unhealthy' | 'resource_degraded' | 'resource_toggle' required
enabledboolean
cooldownSecondsinteger
siteIdsinteger[]
allSitesboolean
healthCheckIdsinteger[]
allHealthChecksboolean
resourceIdsinteger[]
allResourcesboolean
userIdsstring[]
roleIdsnumber[]
emailsstring[]

Response

Successful response

dataobject nullable required
successboolean required
errorboolean required
messagestring required
statusnumber required

Changes

No recorded changes to this operation across all 1 revision of this API.