deepalive API
With the API, scripts, Terraform and other systems can read and change an organisation's checks, alert receivers, suppliers, status pages, incidents and maintenance. Everything here matches what you can do in the portal.
Access
Make an API key under Settings in the portal and send it as Authorization: Bearer. A read key can use GET. A write key can also change things. Each key may make 120 calls a minute, and every change is written to the organisation's audit log with the key's name. The organisation's IP restriction applies to keys too.
curl -H "Authorization: Bearer dak_..." https://api.deepalive.net/v1/overview
Changes are sent as JSON. Fields the API does not know are refused, so a typo is never silently ignored.
curl -X POST -H "Authorization: Bearer dak_..." -H "Content-Type: application/json" \
-d '{"title":"Hjemmesiden svarer langsomt","impact":"minor","body":"Vi undersøger sagen.","notify":true}' \
https://api.deepalive.net/v1/incidents
Errors
Errors have an HTTP status and a JSON answer with a readable message and a stable code.
{"error": "unknown or expired API key", "code": "unauthorized"}
Organisation
GET /v1/org
The organisation, its plan, limits and usage, and the key in use.
GET /v1/overview
Everything that is wrong right now: checks that are down and their possible supplier causes, suppliers with problems, open incidents and maintenance.
POST /v1/maintenance-mode write key
Turn maintenance mode for the whole organisation on for a while, or off. Every alert is held meanwhile; checks keep running.
| Field | Type | |
|---|---|---|
minutes required | integer | Hold every alert in the organisation for this many minutes, at most 480 (8 hours). 0 ends maintenance mode. An outage still on when it ends is alerted then. |
Checks
GET /v1/checks
List checks with their live status.
| Parameter | |
|---|---|
status | Only checks with this status: ok, down, pending, unknown or paused. |
POST /v1/checks write key
Make a check. Agent and heartbeat checks answer with their push token, shown this once.
| Field | Type | |
|---|---|---|
name required | string | Name shown in the portal, on status pages and in alerts. |
id | string | Short id of the check, used in URLs. Made from the name when left out. Cannot change later. |
type | string | What to check. Required when making a check; cannot change later. http, tcp, dns, nameservers, tls, ping, domain, blacklist, agent, heartbeat |
target | string | URL for http, host:port for tcp and tls, host name for dns, ping, domain and blacklist, domain name for nameservers. Not used by agent and heartbeat checks. |
interval_seconds | integer | How often to check. Defaults to the shortest the plan allows. Domain checks always run every 6 hours and blacklist checks at most every 15 minutes. |
receivers | list | Names of the receivers to alert. Empty alerts every receiver the org has, including ones added later. |
enabled | boolean | Whether the check runs. Defaults to true when making a check and to unchanged when replacing one. |
body_contains | string | http: text the response body must contain. |
json_path | string | http: a value in a JSON body, as keys and list indexes with dots between (data.0.status). |
json_equals | string | http: what the value at json_path must equal. |
record_type | string | dns: the record type to look up (A by default). A, AAAA, CNAME, MX, TXT, NS |
min_cert_days | integer | http and tls: fail when the certificate expires within this many days. |
min_domain_days | integer | domain: fail when the registration expires within this many days. |
max_latency_ms | integer | Fail when an answer takes longer than this many milliseconds (0: off). |
grace_seconds | integer | agent and heartbeat: down when nothing arrived for this long. Defaults to 180 for agents and 3600 for heartbeats. |
max_disk_pct | number | agent: fail when a disk is fuller than this percentage (default 90). |
max_mem_pct | number | agent: fail when memory is fuller than this percentage (0: off). |
expect_ns | list | nameservers: the name servers the domain must be delegated to. Required when making a nameservers check; left out when replacing one: unchanged. |
method | string | http: the request method, GET by default. Left out when replacing a check: unchanged. GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS |
headers | object | http: request headers, like Authorization. Left out: unchanged. Never returned, only their names (header_names). |
body | string | http: request body for POST, PUT and PATCH, at most 8 KB. Content-Type is application/json when it starts with { or [ unless a header says otherwise. Left out: unchanged. |
expect_status | list | http: the statuses that count as up, e.g. [200, 204]. Empty: 200 to 399. Left out: unchanged. |
body_not_contains | string | http: text the response body must not contain. Left out: unchanged. |
starttls | string | tls: talk smtp, imap or pop3 in plain text and upgrade with STARTTLS, checking the greeting too; none is TLS from the first byte. Empty picks by port (25, 587, 2525, 143, 110). Left out: unchanged. smtp, imap, pop3, none |
expect | list | dns: values the answer must contain, e.g. an IP address or a TXT value. Empty: any answer. Left out: unchanged. |
degraded_latency_ms | integer | http, tcp, tls, dns and ping: slower answers mark the check degraded, not down (0: off). Left out: unchanged. |
system | string | Id of the system the check is part of; empty takes it out of its system. Left out: unchanged. |
timeout_seconds | integer | http, tcp, dns, tls and ping: how long to wait for an answer, 1 to 30 seconds and shorter than the interval (10 by default). Left out: unchanged. |
lists | list | blacklist: the DNS blocklists to look in: zen.spamhaus.org, bl.spamcop.net, b.barracudacentral.org, psbl.surriel.com, dnsbl-1.uceprotect.net, dbl.spamhaus.org, dnsbl.dronebl.org, ix.dnsbl.manitu.net, multi.surbl.org. Empty: the usual ones for an address or a name. Left out: unchanged. |
escalation | list | Alert more receivers while the check stays down, at most 5 steps with growing after_minutes. Empty removes escalation. Left out: unchanged. |
max_cpu_pct | number | agent: fail when the processor is busier than this percentage for 5 minutes (0: off). Left out: unchanged. |
max_net_mbps | number | agent: fail when network traffic is above this many Mbit/s (0: off). Left out: unchanged. |
max_disk_temp | number | agent: fail when a disk is warmer than this many degrees Celsius, or SMART reports a failing disk (0: off). Left out: unchanged. |
max_swap_pct | number | agent: fail when swap is fuller than this percentage (0: off). Left out: unchanged. |
max_load | number | agent: fail when the one-minute load average per CPU reaches this, e.g. 2 on a 4-CPU server means a load of 8 (0: off). Left out: unchanged. |
net_link | boolean | agent: fail when a network interface loses its link. Left out: unchanged. |
ops_warnings | boolean | agent: warn about pending updates, reboots, failed services, out-of-memory kills and clock drift (default true). Left out: unchanged. |
services | list | agent: services that must be running (systemd units, launchd labels or Windows services), at most 20. Left out: unchanged. |
processes | list | agent: process names that must be running, at most 20. Left out: unchanged. |
containers | list | agent: Docker containers that must run and be healthy, by container name or Compose service, at most 20. Agent 1.2.0 or later. Left out: unchanged. |
docker_all | boolean | agent: fail when any Docker container on the server is unhealthy, restarting or exited with an error code. Left out: unchanged. |
logs | list | agent: logs to watch for matching lines, at most 10. Agent 1.2.0 or later. Empty removes them. Left out: unchanged. |
ip_version | string | http, tcp and tls: connect over IPv4 (4) or IPv6 (6) only; empty takes whichever answers. Left out: unchanged. 4, 6 |
no_redirects | boolean | http: take a redirect as the answer instead of following it. Left out: unchanged. |
GET /v1/checks/{id}
One check with its live status.
PUT /v1/checks/{id} write key
Replace a check's settings. Its id and type stay, and settings the API does not carry, like escalation, are kept.
| Field | Type | |
|---|---|---|
name required | string | Name shown in the portal, on status pages and in alerts. |
id | string | Short id of the check, used in URLs. Made from the name when left out. Cannot change later. |
type | string | What to check. Required when making a check; cannot change later. http, tcp, dns, nameservers, tls, ping, domain, blacklist, agent, heartbeat |
target | string | URL for http, host:port for tcp and tls, host name for dns, ping, domain and blacklist, domain name for nameservers. Not used by agent and heartbeat checks. |
interval_seconds | integer | How often to check. Defaults to the shortest the plan allows. Domain checks always run every 6 hours and blacklist checks at most every 15 minutes. |
receivers | list | Names of the receivers to alert. Empty alerts every receiver the org has, including ones added later. |
enabled | boolean | Whether the check runs. Defaults to true when making a check and to unchanged when replacing one. |
body_contains | string | http: text the response body must contain. |
json_path | string | http: a value in a JSON body, as keys and list indexes with dots between (data.0.status). |
json_equals | string | http: what the value at json_path must equal. |
record_type | string | dns: the record type to look up (A by default). A, AAAA, CNAME, MX, TXT, NS |
min_cert_days | integer | http and tls: fail when the certificate expires within this many days. |
min_domain_days | integer | domain: fail when the registration expires within this many days. |
max_latency_ms | integer | Fail when an answer takes longer than this many milliseconds (0: off). |
grace_seconds | integer | agent and heartbeat: down when nothing arrived for this long. Defaults to 180 for agents and 3600 for heartbeats. |
max_disk_pct | number | agent: fail when a disk is fuller than this percentage (default 90). |
max_mem_pct | number | agent: fail when memory is fuller than this percentage (0: off). |
expect_ns | list | nameservers: the name servers the domain must be delegated to. Required when making a nameservers check; left out when replacing one: unchanged. |
method | string | http: the request method, GET by default. Left out when replacing a check: unchanged. GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS |
headers | object | http: request headers, like Authorization. Left out: unchanged. Never returned, only their names (header_names). |
body | string | http: request body for POST, PUT and PATCH, at most 8 KB. Content-Type is application/json when it starts with { or [ unless a header says otherwise. Left out: unchanged. |
expect_status | list | http: the statuses that count as up, e.g. [200, 204]. Empty: 200 to 399. Left out: unchanged. |
body_not_contains | string | http: text the response body must not contain. Left out: unchanged. |
starttls | string | tls: talk smtp, imap or pop3 in plain text and upgrade with STARTTLS, checking the greeting too; none is TLS from the first byte. Empty picks by port (25, 587, 2525, 143, 110). Left out: unchanged. smtp, imap, pop3, none |
expect | list | dns: values the answer must contain, e.g. an IP address or a TXT value. Empty: any answer. Left out: unchanged. |
degraded_latency_ms | integer | http, tcp, tls, dns and ping: slower answers mark the check degraded, not down (0: off). Left out: unchanged. |
system | string | Id of the system the check is part of; empty takes it out of its system. Left out: unchanged. |
timeout_seconds | integer | http, tcp, dns, tls and ping: how long to wait for an answer, 1 to 30 seconds and shorter than the interval (10 by default). Left out: unchanged. |
lists | list | blacklist: the DNS blocklists to look in: zen.spamhaus.org, bl.spamcop.net, b.barracudacentral.org, psbl.surriel.com, dnsbl-1.uceprotect.net, dbl.spamhaus.org, dnsbl.dronebl.org, ix.dnsbl.manitu.net, multi.surbl.org. Empty: the usual ones for an address or a name. Left out: unchanged. |
escalation | list | Alert more receivers while the check stays down, at most 5 steps with growing after_minutes. Empty removes escalation. Left out: unchanged. |
max_cpu_pct | number | agent: fail when the processor is busier than this percentage for 5 minutes (0: off). Left out: unchanged. |
max_net_mbps | number | agent: fail when network traffic is above this many Mbit/s (0: off). Left out: unchanged. |
max_disk_temp | number | agent: fail when a disk is warmer than this many degrees Celsius, or SMART reports a failing disk (0: off). Left out: unchanged. |
max_swap_pct | number | agent: fail when swap is fuller than this percentage (0: off). Left out: unchanged. |
max_load | number | agent: fail when the one-minute load average per CPU reaches this, e.g. 2 on a 4-CPU server means a load of 8 (0: off). Left out: unchanged. |
net_link | boolean | agent: fail when a network interface loses its link. Left out: unchanged. |
ops_warnings | boolean | agent: warn about pending updates, reboots, failed services, out-of-memory kills and clock drift (default true). Left out: unchanged. |
services | list | agent: services that must be running (systemd units, launchd labels or Windows services), at most 20. Left out: unchanged. |
processes | list | agent: process names that must be running, at most 20. Left out: unchanged. |
containers | list | agent: Docker containers that must run and be healthy, by container name or Compose service, at most 20. Agent 1.2.0 or later. Left out: unchanged. |
docker_all | boolean | agent: fail when any Docker container on the server is unhealthy, restarting or exited with an error code. Left out: unchanged. |
logs | list | agent: logs to watch for matching lines, at most 10. Agent 1.2.0 or later. Empty removes them. Left out: unchanged. |
ip_version | string | http, tcp and tls: connect over IPv4 (4) or IPv6 (6) only; empty takes whichever answers. Left out: unchanged. 4, 6 |
no_redirects | boolean | http: take a redirect as the answer instead of following it. Left out: unchanged. |
DELETE /v1/checks/{id} write key
Delete a check.
POST /v1/checks/{id}/pause write key
Pause a check's alerts for a while, or resume them. The check keeps running.
| Field | Type | |
|---|---|---|
minutes required | integer | Pause the check's alerts for this many minutes, at most 10080 (7 days). 0 resumes them. The check keeps running. |
POST /v1/checks/{id}/token write key
Renew an agent or heartbeat check's push token. The old one stops working.
Systems
GET /v1/systems
List systems (groups of checks of one thing, such as a server) with their combined status.
POST /v1/systems write key
Make a system, optionally with its checks.
| Field | Type | |
|---|---|---|
name required | string | Name of the system, for example "Web server 1". Unique in the organisation. |
description | string | Text shown under the name. |
down_when | string | all (default): down when all its running checks are down, partly down when some are. any: down as soon as one check is down. all, any |
checks | list | Ids of the checks in the system. Checks in another system move here. Left out: unchanged. |
GET /v1/systems/{id}
One system with its checks, supplier dependencies and combined status.
PUT /v1/systems/{id} write key
Replace a system's settings, and its checks when given.
| Field | Type | |
|---|---|---|
name required | string | Name of the system, for example "Web server 1". Unique in the organisation. |
description | string | Text shown under the name. |
down_when | string | all (default): down when all its running checks are down, partly down when some are. any: down as soon as one check is down. all, any |
checks | list | Ids of the checks in the system. Checks in another system move here. Left out: unchanged. |
DELETE /v1/systems/{id} write key
Delete a system. Its checks carry on without one.
Receivers
GET /v1/receivers
List alert receivers.
POST /v1/receivers write key
Make an alert receiver.
| Field | Type | |
|---|---|---|
name | string | Name checks use to pick the receiver. Required when making one; cannot change later. |
email | list | Mail addresses to alert. |
sms | list | Phone numbers to text, with country code (+4512345678). |
webhook | string | HTTPS URL to post alerts to. |
format | string | Webhook body format (json by default). json, slack, teams, discord, mattermost, rocketchat, googlechat, zulip, webex, matrix, ntfy, pagerduty, ilert, signl4 |
token | string | Secret for pagerduty (routing key), ilert (integration key) and matrix (access token). Write-only; leave it out to keep the saved one. |
language | string | Language of the alerts (Danish by default). da, en |
GET /v1/receivers/{id}
One receiver, by id or name.
PUT /v1/receivers/{id} write key
Replace where a receiver sends alerts. Its name stays.
| Field | Type | |
|---|---|---|
name | string | Name checks use to pick the receiver. Required when making one; cannot change later. |
email | list | Mail addresses to alert. |
sms | list | Phone numbers to text, with country code (+4512345678). |
webhook | string | HTTPS URL to post alerts to. |
format | string | Webhook body format (json by default). json, slack, teams, discord, mattermost, rocketchat, googlechat, zulip, webex, matrix, ntfy, pagerduty, ilert, signl4 |
token | string | Secret for pagerduty (routing key), ilert (integration key) and matrix (access token). Write-only; leave it out to keep the saved one. |
language | string | Language of the alerts (Danish by default). da, en |
DELETE /v1/receivers/{id} write key
Delete a receiver. Checks stop alerting it.
Suppliers
GET /v1/supplier-catalog
Well-known suppliers whose status source we know. Make one with POST /v1/suppliers and its id as catalog.
GET /v1/suppliers
List suppliers with their status.
POST /v1/suppliers write key
Add a supplier to follow.
| Field | Type | |
|---|---|---|
name | string | Supplier name. Required unless catalog is given. |
kind | string | How the supplier's status reaches us. Required unless catalog is given; cannot change later. statuspage, feed, page, mail, manual |
url | string | Status page, feed or web page to read, for statuspage, feed and page suppliers. |
catalog | string | Id of a well-known supplier to copy kind and URL from, when making a supplier. |
rules | string | Rules for reading the supplier's mails and pages, one per line. |
senders | string | Mail addresses or domains the supplier's mails come from, comma separated. |
use_llm | boolean | Let AI read messages the rules do not understand (default true). |
notify | boolean | Alert the org's receivers when the supplier's status changes (default true). |
GET /v1/suppliers/{id}
One supplier with its components and the incidents of the last 14 days.
PUT /v1/suppliers/{id} write key
Replace a supplier's settings. Its kind stays.
| Field | Type | |
|---|---|---|
name | string | Supplier name. Required unless catalog is given. |
kind | string | How the supplier's status reaches us. Required unless catalog is given; cannot change later. statuspage, feed, page, mail, manual |
url | string | Status page, feed or web page to read, for statuspage, feed and page suppliers. |
catalog | string | Id of a well-known supplier to copy kind and URL from, when making a supplier. |
rules | string | Rules for reading the supplier's mails and pages, one per line. |
senders | string | Mail addresses or domains the supplier's mails come from, comma separated. |
use_llm | boolean | Let AI read messages the rules do not understand (default true). |
notify | boolean | Alert the org's receivers when the supplier's status changes (default true). |
DELETE /v1/suppliers/{id} write key
Stop following a supplier.
POST /v1/suppliers/{id}/reports write key
Report a supplier problem by hand, for example after a phone call.
| Field | Type | |
|---|---|---|
title required | string | What is wrong, for example "Meter readings delayed". |
status required | string | How bad it is. degraded, outage, maintenance |
component | string | The supplier component it concerns, if any. |
summary | string | More detail. |
starts_at | time | maintenance: when it starts. |
ends_at | time | maintenance: when it ends. |
POST /v1/suppliers/{id}/incidents/{iid}/resolve write key
Mark a supplier incident as over.
GET /v1/suppliers/{id}/dependencies
Which checks and systems need this supplier.
POST /v1/suppliers/{id}/dependencies write key
Say a check or a whole system needs this supplier, so its problems show as a possible cause.
| Field | Type | |
|---|---|---|
check | string | Id of the check that needs the supplier. Give check or system. |
system | string | Id of a system that needs the supplier; all its checks inherit the dependency. Give check or system. |
component | string | Supplier component the check or system needs; empty means the whole supplier. |
DELETE /v1/suppliers/{id}/dependencies write key
Remove a dependency.
| Parameter | |
|---|---|
check | Id of the check (or give system). |
system | Id of the system (or give check). |
component | The supplier component, if the dependency has one. |
Status pages
GET /v1/status-page
The main status page's settings.
PUT /v1/status-page write key
Replace the main status page's settings.
| Field | Type | |
|---|---|---|
slug | string | Extra pages: short name in the page's address. Required when making one; cannot change later. |
enabled | boolean | Whether the page is public. |
title | string | Page title. |
intro | string | Text under the title. |
auto_incidents | boolean | Main page only: open an incident when a component's check goes down and resolve it when it is back. |
components | list | Extra pages only: ids of the components the page shows; empty shows every public component. |
GET /v1/status-pages
List extra status pages.
POST /v1/status-pages write key
Make an extra status page showing chosen components.
| Field | Type | |
|---|---|---|
slug | string | Extra pages: short name in the page's address. Required when making one; cannot change later. |
enabled | boolean | Whether the page is public. |
title | string | Page title. |
intro | string | Text under the title. |
auto_incidents | boolean | Main page only: open an incident when a component's check goes down and resolve it when it is back. |
components | list | Extra pages only: ids of the components the page shows; empty shows every public component. |
GET /v1/status-pages/{id}
One extra status page.
PUT /v1/status-pages/{id} write key
Replace an extra status page's settings. Its slug stays.
| Field | Type | |
|---|---|---|
slug | string | Extra pages: short name in the page's address. Required when making one; cannot change later. |
enabled | boolean | Whether the page is public. |
title | string | Page title. |
intro | string | Text under the title. |
auto_incidents | boolean | Main page only: open an incident when a component's check goes down and resolve it when it is back. |
components | list | Extra pages only: ids of the components the page shows; empty shows every public component. |
DELETE /v1/status-pages/{id} write key
Delete an extra status page.
GET /v1/components
List status page components.
POST /v1/components write key
Add a component to the status pages.
| Field | Type | |
|---|---|---|
name required | string | Name shown on status pages. |
description | string | Text under the name. |
check | string | Id of a check the component follows. |
supplier_id | string | Id of a supplier the component follows, instead of a check. |
supplier_component | string | One of the supplier's components to follow instead of the whole supplier. |
system_id | string | Id of a system whose combined status the component follows, instead of a check or supplier. Left out, an update keeps the system unless check or supplier_id is given; "" removes it. |
hidden | boolean | Internal component: shown in the portal, not on public pages. |
group | string | Heading the component shows under on status pages, with others in the same group. Left out, an update keeps the group; "" removes it. |
GET /v1/components/{id}
One component.
PUT /v1/components/{id} write key
Replace a component's settings.
| Field | Type | |
|---|---|---|
name required | string | Name shown on status pages. |
description | string | Text under the name. |
check | string | Id of a check the component follows. |
supplier_id | string | Id of a supplier the component follows, instead of a check. |
supplier_component | string | One of the supplier's components to follow instead of the whole supplier. |
system_id | string | Id of a system whose combined status the component follows, instead of a check or supplier. Left out, an update keeps the system unless check or supplier_id is given; "" removes it. |
hidden | boolean | Internal component: shown in the portal, not on public pages. |
group | string | Heading the component shows under on status pages, with others in the same group. Left out, an update keeps the group; "" removes it. |
DELETE /v1/components/{id} write key
Delete a component.
Incidents and maintenance
GET /v1/incidents
Open incidents and those closed in the last 30 days.
| Parameter | |
|---|---|
open | true: only open ones. |
POST /v1/incidents write key
Open an incident on the status pages.
| Field | Type | |
|---|---|---|
title required | string | Short headline. |
impact required | string | How bad it is. minor, major, critical |
status | string | Where the work stands (investigating by default). investigating, identified, monitoring |
body | string | The first update, shown on the status page. |
components | list | Ids of the affected components. |
notify | boolean | Tell the status pages' subscribers by mail and SMS. |
GET /v1/incidents/{id}
One incident or maintenance window with all its updates.
POST /v1/incidents/{id}/updates write key
Post an update to an incident or maintenance window and set its status.
| Field | Type | |
|---|---|---|
status required | string | New status. Incidents use investigating, identified, monitoring and resolved; maintenance uses scheduled, in_progress and completed. resolved and completed close it. investigating, identified, monitoring, resolved, scheduled, in_progress, completed |
body | string | The update's text. |
notify | boolean | Tell the status pages' subscribers by mail and SMS. |
PATCH /v1/incidents/{id} write key
Change an incident's or maintenance window's title, impact or affected components.
| Field | Type | |
|---|---|---|
title | string | New headline. Left out: unchanged. |
impact | string | New impact; maintenance keeps its own. Left out: unchanged. minor, major, critical |
components | list | Ids of the affected components, replacing the current ones. Left out: unchanged. |
DELETE /v1/incidents/{id} write key
Delete an incident or maintenance window.
GET /v1/maintenance
Open maintenance windows and those closed in the last 30 days.
| Parameter | |
|---|---|
open | true: only open ones. |
POST /v1/maintenance write key
Schedule maintenance. Update or delete it under /v1/incidents/{id}.
| Field | Type | |
|---|---|---|
title required | string | Short headline. |
starts_at required | time | When the window starts (RFC 3339). |
ends_at required | time | When the window ends (RFC 3339). |
body | string | What will happen, shown on the status page. |
components | list | Ids of the affected components. |
notify | boolean | Tell the status pages' subscribers by mail and SMS. |
MCP server for AI assistants
AI assistants such as Claude can read the organisation's status through the MCP server (Model Context Protocol, streamable HTTP) and answer questions like "what is down, and is it Kamstrup?". It takes the same API keys. With a read key the assistant can only look. With a write key it can also open and update incidents, schedule maintenance, report supplier problems and pause alerts, and everything is written to the audit log.
https://api.deepalive.net/mcp
In Claude Code:
claude mcp add --transport http deepalive https://api.deepalive.net/mcp --header "Authorization: Bearer dak_..."
Other clients that speak MCP over HTTP:
{"mcpServers": {"deepalive": {"type": "http", "url": "https://api.deepalive.net/mcp", "headers": {"Authorization": "Bearer dak_..."}}}}
| Tool | |
|---|---|
get_overview | Start here. Everything wrong right now: checks that are down or pending with the supplier problems that may cause them, suppliers with problems, open incidents and maintenance. |
list_checks | The organisation's uptime checks with live status (ok, down, pending, unknown, paused), 90-day uptime and possible supplier causes. |
get_check | One check by its id, with live status and settings. |
list_systems | Systems group checks that watch one thing, such as a server with an agent, an HTTP check and ping. Each has a combined status (ok, partial, down, ...), its checks and the suppliers it depends on. |
list_suppliers | Suppliers the organisation follows (for example Kamstrup or a cloud provider) and their current status: operational, degraded, outage or maintenance. |
get_supplier | One supplier with its components and incidents from the last 14 days. |
list_supplier_dependencies | Which of the organisation's checks and systems depend on a supplier, so you can tell what a supplier outage affects. |
list_incidents | Incidents on the organisation's status pages: open ones and those closed in the last 30 days. |
get_incident | One incident or maintenance window with all its updates. |
list_maintenance | Planned maintenance: open windows and those closed in the last 30 days. |
list_components | Components shown on the status pages, and which check or supplier each follows. Incidents refer to components by id. |
create_incident write key | Open an incident on the organisation's public status pages. Only do this when the user asks. Set notify to tell subscribers by mail and SMS. |
update_incident write key | Post an update to an incident or maintenance window and set its status; resolved or completed closes it. Only do this when the user asks. |
edit_incident write key | Change an incident's or maintenance window's title, impact or affected components without posting an update. Only do this when the user asks. |
schedule_maintenance write key | Announce planned maintenance on the status pages. Only do this when the user asks. |
report_supplier_problem write key | Record a supplier problem the user heard about outside deepalive, for example by phone. It shows as a possible cause on the checks that depend on the supplier. |
pause_check_alerts write key | Hold a check's alerts for a number of minutes (0 resumes them), for example during work on the system. The check keeps running. |
set_maintenance_mode write key | Hold every alert in the organisation for a number of minutes, at most 480 (0 ends it), for example during a move or a large upgrade. Checks keep running. |
Terraform
The Terraform provider manages checks, receivers, suppliers, dependencies, status pages and components as code. It uses the same API, so the key needs write access. Anything that already exists can be brought in with terraform import.
terraform {
required_providers {
deepalive = { source = "deepalive-net/deepalive" }
}
}
provider "deepalive" {
endpoint = "https://api.deepalive.net"
# api_key from DEEPALIVE_API_KEY (a write key)
}
resource "deepalive_receiver" "ops" {
name = "ops"
email = ["drift@example.com"]
}
resource "deepalive_check" "web" {
name = "Website"
type = "http"
target = "https://example.com/"
receivers = [deepalive_receiver.ops.name]
}
resource "deepalive_component" "web" {
name = "Website"
check = deepalive_check.web.id
}
The provider and a guide live in the terraform-provider-deepalive directory of the source code. Until it is published in the Terraform Registry, build it locally and use it with dev_overrides.