events_logs
Creates, updates, deletes, gets or lists an events_logs
resource.
Overview
Name | events_logs |
Type | Resource |
Id | digitalocean.databases.events_logs |
Fields
The following fields are returned by SELECT
queries:
- databases_list_events_logs
A JSON object with a key of events
.
Name | Datatype | Description |
---|---|---|
id | string | ID of the particular event. (example: pe8u2huh) |
cluster_name | string | The name of cluster. (example: sample_cluster) |
create_time | string | The time of the generation of a event. (example: 2020-10-29T15:57:38Z) |
event_type | string | Type of the event. (example: cluster_create) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
databases_list_events_logs | select | database_cluster_uuid | 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. |
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 |
---|---|---|
database_cluster_uuid | string (uuid) | A unique identifier for a database cluster. (example: 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30) |
SELECT
examples
- databases_list_events_logs
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;