diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a0d18121678..79c3e338ffb 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -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: @@ -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 @@ -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: @@ -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 @@ -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: @@ -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 diff --git a/examples/v2/dora-metrics/CreateDORADeployment.java b/examples/v2/dora-metrics/CreateDORADeployment.java index 93007007e67..f749b57041b 100644 --- a/examples/v2/dora-metrics/CreateDORADeployment.java +++ b/examples/v2/dora-metrics/CreateDORADeployment.java @@ -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; diff --git a/examples/v2/dora-metrics/CreateDORAFailure.java b/examples/v2/dora-metrics/CreateDORAFailure.java index 1a2511eb374..52522e81d45 100644 --- a/examples/v2/dora-metrics/CreateDORAFailure.java +++ b/examples/v2/dora-metrics/CreateDORAFailure.java @@ -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; diff --git a/examples/v2/dora-metrics/CreateDORAIncident.java b/examples/v2/dora-metrics/CreateDORAIncident.java index 87a20af1968..2be6baf0e44 100644 --- a/examples/v2/dora-metrics/CreateDORAIncident.java +++ b/examples/v2/dora-metrics/CreateDORAIncident.java @@ -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; diff --git a/examples/v2/dora-metrics/CreateDORAIncident_1768887482.java b/examples/v2/dora-metrics/CreateDORAIncident_1101664022.java similarity index 97% rename from examples/v2/dora-metrics/CreateDORAIncident_1768887482.java rename to examples/v2/dora-metrics/CreateDORAIncident_1101664022.java index 17419e1e474..aa886935310 100644 --- a/examples/v2/dora-metrics/CreateDORAIncident_1768887482.java +++ b/examples/v2/dora-metrics/CreateDORAIncident_1101664022.java @@ -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; diff --git a/src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java b/src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java index 0323ab6fa8d..74172e6088e 100644 --- a/src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/DoraMetricsApi.java @@ -51,7 +51,7 @@ public void setApiClient(ApiClient apiClient) { } /** - * Send a deployment event for DORA Metrics. + * Send a deployment event. * *
See {@link #createDORADeploymentWithHttpInfo}. * @@ -65,7 +65,7 @@ public DORADeploymentResponse createDORADeployment(DORADeploymentRequest body) } /** - * Send a deployment event for DORA Metrics. + * Send a deployment event. * *
See {@link #createDORADeploymentWithHttpInfoAsync}.
*
@@ -82,7 +82,7 @@ public CompletableFuture This is necessary for: - Deployment Frequency - Change Lead Time - Change Failure Rate
*
@@ -135,7 +135,7 @@ public ApiResponse See {@link #createDORADeploymentWithHttpInfo}.
*
@@ -187,7 +187,7 @@ public ApiResponse See {@link #createDORAFailureWithHttpInfo}.
*
@@ -200,7 +200,7 @@ public DORAFailureResponse createDORAFailure(DORAFailureRequest body) throws Api
}
/**
- * Send a failure event for DORA Metrics.
+ * Send a failure event.
*
* See {@link #createDORAFailureWithHttpInfoAsync}.
*
@@ -216,7 +216,7 @@ public CompletableFuture This is necessary for: - Change Failure Rate - Time to Restore
*
@@ -269,7 +269,7 @@ public ApiResponse See {@link #createDORAFailureWithHttpInfo}.
*
@@ -321,7 +321,7 @@ public CompletableFuture See {@link #createDORAIncidentWithHttpInfo}.
*
@@ -336,7 +336,7 @@ public DORAFailureResponse createDORAIncident(DORAFailureRequest body) throws Ap
}
/**
- * Send an incident event for DORA Metrics.
+ * Send an incident event.
*
* See {@link #createDORAIncidentWithHttpInfoAsync}.
*
@@ -357,7 +357,7 @@ public CompletableFuture 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 - Time to Restore
*
@@ -413,7 +413,7 @@ public ApiResponse See {@link #createDORAIncidentWithHttpInfo}.
*
diff --git a/src/main/java/com/datadog/api/client/v2/model/DORADeploymentRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentRequestAttributes.java
index 21640dd8c41..3a837ad197e 100644
--- a/src/main/java/com/datadog/api/client/v2/model/DORADeploymentRequestAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/DORADeploymentRequestAttributes.java
@@ -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
*/
diff --git a/src/test/resources/cassettes/features/v2/Send_a_deployment_event_for_DORA_Metrics_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Send_a_deployment_event_returns_OK_response.freeze
similarity index 100%
rename from src/test/resources/cassettes/features/v2/Send_a_deployment_event_for_DORA_Metrics_returns_OK_response.freeze
rename to src/test/resources/cassettes/features/v2/Send_a_deployment_event_returns_OK_response.freeze
diff --git a/src/test/resources/cassettes/features/v2/Send_a_deployment_event_for_DORA_Metrics_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Send_a_deployment_event_returns_OK_response.json
similarity index 100%
rename from src/test/resources/cassettes/features/v2/Send_a_deployment_event_for_DORA_Metrics_returns_OK_response.json
rename to src/test/resources/cassettes/features/v2/Send_a_deployment_event_returns_OK_response.json
diff --git a/src/test/resources/cassettes/features/v2/Send_a_failure_event_for_DORA_Metrics_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Send_a_failure_event_returns_OK_response.freeze
similarity index 100%
rename from src/test/resources/cassettes/features/v2/Send_a_failure_event_for_DORA_Metrics_returns_OK_response.freeze
rename to src/test/resources/cassettes/features/v2/Send_a_failure_event_returns_OK_response.freeze
diff --git a/src/test/resources/cassettes/features/v2/Send_a_failure_event_for_DORA_Metrics_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Send_a_failure_event_returns_OK_response.json
similarity index 100%
rename from src/test/resources/cassettes/features/v2/Send_a_failure_event_for_DORA_Metrics_returns_OK_response.json
rename to src/test/resources/cassettes/features/v2/Send_a_failure_event_returns_OK_response.json
diff --git a/src/test/resources/com/datadog/api/client/v2/api/dora_metrics.feature b/src/test/resources/com/datadog/api/client/v2/api/dora_metrics.feature
index 6352e0e5584..b11b0fc74df 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/dora_metrics.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/dora_metrics.feature
@@ -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
/api/v2/dora/failure
*
instead.
*
- *