sinks_destinations
Creates, updates, deletes, gets or lists a sinks_destinations
resource.
Overview
Name | sinks_destinations |
Type | Resource |
Id | digitalocean.monitoring.sinks_destinations |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
monitoring_get_destination | SELECT | destination_uuid | To get the details of a destination, send a GET request to /v2/monitoring/sinks/destinations/${destination_uuid} . |
monitoring_list_destinations | SELECT |
| To list all logging destinations, send a GET request to /v2/monitoring/sinks/destinations . |
monitoring_create_destination | INSERT | data__config, data__type | To create a new destination, send a POST request to /v2/monitoring/sinks/destinations . |
monitoring_delete_destination | DELETE | destination_uuid | To delete a destination and all associated sinks, send a DELETE request to /v2/monitoring/sinks/destinations/${destination_uuid} . |
monitoring_update_destination | UPDATE | destination_uuid, data__config, data__type | To 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.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO digitalocean.monitoring.sinks_destinations (
data__name,
data__type,
data__config
)
SELECT
'{{ name }}',
'{{ type }}',
'{{ config }}'
;
/*+ create */
INSERT INTO digitalocean.monitoring.sinks_destinations (
data__config,
data__type
)
SELECT
'{{ config }}',
'{{ type }}'
;
- name: sinks_destinations
props:
- name: data__config
value: string
- name: data__type
value: string
- name: name
value: string
- name: type
value: string
- name: config
props:
- name: credentials
props:
- name: username
value: string
- name: password
value: string
- name: endpoint
value: string
- name: cluster_uuid
value: string
- name: cluster_name
value: string
- name: index_name
value: string
- name: retention_days
value: integer
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 }}';