Skip to main content

dora_deployments

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

Overview

Namedora_deployments
TypeResource
Iddatadog.software_delivery.dora_deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the deployment event.
attributesobjectThe attributes of the deployment event.
typestringJSON:API type for DORA deployment events. (dora_deployment) (default: dora_deployment, example: dora_deployment)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_doradeploymentselectdeployment_idUse this API endpoint to get a deployment event.
list_doradeploymentsselectUse this API endpoint to get a list of deployment events.
create_doradeploymentinsertdataUse this API endpoint to provide deployment data.<br /><br />This is necessary for:<br />- Deployment Frequency<br />- Change Lead Time<br />- Change Failure Rate<br />- Failed Deployment Recovery Time
patch_doradeploymentupdatedeployment_id, dataUpdate a deployment's change failure status. Use this to mark a deployment as a change failure or back to stable. You can optionally include remediation details to enable failed deployment recovery time calculation.
patch_doradeployment_by_versionupdatedataUpdate a deployment's change failure status, identifying the deployment by its service, environment, and version instead of its ID. Use this to mark a deployment as a change failure or back to stable. You can optionally include remediation details to enable failed deployment recovery time calculation. If multiple deployments match the given service, environment, and version, the most recently finished one is updated.
delete_doradeploymentdeletedeployment_idUse this API endpoint to delete a deployment event.

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.

NameDatatypeDescription
deployment_idstringThe ID of the deployment event to delete.
sitestringThe 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

Use this API endpoint to get a deployment event.

SELECT
id,
attributes,
type
FROM datadog.software_delivery.dora_deployments
WHERE deployment_id = '{{ deployment_id }}' -- required
;

INSERT examples

Use this API endpoint to provide deployment data.<br /><br />This is necessary for:<br />- Deployment Frequency<br />- Change Lead Time<br />- Change Failure Rate<br />- Failed Deployment Recovery Time

INSERT INTO datadog.software_delivery.dora_deployments (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

UPDATE examples

Update a deployment's change failure status. Use this to mark a deployment as a change failure or back to stable. You can optionally include remediation details to enable failed deployment recovery time calculation.

UPDATE datadog.software_delivery.dora_deployments
SET
data = '{{ data }}'
WHERE
deployment_id = '{{ deployment_id }}' --required
AND data = '{{ data }}' --required;

DELETE examples

Use this API endpoint to delete a deployment event.

DELETE FROM datadog.software_delivery.dora_deployments
WHERE deployment_id = '{{ deployment_id }}' --required
;