pagerduty_services
Creates, updates, deletes, gets or lists a pagerduty_services resource.
Overview
| Name | pagerduty_services |
| Type | Resource |
| Id | datadog.integrations.pagerduty_services |
Fields
The following fields are returned by SELECT queries:
- get_pager_duty_integration_service
| Name | Datatype | Description |
|---|---|---|
service_name | string | Your service name associated service key in PagerDuty. (example: ) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_pager_duty_integration_service | select | service_name | Get service name in the Datadog-PagerDuty integration. | |
create_pager_duty_integration_service | insert | service_name, service_key | Create a new service object in the PagerDuty integration. | |
update_pager_duty_integration_service | replace | service_name, service_key | Update a single service object in the Datadog-PagerDuty integration. | |
delete_pager_duty_integration_service | delete | service_name | Delete a single service object in the Datadog-PagerDuty 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 |
|---|---|---|
service_name | string | The service name |
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. |
SELECT examples
- get_pager_duty_integration_service
Get service name in the Datadog-PagerDuty integration.
SELECT
service_name
FROM datadog.integrations.pagerduty_services
WHERE service_name = '{{ service_name }}' -- required
;
INSERT examples
- create_pager_duty_integration_service
- Manifest
Create a new service object in the PagerDuty integration.
INSERT INTO datadog.integrations.pagerduty_services (
service_key,
service_name
)
SELECT
'{{ service_key }}' /* required */,
'{{ service_name }}' /* required */
RETURNING
service_name
;
# Description fields are for documentation purposes
- name: pagerduty_services
props:
- name: service_key
value: "{{ service_key }}"
description: |
Your service key in PagerDuty.
- name: service_name
value: "{{ service_name }}"
description: |
Your service name associated with a service key in PagerDuty.
REPLACE examples
- update_pager_duty_integration_service
Update a single service object in the Datadog-PagerDuty integration.
REPLACE datadog.integrations.pagerduty_services
SET
service_key = '{{ service_key }}'
WHERE
service_name = '{{ service_name }}' --required
AND service_key = '{{ service_key }}' --required;
DELETE examples
- delete_pager_duty_integration_service
Delete a single service object in the Datadog-PagerDuty integration.
DELETE FROM datadog.integrations.pagerduty_services
WHERE service_name = '{{ service_name }}' --required
;