From 9362141588aec513ede118e9063d32d0f69a214b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 7 Oct 2025 09:53:02 +0000 Subject: [PATCH] Regenerate client from commit 0d3f1ba of spec repo --- .generator/schemas/v2/openapi.yaml | 16 +++++++--------- ...eployment-event-returns-OK-response.frozen} | 0 ...a-deployment-event-returns-OK-response.yml} | 0 ...a-failure-event-returns-OK-response.frozen} | 0 ...nd-a-failure-event-returns-OK-response.yml} | 0 .../v2/dora-metrics/CreateDORADeployment.rb | 2 +- examples/v2/dora-metrics/CreateDORAFailure.rb | 2 +- examples/v2/dora-metrics/CreateDORAIncident.rb | 2 +- ...482.rb => CreateDORAIncident_1101664022.rb} | 2 +- features/v2/dora_metrics.feature | 18 +++++++++--------- .../v2/api/dora_metrics_api.rb | 18 +++++++++--------- .../dora_deployment_request_attributes.rb | 2 +- 12 files changed, 30 insertions(+), 32 deletions(-) rename cassettes/features/v2/dora_metrics/{Send-a-deployment-event-for-DORA-Metrics-returns-OK-response.frozen => Send-a-deployment-event-returns-OK-response.frozen} (100%) rename cassettes/features/v2/dora_metrics/{Send-a-deployment-event-for-DORA-Metrics-returns-OK-response.yml => Send-a-deployment-event-returns-OK-response.yml} (100%) rename cassettes/features/v2/dora_metrics/{Send-a-failure-event-for-DORA-Metrics-returns-OK-response.frozen => Send-a-failure-event-returns-OK-response.frozen} (100%) rename cassettes/features/v2/dora_metrics/{Send-a-failure-event-for-DORA-Metrics-returns-OK-response.yml => Send-a-failure-event-returns-OK-response.yml} (100%) rename examples/v2/dora-metrics/{CreateDORAIncident_1768887482.rb => CreateDORAIncident_1101664022.rb} (92%) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a0d181216789..79c3e338ffb0 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/cassettes/features/v2/dora_metrics/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response.frozen b/cassettes/features/v2/dora_metrics/Send-a-deployment-event-returns-OK-response.frozen similarity index 100% rename from cassettes/features/v2/dora_metrics/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response.frozen rename to cassettes/features/v2/dora_metrics/Send-a-deployment-event-returns-OK-response.frozen diff --git a/cassettes/features/v2/dora_metrics/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response.yml b/cassettes/features/v2/dora_metrics/Send-a-deployment-event-returns-OK-response.yml similarity index 100% rename from cassettes/features/v2/dora_metrics/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response.yml rename to cassettes/features/v2/dora_metrics/Send-a-deployment-event-returns-OK-response.yml diff --git a/cassettes/features/v2/dora_metrics/Send-a-failure-event-for-DORA-Metrics-returns-OK-response.frozen b/cassettes/features/v2/dora_metrics/Send-a-failure-event-returns-OK-response.frozen similarity index 100% rename from cassettes/features/v2/dora_metrics/Send-a-failure-event-for-DORA-Metrics-returns-OK-response.frozen rename to cassettes/features/v2/dora_metrics/Send-a-failure-event-returns-OK-response.frozen diff --git a/cassettes/features/v2/dora_metrics/Send-a-failure-event-for-DORA-Metrics-returns-OK-response.yml b/cassettes/features/v2/dora_metrics/Send-a-failure-event-returns-OK-response.yml similarity index 100% rename from cassettes/features/v2/dora_metrics/Send-a-failure-event-for-DORA-Metrics-returns-OK-response.yml rename to cassettes/features/v2/dora_metrics/Send-a-failure-event-returns-OK-response.yml diff --git a/examples/v2/dora-metrics/CreateDORADeployment.rb b/examples/v2/dora-metrics/CreateDORADeployment.rb index 1731dbafd993..9c183545f963 100644 --- a/examples/v2/dora-metrics/CreateDORADeployment.rb +++ b/examples/v2/dora-metrics/CreateDORADeployment.rb @@ -1,4 +1,4 @@ -# Send a deployment event for DORA Metrics returns "OK" response +# Send a deployment event returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new diff --git a/examples/v2/dora-metrics/CreateDORAFailure.rb b/examples/v2/dora-metrics/CreateDORAFailure.rb index d0a48d3d4662..ca44d78a2906 100644 --- a/examples/v2/dora-metrics/CreateDORAFailure.rb +++ b/examples/v2/dora-metrics/CreateDORAFailure.rb @@ -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 require "datadog_api_client" api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new diff --git a/examples/v2/dora-metrics/CreateDORAIncident.rb b/examples/v2/dora-metrics/CreateDORAIncident.rb index 6f4bf5996f70..9842c3d18ac6 100644 --- a/examples/v2/dora-metrics/CreateDORAIncident.rb +++ b/examples/v2/dora-metrics/CreateDORAIncident.rb @@ -1,4 +1,4 @@ -# Send an incident event for DORA Metrics returns "OK" response +# Send an incident event returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new diff --git a/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb b/examples/v2/dora-metrics/CreateDORAIncident_1101664022.rb similarity index 92% rename from examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb rename to examples/v2/dora-metrics/CreateDORAIncident_1101664022.rb index c1b406a0310c..6b2121e36a7a 100644 --- a/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +++ b/examples/v2/dora-metrics/CreateDORAIncident_1101664022.rb @@ -1,4 +1,4 @@ -# Send a failure event for DORA Metrics returns "OK" response +# Send a failure event returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new diff --git a/features/v2/dora_metrics.feature b/features/v2/dora_metrics.feature index 6352e0e5584f..b11b0fc74df5 100644 --- a/features/v2/dora_metrics.feature +++ b/features/v2/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 diff --git a/lib/datadog_api_client/v2/api/dora_metrics_api.rb b/lib/datadog_api_client/v2/api/dora_metrics_api.rb index f160fe988ba7..6f96bce600cb 100644 --- a/lib/datadog_api_client/v2/api/dora_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/dora_metrics_api.rb @@ -23,7 +23,7 @@ def initialize(api_client = DatadogAPIClient::APIClient.default) @api_client = api_client end - # Send a deployment event for DORA Metrics. + # Send a deployment event. # # @see #create_dora_deployment_with_http_info def create_dora_deployment(body, opts = {}) @@ -31,9 +31,9 @@ def create_dora_deployment(body, opts = {}) data end - # Send a deployment event for DORA Metrics. + # Send a deployment event. # - # 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 @@ -95,7 +95,7 @@ def create_dora_deployment_with_http_info(body, opts = {}) return data, status_code, headers end - # Send a failure event for DORA Metrics. + # Send a failure event. # # @see #create_dora_failure_with_http_info def create_dora_failure(body, opts = {}) @@ -103,9 +103,9 @@ def create_dora_failure(body, opts = {}) data end - # Send a failure event for DORA Metrics. + # Send a failure event. # - # 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 @@ -166,7 +166,7 @@ def create_dora_failure_with_http_info(body, opts = {}) return data, status_code, headers end - # Send an incident event for DORA Metrics. + # Send an incident event. # # @see #create_dora_incident_with_http_info def create_dora_incident(body, opts = {}) @@ -174,11 +174,11 @@ def create_dora_incident(body, opts = {}) data end - # Send an incident event for DORA Metrics. + # Send an incident event. # # **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 diff --git a/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb b/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb index d28986a6a532..89f78a3531e3 100644 --- a/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb @@ -27,7 +27,7 @@ class DORADeploymentRequestAttributes # Environment name to where the service was deployed. attr_accessor :env - # 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. attr_reader :finished_at # Git info for DORA Metrics events.