Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13717,8 +13717,7 @@ components:
type: string
finished_at:
description: Unix timestamp when the deployment finished. It must be in
nanoseconds, milliseconds, or seconds, and it should not be older than
1 hour.
nanoseconds, milliseconds, or seconds.
example: 1693491984000000000
format: int64
type: integer
Expand Down Expand Up @@ -57625,8 +57624,7 @@ paths:
- manage_log_reports
/api/v2/dora/deployment:
post:
description: 'Use this API endpoint to provide data about deployments for DORA
metrics.
description: 'Use this API endpoint to provide deployment data.


This is necessary for:
Expand Down Expand Up @@ -57668,7 +57666,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
summary: Send a deployment event for DORA Metrics
summary: Send a deployment event
tags:
- DORA Metrics
x-codegen-request-body-name: body
Expand Down Expand Up @@ -57785,7 +57783,7 @@ paths:
- dora_metrics_read
/api/v2/dora/failure:
post:
description: 'Use this API endpoint to provide failure data for DORA metrics.
description: 'Use this API endpoint to provide failure data.


This is necessary for:
Expand Down Expand Up @@ -57825,7 +57823,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
summary: Send a failure event for DORA Metrics
summary: Send a failure event
tags:
- DORA Metrics
x-codegen-request-body-name: body
Expand Down Expand Up @@ -57947,7 +57945,7 @@ paths:
instead.


Use this API endpoint to provide failure data for DORA metrics.
Use this API endpoint to provide failure data.


This is necessary for:
Expand Down Expand Up @@ -57987,7 +57985,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
summary: Send an incident event for DORA Metrics
summary: Send an incident event
tags:
- DORA Metrics
x-codegen-request-body-name: body
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"log": {
"_recordingName": "DORA Metrics/Send a deployment event for DORA Metrics returns \"OK\" response",
"_recordingName": "DORA Metrics/Send a deployment event returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"log": {
"_recordingName": "DORA Metrics/Send a failure event for DORA Metrics returns \"OK\" response",
"_recordingName": "DORA Metrics/Send a failure event returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/dora-metrics/CreateDORADeployment.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Send a deployment event for DORA Metrics returns "OK" response
* Send a deployment event returns "OK" response
*/

import { client, v2 } from "@datadog/datadog-api-client";
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/dora-metrics/CreateDORAFailure.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Send a failure event for DORA Metrics returns "OK - but delayed due to incident" response
* Send a failure event returns "OK - but delayed due to incident" response
*/

import { client, v2 } from "@datadog/datadog-api-client";
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/dora-metrics/CreateDORAIncident.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Send an incident event for DORA Metrics returns "OK" response
* Send an incident event returns "OK" response
*/

import { client, v2 } from "@datadog/datadog-api-client";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Send a failure event for DORA Metrics returns "OK" response
* Send a failure event returns "OK" response
*/

import { client, v2 } from "@datadog/datadog-api-client";
Expand Down
18 changes: 9 additions & 9 deletions features/v2/dora_metrics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -105,63 +105,63 @@ Feature: DORA Metrics
Then the response status is 200 OK

@skip @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "Bad Request" response
Scenario: Send a deployment event returns "Bad Request" response
Given new "CreateDORADeployment" request
And body with value {"data": {"attributes": {}}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response
Scenario: Send a deployment event returns "OK - but delayed due to incident" response
Given new "CreateDORADeployment" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident

@replay-only @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "OK" response
Scenario: Send a deployment event returns "OK" response
Given new "CreateDORADeployment" request
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
When the request is sent
Then the response status is 200 OK

@skip @team:DataDog/ci-app-backend
Scenario: Send a failure event for DORA Metrics returns "Bad Request" response
Scenario: Send a failure event returns "Bad Request" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {}}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/ci-app-backend
Scenario: Send a failure event for DORA Metrics returns "OK - but delayed due to incident" response
Scenario: Send a failure event returns "OK - but delayed due to incident" response
Given new "CreateDORAFailure" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident

@replay-only @team:DataDog/ci-app-backend
Scenario: Send a failure event for DORA Metrics returns "OK" response
Scenario: Send a failure event returns "OK" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"finished_at": 1707842944600000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests", "services": ["shopist"], "severity": "High", "started_at": 1707842944500000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "Bad Request" response
Scenario: Send an incident event returns "Bad Request" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
Scenario: Send an incident event returns "OK - but delayed due to incident" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident

@generated @skip @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "OK" response
Scenario: Send an incident event returns "OK" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Expand Down
6 changes: 3 additions & 3 deletions packages/datadog-api-client-v2/apis/DORAMetricsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ export class DORAMetricsApi {
}

/**
* Use this API endpoint to provide data about deployments for DORA metrics.
* Use this API endpoint to provide deployment data.
*
* This is necessary for:
* - Deployment Frequency
Expand All @@ -1177,7 +1177,7 @@ export class DORAMetricsApi {
}

/**
* Use this API endpoint to provide failure data for DORA metrics.
* Use this API endpoint to provide failure data.
*
* This is necessary for:
* - Change Failure Rate
Expand All @@ -1204,7 +1204,7 @@ export class DORAMetricsApi {
/**
* **Note**: This endpoint is deprecated. Please use `/api/v2/dora/failure` instead.
*
* Use this API endpoint to provide failure data for DORA metrics.
* Use this API endpoint to provide failure data.
*
* This is necessary for:
* - Change Failure Rate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class DORADeploymentRequestAttributes {
*/
"env"?: string;
/**
* Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
* Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds.
*/
"finishedAt": number;
/**
Expand Down