A list of user-defined tags. The tags must follow the key:value pattern. Up to 100 may be added per event.
env
string
Environment name to where the service was deployed.
finished_at [required]
int64
Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds.
git
object
Git info for DORA Metrics events.
commit_sha [required]
string
Git Commit SHA.
repository_url [required]
string
Git Repository URL
id
string
Deployment ID. Must be 16-128 characters and contain only alphanumeric characters, hyphens, underscores, periods, and colons (a-z, A-Z, 0-9, -, _, ., :).
service [required]
string
Service name.
started_at [required]
int64
Unix timestamp when the deployment started. It must be in nanoseconds, milliseconds, or seconds.
team
string
Name of the team owning the deployed service. If not provided, this is automatically populated with the team associated with the service in the Service Catalog.
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<DD_API_KEY>"cargo run
/**
* Send a deployment event returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv2.DORAMetricsApi(configuration);constparams: v2.DORAMetricsApiCreateDORADeploymentRequest={body:{data:{attributes:{finishedAt: 1693491984000000000,git:{commitSha:"66adc9350f2cc9b250b69abddab733dd55e1a588",repositoryUrl:"https://github.com/organization/example-repository",},service:"shopist",startedAt: 1693491974000000000,version:"v1.12.07",},},},};apiInstance.createDORADeployment(params).then((data: v2.DORADeploymentResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));