google_chat_organization_target_audiences
Creates, updates, deletes, gets or lists a google_chat_organization_target_audiences resource.
Overview
| Name | google_chat_organization_target_audiences |
| Type | Resource |
| Id | datadog.integrations.google_chat_organization_target_audiences |
Fields
The following fields are returned by SELECT queries:
- get_google_chat_target_audience
- list_google_chat_target_audiences
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the target audience. (example: 1f3e5ce6-944a-4075-97ae-105b5920b5cb) |
attributes | object | Google Chat target audience attributes. |
type | string | Google Chat target audience resource type. (google-chat-target-audience) (default: google-chat-target-audience, example: google-chat-target-audience) |
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the target audience. (example: 1f3e5ce6-944a-4075-97ae-105b5920b5cb) |
attributes | object | Google Chat target audience attributes. |
type | string | Google Chat target audience resource type. (google-chat-target-audience) (default: google-chat-target-audience, example: google-chat-target-audience) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_google_chat_target_audience | select | organization_binding_id, target_audience_id | Get a target audience for a Google Chat organization binding in the Datadog Google Chat integration. | |
list_google_chat_target_audiences | select | organization_binding_id | Get a list of all target audiences for a Google Chat organization binding in the Datadog Google Chat integration. | |
create_google_chat_target_audience | insert | organization_binding_id, data | Create a target audience for a Google Chat organization binding in the Datadog Google Chat integration. | |
update_google_chat_target_audience | update | organization_binding_id, target_audience_id, data | Update a target audience for a Google Chat organization binding in the Datadog Google Chat integration. | |
delete_google_chat_target_audience | delete | organization_binding_id, target_audience_id | Delete a target audience from a Google Chat organization binding in the Datadog Google Chat integration. |
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 |
|---|---|---|
organization_binding_id | string | Your organization binding ID. |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
target_audience_id | string | Your target audience ID. |
SELECT examples
- get_google_chat_target_audience
- list_google_chat_target_audiences
Get a target audience for a Google Chat organization binding in the Datadog Google Chat integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.google_chat_organization_target_audiences
WHERE organization_binding_id = '{{ organization_binding_id }}' -- required
AND target_audience_id = '{{ target_audience_id }}' -- required
;
Get a list of all target audiences for a Google Chat organization binding in the Datadog Google Chat integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.google_chat_organization_target_audiences
WHERE organization_binding_id = '{{ organization_binding_id }}' -- required
;
INSERT examples
- create_google_chat_target_audience
- Manifest
Create a target audience for a Google Chat organization binding in the Datadog Google Chat integration.
INSERT INTO datadog.integrations.google_chat_organization_target_audiences (
data,
organization_binding_id
)
SELECT
'{{ data }}' /* required */,
'{{ organization_binding_id }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: google_chat_organization_target_audiences
props:
- name: organization_binding_id
value: "{{ organization_binding_id }}"
description: Required parameter for the google_chat_organization_target_audiences resource.
- name: data
description: |
Data for a create target audience request.
value:
attributes:
audience_id: "{{ audience_id }}"
audience_name: "{{ audience_name }}"
type: "{{ type }}"
UPDATE examples
- update_google_chat_target_audience
Update a target audience for a Google Chat organization binding in the Datadog Google Chat integration.
UPDATE datadog.integrations.google_chat_organization_target_audiences
SET
data = '{{ data }}'
WHERE
organization_binding_id = '{{ organization_binding_id }}' --required
AND target_audience_id = '{{ target_audience_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_google_chat_target_audience
Delete a target audience from a Google Chat organization binding in the Datadog Google Chat integration.
DELETE FROM datadog.integrations.google_chat_organization_target_audiences
WHERE organization_binding_id = '{{ organization_binding_id }}' --required
AND target_audience_id = '{{ target_audience_id }}' --required
;