Skip to main content

sinks_destinations

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

Overview

Namesinks_destinations
TypeResource
Iddigitalocean.monitoring.sinks_destinations

Fields

NameDatatypeDescription
column_anon``

Methods

NameAccessible byRequired ParamsDescription
monitoring_get_destinationSELECTdestination_uuidTo get the details of a destination, send a GET request to /v2/monitoring/sinks/destinations/${destination_uuid}.
monitoring_list_destinationsSELECTTo list all logging destinations, send a GET request to /v2/monitoring/sinks/destinations.
monitoring_create_destinationINSERTdata__config, data__typeTo create a new destination, send a POST request to /v2/monitoring/sinks/destinations.
monitoring_delete_destinationDELETEdestination_uuidTo delete a destination and all associated sinks, send a DELETE request to /v2/monitoring/sinks/destinations/${destination_uuid}.
monitoring_update_destinationUPDATEdestination_uuid, data__config, data__typeTo update the details of a destination, send a PATCH request to /v2/monitoring/sinks/destinations/${destination_uuid}.

SELECT examples

To list all logging destinations, send a GET request to /v2/monitoring/sinks/destinations.

SELECT
column_anon
FROM digitalocean.monitoring.sinks_destinations
;

INSERT example

Use the following StackQL query and manifest file to create a new sinks_destinations resource.

/*+ create */
INSERT INTO digitalocean.monitoring.sinks_destinations (
data__name,
data__type,
data__config
)
SELECT
'{{ name }}',
'{{ type }}',
'{{ config }}'
;

UPDATE example

Updates a sinks_destinations resource.

/*+ update */
UPDATE digitalocean.monitoring.sinks_destinations
SET
name = '{{ name }}',
type = '{{ type }}',
config = '{{ config }}'
WHERE
destination_uuid = '{{ destination_uuid }}'
AND data__config = '{{ data__config }}'
AND data__type = '{{ data__type }}';

DELETE example

Deletes the specified sinks_destinations resource.

/*+ delete */
DELETE FROM digitalocean.monitoring.sinks_destinations
WHERE destination_uuid = '{{ destination_uuid }}';