Skip to main content

check_states

Creates, updates, deletes, gets or lists a check_states resource.

Overview

Namecheck_states
TypeResource
Iddigitalocean.monitoring.check_states

Fields

The following fields are returned by SELECT queries:

The response will be a JSON object with a key called state. The value of this will be an object that contains the standard attributes associated with an uptime check's state.

NameDatatypeDescription
previous_outageobject
regionsobjectA map of region to regional state

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
uptime_get_check_stateselectcheck_idTo show information about an existing check's state, send a GET request to /v2/uptime/checks/$CHECK_ID/state.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
check_idstring (uuid)A unique identifier for a check. (example: 4de7ac8b-495b-4884-9a69-1050c6793cd6)

SELECT examples

To show information about an existing check's state, send a GET request to /v2/uptime/checks/$CHECK_ID/state.

SELECT
previous_outage,
regions
FROM digitalocean.monitoring.check_states
WHERE check_id = '{{ check_id }}' -- required;