Skip to content
Merged
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 @@ -57663,8 +57662,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 @@ -57706,7 +57704,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 @@ -57823,7 +57821,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 @@ -57863,7 +57861,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 @@ -57985,7 +57983,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 @@ -58025,7 +58023,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
2 changes: 1 addition & 1 deletion examples/v2/dora-metrics/CreateDORADeployment.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Send a deployment event for DORA Metrics returns "OK" response
// Send a deployment event returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/dora-metrics/CreateDORAFailure.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/dora-metrics/CreateDORAIncident.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Send an incident event for DORA Metrics returns "OK" response
// Send an incident event returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Send a failure event for DORA Metrics returns "OK" response
// Send a failure event returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
Expand Down
24 changes: 12 additions & 12 deletions src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void setApiClient(ApiClient apiClient) {
}

/**
* Send a deployment event for DORA Metrics.
* Send a deployment event.
*
* <p>See {@link #createDORADeploymentWithHttpInfo}.
*
Expand All @@ -65,7 +65,7 @@ public DORADeploymentResponse createDORADeployment(DORADeploymentRequest body)
}

/**
* Send a deployment event for DORA Metrics.
* Send a deployment event.
*
* <p>See {@link #createDORADeploymentWithHttpInfoAsync}.
*
Expand All @@ -82,7 +82,7 @@ public CompletableFuture<DORADeploymentResponse> createDORADeploymentAsync(
}

/**
* Use this API endpoint to provide data about deployments for DORA metrics.
* Use this API endpoint to provide deployment data.
*
* <p>This is necessary for: - Deployment Frequency - Change Lead Time - Change Failure Rate
*
Expand Down Expand Up @@ -135,7 +135,7 @@ public ApiResponse<DORADeploymentResponse> createDORADeploymentWithHttpInfo(
}

/**
* Send a deployment event for DORA Metrics.
* Send a deployment event.
*
* <p>See {@link #createDORADeploymentWithHttpInfo}.
*
Expand Down Expand Up @@ -187,7 +187,7 @@ public ApiResponse<DORADeploymentResponse> createDORADeploymentWithHttpInfo(
}

/**
* Send a failure event for DORA Metrics.
* Send a failure event.
*
* <p>See {@link #createDORAFailureWithHttpInfo}.
*
Expand All @@ -200,7 +200,7 @@ public DORAFailureResponse createDORAFailure(DORAFailureRequest body) throws Api
}

/**
* Send a failure event for DORA Metrics.
* Send a failure event.
*
* <p>See {@link #createDORAFailureWithHttpInfoAsync}.
*
Expand All @@ -216,7 +216,7 @@ public CompletableFuture<DORAFailureResponse> createDORAFailureAsync(DORAFailure
}

/**
* Use this API endpoint to provide failure data for DORA metrics.
* Use this API endpoint to provide failure data.
*
* <p>This is necessary for: - Change Failure Rate - Time to Restore
*
Expand Down Expand Up @@ -269,7 +269,7 @@ public ApiResponse<DORAFailureResponse> createDORAFailureWithHttpInfo(DORAFailur
}

/**
* Send a failure event for DORA Metrics.
* Send a failure event.
*
* <p>See {@link #createDORAFailureWithHttpInfo}.
*
Expand Down Expand Up @@ -321,7 +321,7 @@ public CompletableFuture<ApiResponse<DORAFailureResponse>> createDORAFailureWith
}

/**
* Send an incident event for DORA Metrics.
* Send an incident event.
*
* <p>See {@link #createDORAIncidentWithHttpInfo}.
*
Expand All @@ -336,7 +336,7 @@ public DORAFailureResponse createDORAIncident(DORAFailureRequest body) throws Ap
}

/**
* Send an incident event for DORA Metrics.
* Send an incident event.
*
* <p>See {@link #createDORAIncidentWithHttpInfoAsync}.
*
Expand All @@ -357,7 +357,7 @@ public CompletableFuture<DORAFailureResponse> createDORAIncidentAsync(DORAFailur
* <strong>Note</strong>: This endpoint is deprecated. Please use <code>/api/v2/dora/failure
* </code> instead.
*
* <p>Use this API endpoint to provide failure data for DORA metrics.
* <p>Use this API endpoint to provide failure data.
*
* <p>This is necessary for: - Change Failure Rate - Time to Restore
*
Expand Down Expand Up @@ -413,7 +413,7 @@ public ApiResponse<DORAFailureResponse> createDORAIncidentWithHttpInfo(DORAFailu
}

/**
* Send an incident event for DORA Metrics.
* Send an incident event.
*
* <p>See {@link #createDORAIncidentWithHttpInfo}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public DORADeploymentRequestAttributes finishedAt(Long finishedAt) {

/**
* Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or
* seconds, and it should not be older than 1 hour.
* seconds.
*
* @return finishedAt
*/
Expand Down
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