sinks
Creates, updates, deletes, gets or lists a sinks
resource.
Overview
Name | sinks |
Type | Resource |
Id | digitalocean.monitoring.sinks |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
monitoring_get_sink | SELECT | sink_uuid | To get the details of a sink (resources and destination), send a GET request to /v2/monitoring/sinks/${sink_uuid} . |
monitoring_list_sinks | SELECT |
| To list all sinks, send a GET request to /v2/monitoring/sinks . |
monitoring_create_sink | INSERT |
| To create a new sink, send a POST request to /v2/monitoring/sinks . Forwards logs from the resources identified in resources to the specified pre-existing destination. |
monitoring_delete_sink | DELETE | sink_uuid | To delete a sink, send a DELETE request to /v2/monitoring/sinks/${sink_uuid} . |
SELECT
examples
To list all sinks, send a GET request to /v2/monitoring/sinks
.
SELECT
column_anon
FROM digitalocean.monitoring.sinks
;
INSERT
example
Use the following StackQL query and manifest file to create a new sinks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO digitalocean.monitoring.sinks (
data__destination_uuid,
data__resources
)
SELECT
'{{ destination_uuid }}',
'{{ resources }}'
;
- name: sinks
props:
- name: destination_uuid
value: string
- name: resources
value: array
props:
- name: urn
value: string
- name: name
value: string
DELETE
example
Deletes the specified sinks
resource.
/*+ delete */
DELETE FROM digitalocean.monitoring.sinks
WHERE sink_uuid = '{{ sink_uuid }}';