Monitors API response params

Response body params

Namespace data

Parameter Type Values
id String The id of the monitor. (string representation of a number)
type String Valid values: monitor
attributes Object Attributes object - contains all the Monitor attributes. See below
attributes.url String The URL of your website or the host you want to ping (see attributes.monitor_type below).
attributes.pronounceable_name String The pronounceable name of the monitor. We will use this when we call you, so no tongue-twisters, please. :)
attributes.monitor_type String Valid values: status — We will check your website for a 2XX HTTP status code expected_status_code - We will check if your website returned one of the values in expected_status_codes. keyword — We will check if your website contains the required_keyword. keyword_absence - We will check if your website doesn't contain the required_keyword. ping — We will ping your host specified in the url parameter tcp — We will test a TCP port at your host specified in the url parameter (port is required) udp — We will test a UDP port at your host specified in the url parameter (port and required_keyword are required) smtp — We will check for a SMTP server at the host specified in the url parameter (port is required, and can be one of 25, 465, 587, or a combination of those ports separated by a comma) pop — We will check for a POP3 server at the host specified in the url parameter (port is required, and can be 110, 995, or both) imap — We will check for an IMAP server at the host specified in the url parameter (port is required, and can be 143, 993, or both)
attributes.monitor_group_id String The Id of the monitor group that your monitor is part of. Set this attribute if you want to add this monitor to a monitor group.
attributes.last_checked_at String (ISO DateTime format) When was the last check performed. Example value 2020-09-01T14:17:46.000Z
attributes.status String - paused: the monitor was paused - pending: the monitor was just created and it's waiting for the first check - maintenance: the monitor is paused because it is currently in its maintenance period - up: checks are passing - validating: the service seems to be back up, but the recovery_period since the last failed check still hasn't passed - down: checks are failing
attributes.required_keyword String Required if monitor_type is set to keyword or udp. We will create a new incident if this keyword is missing on your page.
attributes.verify_ssl Boolean Should we verify SSL certificate validity?
attributes.check_frequency Integer How often should we check your website? In seconds.
attributes.call Boolean Should we call the on-call person?
attributes.sms Boolean Should we send an SMS to the on-call person?
attributes.email Boolean Should we send an email to the on-call person?
attributes.push Boolean Should we send a push notification to the on-call person?
attributes.team_wait Integer How long to wait before escalating the incident alert to the team. Leave blank to disable escalating to the entire team. In seconds.
attributes.http_method String HTTP Method used to make a request. Valid options: GET, HEAD, POST, PUT, PATCH
attributes.request_timeout Integer How long to wait before timing out the request? In seconds.
attributes.recovery_period Integer How long the monitor must be up to automatically mark an incident as resolved after being down. In seconds.
attributes.request_headers Array of objects An optional array of custom HTTP headers for the request. Set the name and value properties to form a complete header
attributes.request_headers[header_index].id String The Id of the header. Do not set this parameter; it is generated automatically.
attributes.request_headers[header_index].name String The name of the header. Example value: Application-type
attributes.request_headers[header_index].value String The value of the header. Example value: application/json
attributes.request_body String Request body for POST, PUT, PATCH requests.
attributes.paused_at String (ISO DateTime format) When was the monitor paused. null if the monitor is not paused.
attributes.created_at String (ISO DateTime format) When was the monitor created.
attributes.updated_at String (ISO DateTime format) When was the monitor last updated
attributes.ssl_expiration Integer How many days in advance of your SSL certificate expiration date you want to be alerted. "Don't check for SSL expiration" = null Allowed values are: null, 1, 2, 3, 7, 14, 30, 60
attributes.domain_expiration Integer How many days in advance of your domain's expiration date you want to be alerted. = null Allowed values are: null, 1, 2, 3, 7, 14, 30, 60
attributes.regions Array of strings An array of regions to set. Allowed values are ["us", "eu", "as", "au"] or any subset of these regions.
attributes.port String Required if monitor_type is set to tcp, udp, smtp, pop, or imap. tcp and udp monitors accept any ports, while smtp, pop, and imap accept only the specified ports corresponding with their servers (e.g. "25,465,587" for smtp).
attributes.confirmation_period Integer How long should we wait after observing a failure before we start a new incident? In seconds.
attributes.expected_status_codes Array of integers An array of status codes you expect to receive from your website. These status codes are considered only if the monitor_type is expected_status_code.