Alert rules
Create an alert rule
A rule watches one subject. Expiry subjects (certificate, registration) take days/weeks/on_expiration triggers; http (the uptime check) takes http_down, http_slow and recovered; dns takes dns_changed and recovered; keyword takes keyword_failed and recovered; content takes content_changed, content_failed and recovered; port takes port_down and recovered. An enabled rule is evaluated immediately against every website it covers, so a website already inside a threshold alerts straight away.
post/v1/alert-rules
Request
- Base URL: https://api.upcheck.so
- URL: https://api.upcheck.so/v1/alert-rules
- Auth: HTTP bearer
Request body
Example request
{
"name": "Certificate expiry",
"triggers": [
{
"type": "days",
"value": 14
},
{
"type": "on_expiration",
"value": 0
}
],
"channels": [
"email",
"slack"
],
"integrationIds": [
"9b1d..."
],
"emailListIds": [
"9b1d..."
],
"domainIds": [
"9b1d..."
]
}Response
Created.
Example response
{
"id": "9b1d...",
"organizationId": "9b1d...",
"domainIds": [
"9b1d..."
],
"integrationIds": [
"9b1d..."
],
"emailListIds": [
"9b1d..."
]
}Changes
No recorded changes to this operation across all 1 revision of this API.