Skip to content

Uptime Monitors Reference

Uptime Monitors are used to check publicly accessible endpoints and services from 9n9s infrastructure.

For practical examples and setup guidance, see our Uptime Monitoring guide and Getting Started guide. To configure alerting, see Setting Up Alerts.

FieldTypeDescription
nameStringA human-readable name for the monitor.
protocolEnumThe protocol to use. Can be HTTP(S) or TCP. Required.
targetStringThe target to check. A URL for HTTP(S) (e.g., https://9n9s.com/api/health) or host:port for TCP (e.g., db.example.com:5432). Required.
frequencyDuration StringHow often to run the check. E.g., 1m, 5m, 1h. The minimum frequency is determined by your account tier. Required.
tagsArray<String>A list of tags to categorize and filter monitors.
check_regionsArray<String>Planned for Q1 2024 - An array of geographic regions to run checks from (e.g., us-east-1, eu-west-1). Defaults to all available regions.
requestObjectFor HTTP(S) monitors, an object to customize the request: method (GET, POST, etc.), headers (key-value pairs), and body (string).
assertionsArray<Assertion>A list of assertions to validate the response. If any assertion fails, the check is considered “Down”. See the Assertions section below. Required.

Assertions define the criteria for a successful check.

TypeOperatorValue TypeDescription
STATUS_CODEEQUALS, NOT_EQUALS, INInteger/StringChecks the HTTP status code. IN can take a range like 2xx or 4xx.
RESPONSE_TIMELESS_THAN, GREATER_THANInteger (ms)Checks the total time to get a response, in milliseconds.
RESPONSE_BODYCONTAINS, NOT_CONTAINS, MATCHES_REGEXStringChecks the content of the response body.
TLS_CERT_EXPIRYMORE_THAN_DAYSIntegerFor HTTPS, checks that the SSL/TLS certificate expires in more than X days.

An Uptime Monitor can have one of the following statuses:

StatusDescription
NewThe monitor has been created but has not yet run a check.
UpThe last check ran and all assertions passed.
DownThe last check ran and at least one assertion failed, or the service was unreachable.
PausedThe monitor’s checking and alerting has been manually paused.

</rewritten_file>