Alerts
Endpoints for the metric alert rules of the team and the alerts they raise. Rules are checked every minute and notify the team when a metric of a server stays above or below a threshold.
List alert rules
List the team's metric alert rules, oldest first. Rules watch the servers the team owns, not servers shared with it.
query Parameters
querySearch results by name.
per_pageNumber of results per page.
pagePage number to return.
List alert rules › Responses
Paginated set of AlertRule
Create an alert rule
Create a metric alert rule: when the metric stays above or below the threshold for the whole duration on a server the rule watches, an alert fires and the team members who want metric alerts are notified. Rules are checked every minute.
Create an alert rule › Request Body
metricWhat the rule watches.
conditionFire when the metric stays above or below the threshold.
thresholdThreshold in the metric's unit: a percentage for percentages, Mbit/s for network traffic, MB/s for disk throughput and minutes for uptime. For a baseline rule, the percentage above or below the normal level instead.
duration_minutesMinutes the metric must stay above or below the threshold, 1 to 1440.
baselineCompare to the metric's normal level instead of a fixed value: time_of_day is the average at the same time of day over the past week. Null for a fixed threshold. Not for disk space, inodes and uptime.
minimum_differenceFor a baseline rule: how much the value must at least differ from normal, in the metric's unit, so a metric that is normally close to zero does not alert on a small change. Null for any difference.
scopeWhich of the team's servers the rule watches: all, the servers with tag, or the chosen servers.
excludeFor tag and servers rules: watch the servers without the tag, or all servers except the chosen ones.
tagFormatted ID of one of the team's tags, required for tag rules.
serversFormatted IDs of the team's servers, required for servers rules.
instance^[^\x00-\x1F\x7F]*$The mount point, disk or interface to watch, for metrics that have them. Without one, disk space and inode rules watch every mount point separately, and disk and network rules the host total.
enabledWhether the rule is evaluated. Turning it off closes its open alerts.
Create an alert rule › Responses
The alert rule was created.
Get an alert rule
Get one of the team's metric alert rules.
path Parameters
ruleGet an alert rule › Responses
AlertRule
Update an alert rule
Change an alert rule, or turn it off or on with enabled. Fields left out keep their value. A change closes the rule's firing alerts, which no longer say what the rule says; they fire again at the next check if the new rule is breached.
path Parameters
ruleUpdate an alert rule › Request Body
metricWhat the rule watches.
conditionFire when the metric stays above or below the threshold.
thresholdThreshold in the metric's unit: a percentage for percentages, Mbit/s for network traffic, MB/s for disk throughput and minutes for uptime. For a baseline rule, the percentage above or below the normal level instead.
duration_minutesMinutes the metric must stay above or below the threshold, 1 to 1440.
baselineCompare to the metric's normal level instead of a fixed value: time_of_day is the average at the same time of day over the past week. Null for a fixed threshold. Not for disk space, inodes and uptime.
minimum_differenceFor a baseline rule: how much the value must at least differ from normal, in the metric's unit, so a metric that is normally close to zero does not alert on a small change. Null for any difference.
scopeWhich of the team's servers the rule watches: all, the servers with tag, or the chosen servers.
excludeFor tag and servers rules: watch the servers without the tag, or all servers except the chosen ones.
tagFormatted ID of one of the team's tags, required for tag rules.
serversFormatted IDs of the team's servers, required for servers rules.
instance^[^\x00-\x1F\x7F]*$The mount point, disk or interface to watch, for metrics that have them. Without one, disk space and inode rules watch every mount point separately, and disk and network rules the host total.
enabledWhether the rule is evaluated. Turning it off closes its open alerts.
Update an alert rule › Responses
AlertRule
List alerts
List the alerts the team's rules raised, firing alerts first, then the newest first. Alerts stay after their rule changed or was deleted, and go when their server is deleted.
query Parameters
statusOnly return firing or resolved alerts, both when omitted.
serverOnly return alerts of this server.
ruleOnly return alerts of this rule, including those it raised before it changed.
metricOnly return alerts of this metric.
per_pagepageList alerts › Responses
Paginated set of Alert
Get an alert
Get one of the alerts the team's rules raised.
path Parameters
alertGet an alert › Responses
Alert