From c8c74b9556ba3d45392147afd15b2d2cf5820b3f Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 6 Feb 2025 15:01:08 +0000 Subject: [PATCH] Regenerate client from commit 35bc11b5 of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 8 ++++---- .../recording.har | 2 +- .../recording.har | 2 +- .../Get-App-returns-OK-response_2570582586/recording.har | 2 +- .../recording.har | 2 +- .../recording.har | 4 ++-- .../recording.har | 4 ++-- examples/v2/dora-metrics/CreateDORADeployment.ts | 4 ++-- examples/v2/dora-metrics/CreateDORAIncident.ts | 4 ++-- features/v2/dora_metrics.feature | 8 ++++---- 11 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 9129277bbebf..5cc5ad63f5f9 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-04 14:09:59.993284", - "spec_repo_commit": "4fb9047a" + "regenerated": "2025-02-06 14:59:36.826383", + "spec_repo_commit": "35bc11b5" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-04 14:10:00.009911", - "spec_repo_commit": "4fb9047a" + "regenerated": "2025-02-06 14:59:36.842294", + "spec_repo_commit": "35bc11b5" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 831530e2584b..cfc044a54332 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -8695,7 +8695,7 @@ components: description: Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour. - example: 1693491984000000000 + example: 1693491984000 format: int64 type: integer git: @@ -8710,7 +8710,7 @@ components: started_at: description: Unix timestamp when the deployment started. It must be in nanoseconds, milliseconds, or seconds. - example: 1693491974000000000 + example: 1693491974000 format: int64 type: integer team: @@ -8794,7 +8794,7 @@ components: finished_at: description: Unix timestamp when the incident finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour. - example: 1693491984000000000 + example: 1693491984000 format: int64 type: integer git: @@ -8822,7 +8822,7 @@ components: started_at: description: Unix timestamp when the incident started. It must be in nanoseconds, milliseconds, or seconds. - example: 1693491974000000000 + example: 1693491974000 format: int64 type: integer team: diff --git a/cassettes/v1/Events_3416228/Post-an-event-returns-OK-response_1209415328/recording.har b/cassettes/v1/Events_3416228/Post-an-event-returns-OK-response_1209415328/recording.har index 5874ceef9458..005b96ee38aa 100644 --- a/cassettes/v1/Events_3416228/Post-an-event-returns-OK-response_1209415328/recording.har +++ b/cassettes/v1/Events_3416228/Post-an-event-returns-OK-response_1209415328/recording.har @@ -42,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 375, - "text": "{\"status\":\"ok\",\"event\":{\"id\":6327818702635911000,\"id_str\":\"6327818702635911562\",\"title\":\"Test-Post_an_event_returns_OK_response-1641430251\",\"text\":\"A text message.\",\"date_happened\":1641430251,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventreturnsOKresponse1641430251\"],\"url\":\"https://app.datadoghq.com/event/event?id=6327818702635911562\"}}" + "text": "{\"status\":\"ok\",\"event\":{\"id\":63278187026359,\"id_str\":\"6327818702635911562\",\"title\":\"Test-Post_an_event_returns_OK_response-1641430251\",\"text\":\"A text message.\",\"date_happened\":1641430251,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventreturnsOKresponse1641430251\"],\"url\":\"https://app.datadoghq.com/event/event?id=6327818702635911562\"}}" }, "cookies": [], "headers": [ diff --git a/cassettes/v1/Events_3416228/Post-an-event-with-a-long-title-returns-OK-response_3368408033/recording.har b/cassettes/v1/Events_3416228/Post-an-event-with-a-long-title-returns-OK-response_3368408033/recording.har index 8e6c505f4bee..ddb4be988ae4 100644 --- a/cassettes/v1/Events_3416228/Post-an-event-with-a-long-title-returns-OK-response_3368408033/recording.har +++ b/cassettes/v1/Events_3416228/Post-an-event-with-a-long-title-returns-OK-response_3368408033/recording.har @@ -42,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 536, - "text": "{\"status\":\"ok\",\"event\":{\"id\":6327818704671040000,\"id_str\":\"6327818704671039975\",\"title\":\"Test-Post_an_event_with_a_long_title_returns_OK_response-1641430251 very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters\",\"text\":\"A text message.\",\"date_happened\":1641430252,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventwithalongtitlereturnsOKresponse1641430251\"],\"url\":\"https://app.datadoghq.com/event/event?id=6327818704671039975\"}}" + "text": "{\"status\":\"ok\",\"event\":{\"id\":63278187046710,\"id_str\":\"6327818704671039975\",\"title\":\"Test-Post_an_event_with_a_long_title_returns_OK_response-1641430251 very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters\",\"text\":\"A text message.\",\"date_happened\":1641430252,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventwithalongtitlereturnsOKresponse1641430251\"],\"url\":\"https://app.datadoghq.com/event/event?id=6327818704671039975\"}}" }, "cookies": [], "headers": [ diff --git a/cassettes/v2/App-Builder_216136899/Get-App-returns-OK-response_2570582586/recording.har b/cassettes/v2/App-Builder_216136899/Get-App-returns-OK-response_2570582586/recording.har index a11995d2592c..c968a12b4f3e 100644 --- a/cassettes/v2/App-Builder_216136899/Get-App-returns-OK-response_2570582586/recording.har +++ b/cassettes/v2/App-Builder_216136899/Get-App-returns-OK-response_2570582586/recording.har @@ -85,7 +85,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 995, - "text": "{\"data\":{\"id\":\"25442f2c-fb75-4abe-b875-ed3497d2fc2c\",\"type\":\"appDefinitions\",\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"calloutValue0\",\"properties\":{\"isDisabled\":false,\"isLoading\":false,\"isVisible\":true,\"label\":\"CPU Usage\",\"size\":\"sm\",\"style\":\"vivid_yellow\",\"unit\":\"kB\",\"value\":\"42\"},\"type\":\"calloutValue\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":8,\"width\":2,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a simple example app\",\"favorite\":false,\"name\":\"Example App\",\"queries\":[],\"rootInstanceName\":\"grid0\",\"selfService\":false,\"tags\":[]},\"meta\":{\"org_id\":1107852,\"user_id\":15479137,\"user_uuid\":\"b3f98453-b289-11ef-a4e9-d6d283f92d91\",\"user_name\":\"oliver.li@datadoghq.com\",\"version\":1,\"updated_since_deployment\":false,\"created_at\":\"2025-01-30T22:30:43.296595Z\",\"updated_at\":\"2025-01-30T22:30:43.296595Z\",\"deleted_at\":\"0001-01-01T00:00:00Z\"}}}" + "text": "{\"data\":{\"id\":\"25442f2c-fb75-4abe-b875-ed3497d2fc2c\",\"type\":\"appDefinitions\",\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"calloutValue0\",\"properties\":{\"isDisabled\":false,\"isLoading\":false,\"isVisible\":true,\"label\":\"CPU Usage\",\"size\":\"sm\",\"style\":\"vivid_yellow\",\"unit\":\"kB\",\"value\":\"42\"},\"type\":\"calloutValue\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":8,\"width\":2,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a simple example app\",\"favorite\":false,\"name\":\"Example App\",\"queries\":[],\"rootInstanceName\":\"grid0\",\"tags\":[]}}}" }, "cookies": [], "headers": [ diff --git a/cassettes/v2/App-Builder_216136899/Update-App-returns-OK-response_1935745305/recording.har b/cassettes/v2/App-Builder_216136899/Update-App-returns-OK-response_1935745305/recording.har index e4a6fb4f2092..081f4e986985 100644 --- a/cassettes/v2/App-Builder_216136899/Update-App-returns-OK-response_1935745305/recording.har +++ b/cassettes/v2/App-Builder_216136899/Update-App-returns-OK-response_1935745305/recording.har @@ -95,7 +95,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 996, - "text": "{\"data\":{\"id\":\"892d9225-fd31-4237-b218-e964ac33fc71\",\"type\":\"appDefinitions\",\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"calloutValue0\",\"properties\":{\"isDisabled\":false,\"isLoading\":false,\"isVisible\":true,\"label\":\"CPU Usage\",\"size\":\"sm\",\"style\":\"vivid_yellow\",\"unit\":\"kB\",\"value\":\"42\"},\"type\":\"calloutValue\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":8,\"width\":2,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a simple example app\",\"favorite\":false,\"name\":\"Updated Name\",\"queries\":[],\"rootInstanceName\":\"grid0\",\"selfService\":false,\"tags\":[]},\"meta\":{\"org_id\":1107852,\"user_id\":15479137,\"user_uuid\":\"b3f98453-b289-11ef-a4e9-d6d283f92d91\",\"user_name\":\"oliver.li@datadoghq.com\",\"version\":2,\"updated_since_deployment\":false,\"created_at\":\"2025-01-30T22:30:45.584607Z\",\"updated_at\":\"2025-01-30T22:30:45.785438Z\",\"deleted_at\":\"0001-01-01T00:00:00Z\"}}}" + "text": "{\"data\":{\"id\":\"892d9225-fd31-4237-b218-e964ac33fc71\",\"type\":\"appDefinitions\",\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"calloutValue0\",\"properties\":{\"isDisabled\":false,\"isLoading\":false,\"isVisible\":true,\"label\":\"CPU Usage\",\"size\":\"sm\",\"style\":\"vivid_yellow\",\"unit\":\"kB\",\"value\":\"42\"},\"type\":\"calloutValue\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":8,\"width\":2,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a simple example app\",\"favorite\":false,\"name\":\"Updated Name\",\"queries\":[],\"rootInstanceName\":\"grid0\",\"tags\":[]}}}" }, "cookies": [], "headers": [ diff --git a/cassettes/v2/DORA-Metrics_482886860/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response_3631369903/recording.har b/cassettes/v2/DORA-Metrics_482886860/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response_3631369903/recording.har index 5e0898679390..a17b48d682ad 100644 --- a/cassettes/v2/DORA-Metrics_482886860/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response_3631369903/recording.har +++ b/cassettes/v2/DORA-Metrics_482886860/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response_3631369903/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "89b0b55754cfa77e61b369a1bee5bac6", + "_id": "d766d5bbb37d849c6e59818cec461a84", "_order": 0, "cache": {}, "request": { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"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\"}}}" + "text": "{\"data\":{\"attributes\":{\"finished_at\":1693491984000,\"git\":{\"commit_sha\":\"66adc9350f2cc9b250b69abddab733dd55e1a588\",\"repository_url\":\"https://github.com/organization/example-repository\"},\"service\":\"shopist\",\"started_at\":16934919740000,\"version\":\"v1.12.07\"}}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/dora/deployment" diff --git a/cassettes/v2/DORA-Metrics_482886860/Send-an-incident-event-for-DORA-Metrics-returns-OK-response_1500109814/recording.har b/cassettes/v2/DORA-Metrics_482886860/Send-an-incident-event-for-DORA-Metrics-returns-OK-response_1500109814/recording.har index e7b830090981..86afdedd774c 100644 --- a/cassettes/v2/DORA-Metrics_482886860/Send-an-incident-event-for-DORA-Metrics-returns-OK-response_1500109814/recording.har +++ b/cassettes/v2/DORA-Metrics_482886860/Send-an-incident-event-for-DORA-Metrics-returns-OK-response_1500109814/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "b139e470943b53f53db93c09d91fe207", + "_id": "87fb2208c5e860f7a4fc1a02145c2949", "_order": 0, "cache": {}, "request": { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"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\"}}}" + "text": "{\"data\":{\"attributes\":{\"finished_at\":17078429446000,\"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\":17078429445000,\"team\":\"backend\",\"version\":\"v1.12.07\"}}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/dora/incident" diff --git a/examples/v2/dora-metrics/CreateDORADeployment.ts b/examples/v2/dora-metrics/CreateDORADeployment.ts index 114737642696..176852c876df 100644 --- a/examples/v2/dora-metrics/CreateDORADeployment.ts +++ b/examples/v2/dora-metrics/CreateDORADeployment.ts @@ -12,13 +12,13 @@ const params: v2.DORAMetricsApiCreateDORADeploymentRequest = { body: { data: { attributes: { - finishedAt: 1693491984000000000, + finishedAt: 1693491984000, git: { commitSha: "66adc9350f2cc9b250b69abddab733dd55e1a588", repositoryUrl: "https://github.com/organization/example-repository", }, service: "shopist", - startedAt: 1693491974000000000, + startedAt: 1693491974000, version: "v1.12.07", }, }, diff --git a/examples/v2/dora-metrics/CreateDORAIncident.ts b/examples/v2/dora-metrics/CreateDORAIncident.ts index 213e39fa9d02..33089fb31681 100644 --- a/examples/v2/dora-metrics/CreateDORAIncident.ts +++ b/examples/v2/dora-metrics/CreateDORAIncident.ts @@ -12,7 +12,7 @@ const params: v2.DORAMetricsApiCreateDORAIncidentRequest = { body: { data: { attributes: { - finishedAt: 1707842944600000000, + finishedAt: 17078429446000, git: { commitSha: "66adc9350f2cc9b250b69abddab733dd55e1a588", repositoryUrl: "https://github.com/organization/example-repository", @@ -20,7 +20,7 @@ const params: v2.DORAMetricsApiCreateDORAIncidentRequest = { name: "Webserver is down failing all requests", services: ["shopist"], severity: "High", - startedAt: 1707842944500000000, + startedAt: 17078429445000, team: "backend", version: "v1.12.07", }, diff --git a/features/v2/dora_metrics.feature b/features/v2/dora_metrics.feature index 0bbd31d204f4..514ca7ce5375 100644 --- a/features/v2/dora_metrics.feature +++ b/features/v2/dora_metrics.feature @@ -20,7 +20,7 @@ Feature: DORA Metrics Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response Given operation "CreateDORADeployment" enabled And 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"}}} + And body with value {"data": {"attributes": {"finished_at": 1693491984000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000, "version": "v1.12.07"}}} When the request is sent Then the response status is 202 OK - but delayed due to incident @@ -28,7 +28,7 @@ Feature: DORA Metrics Scenario: Send a deployment event for DORA Metrics returns "OK" response Given operation "CreateDORADeployment" enabled And 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"}}} + And body with value {"data": {"attributes": {"finished_at": 1693491984000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000, "version": "v1.12.07"}}} When the request is sent Then the response status is 200 OK @@ -44,7 +44,7 @@ Feature: DORA Metrics Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response Given operation "CreateDORAIncident" enabled And new "CreateDORAIncident" request - And body with value {"data": {"attributes": {"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"}}} + And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000, "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": 1693491974000, "team": "backend", "version": "v1.12.07"}}} When the request is sent Then the response status is 202 OK - but delayed due to incident @@ -52,6 +52,6 @@ Feature: DORA Metrics Scenario: Send an incident event for DORA Metrics returns "OK" response Given operation "CreateDORAIncident" enabled And 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"}}} + And body with value {"data": {"attributes": {"finished_at": 17078429446000, "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": 17078429445000, "team": "backend", "version": "v1.12.07"}}} When the request is sent Then the response status is 200 OK