Skip to main content

events_logs

Creates, updates, deletes, gets or lists an events_logs resource.

Overview

Nameevents_logs
TypeResource
Iddigitalocean.databases.events_logs

Fields

The following fields are returned by SELECT queries:

A JSON object with a key of events.

NameDatatypeDescription
idstringID of the particular event. (example: pe8u2huh)
cluster_namestringThe name of cluster. (example: sample_cluster)
create_timestringThe time of the generation of a event. (example: 2020-10-29T15:57:38Z)
event_typestringType of the event. (example: cluster_create)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
databases_list_events_logsselectdatabase_cluster_uuidTo list all of the cluster events, send a GET request to
/v2/databases/$DATABASE_ID/events.

The result will be a JSON object with a events key.

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
database_cluster_uuidstring (uuid)A unique identifier for a database cluster. (example: 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30)

SELECT examples

To list all of the cluster events, send a GET request to
/v2/databases/$DATABASE_ID/events.

The result will be a JSON object with a events key.

SELECT
id,
cluster_name,
create_time,
event_type
FROM digitalocean.databases.events_logs
WHERE database_cluster_uuid = '{{ database_cluster_uuid }}' -- required;