check_states
Creates, updates, deletes, gets or lists a check_states
resource.
Overview
Name | check_states |
Type | Resource |
Id | digitalocean.monitoring.check_states |
Fields
The following fields are returned by SELECT
queries:
- uptime_get_check_state
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.
Name | Datatype | Description |
---|---|---|
previous_outage | object | |
regions | object | A map of region to regional state |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
uptime_get_check_state | select | check_id | To 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.
Name | Datatype | Description |
---|---|---|
check_id | string (uuid) | A unique identifier for a check. (example: 4de7ac8b-495b-4884-9a69-1050c6793cd6) |
SELECT
examples
- uptime_get_check_state
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;