Skip to main content

status_messages

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

Overview

Namestatus_messages
TypeResource
Iddigitalocean.kubernetes.status_messages

Fields

The following fields are returned by SELECT queries:

The response is a JSON object which contains status messages for a Kubernetes cluster. Each message object contains a timestamp and an indication of what issue the cluster is experiencing at a given time.

NameDatatypeDescription
messagestringStatus information about the cluster which impacts it's lifecycle. (example: Resource provisioning may be delayed while our team resolves an incident)
timestampstring (date-time)A timestamp in ISO8601 format that represents when the status message was emitted. (example: 2018-11-15T16:00:11Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
kubernetes_get_status_messagesselectcluster_idsinceTo retrieve status messages for a Kubernetes cluster, send a GET request to
/v2/kubernetes/clusters/$K8S_CLUSTER_ID/status_messages. Status messages inform users of any issues that come up during the cluster lifecycle.

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
cluster_idstring (uuid)A unique ID that can be used to reference a Kubernetes cluster. (example: bd5f5959-5e1e-4205-a714-a914373942af)
sincestring (date-time)A timestamp used to return status messages emitted since the specified time. The timestamp should be in ISO8601 format. (example: 2018-11-15T16:00:11Z)

SELECT examples

To retrieve status messages for a Kubernetes cluster, send a GET request to
/v2/kubernetes/clusters/$K8S_CLUSTER_ID/status_messages. Status messages inform users of any issues that come up during the cluster lifecycle.

SELECT
message,
timestamp
FROM digitalocean.kubernetes.status_messages
WHERE cluster_id = '{{ cluster_id }}' -- required
AND since = '{{ since }}';