From 569a37e05c239e9916efe0c539e45e1f615f7ba6 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 6 Feb 2025 15:01:29 +0000 Subject: [PATCH] Regenerate client from commit 35bc11b5 of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 8 ++++---- examples/v2/dora-metrics/CreateDORADeployment.java | 4 ++-- examples/v2/dora-metrics/CreateDORAIncident.java | 4 ++-- .../features/v1/Post_an_event_returns_OK_response.json | 2 +- ...st_an_event_with_a_long_title_returns_OK_response.json | 2 +- .../features/v2/Get_App_returns_OK_response.json | 2 +- ...oyment_event_for_DORA_Metrics_returns_OK_response.json | 4 ++-- ...cident_event_for_DORA_Metrics_returns_OK_response.json | 4 ++-- .../features/v2/Update_App_returns_OK_response.json | 2 +- .../com/datadog/api/client/v2/api/dora_metrics.feature | 8 ++++---- 11 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index f51741c2591..d8a9fd0a87e 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-04 14:10:00.992806", - "spec_repo_commit": "4fb9047a" + "regenerated": "2025-02-06 14:59:33.684800", + "spec_repo_commit": "35bc11b5" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-04 14:10:01.007762", - "spec_repo_commit": "4fb9047a" + "regenerated": "2025-02-06 14:59:33.700281", + "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 831530e2584..cfc044a5433 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/examples/v2/dora-metrics/CreateDORADeployment.java b/examples/v2/dora-metrics/CreateDORADeployment.java index 37185895e58..2bb55dae0de 100644 --- a/examples/v2/dora-metrics/CreateDORADeployment.java +++ b/examples/v2/dora-metrics/CreateDORADeployment.java @@ -21,14 +21,14 @@ public static void main(String[] args) { new DORADeploymentRequestData() .attributes( new DORADeploymentRequestAttributes() - .finishedAt(1693491984000000000L) + .finishedAt(1693491984000L) .git( new DORAGitInfo() .commitSha("66adc9350f2cc9b250b69abddab733dd55e1a588") .repositoryUrl( "https://github.com/organization/example-repository")) .service("shopist") - .startedAt(1693491974000000000L) + .startedAt(1693491974000L) .version("v1.12.07"))); try { diff --git a/examples/v2/dora-metrics/CreateDORAIncident.java b/examples/v2/dora-metrics/CreateDORAIncident.java index f337ac0b0ad..576d0e94774 100644 --- a/examples/v2/dora-metrics/CreateDORAIncident.java +++ b/examples/v2/dora-metrics/CreateDORAIncident.java @@ -22,7 +22,7 @@ public static void main(String[] args) { new DORAIncidentRequestData() .attributes( new DORAIncidentRequestAttributes() - .finishedAt(1707842944600000000L) + .finishedAt(17078429446000L) .git( new DORAGitInfo() .commitSha("66adc9350f2cc9b250b69abddab733dd55e1a588") @@ -31,7 +31,7 @@ public static void main(String[] args) { .name("Webserver is down failing all requests") .services(Collections.singletonList("shopist")) .severity("High") - .startedAt(1707842944500000000L) + .startedAt(17078429445000L) .team("backend") .version("v1.12.07"))); diff --git a/src/test/resources/cassettes/features/v1/Post_an_event_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Post_an_event_returns_OK_response.json index b52a781c8d5..7732c5d730e 100644 --- a/src/test/resources/cassettes/features/v1/Post_an_event_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Post_an_event_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"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\"}}", + "body": "{\"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\"}}", "headers": { "Content-Type": [ "application/json" diff --git a/src/test/resources/cassettes/features/v1/Post_an_event_with_a_long_title_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Post_an_event_with_a_long_title_returns_OK_response.json index 39b025d5805..a8608e5d334 100644 --- a/src/test/resources/cassettes/features/v1/Post_an_event_with_a_long_title_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Post_an_event_with_a_long_title_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"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\"}}", + "body": "{\"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\"}}", "headers": { "Content-Type": [ "application/json" diff --git a/src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json index 4b772a88638..dfd2f415365 100644 --- a/src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json @@ -38,7 +38,7 @@ "secure": true }, "httpResponse": { - "body": "{\"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\"}}}", + "body": "{\"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\":[]}}}", "headers": { "Content-Type": [ "application/vnd.api+json" 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_for_DORA_Metrics_returns_OK_response.json index 1a76ac93c5d..fe4a6cd7e8f 100644 --- 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_for_DORA_Metrics_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"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\"}}}" + "json": "{\"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\"}}}" }, "headers": {}, "method": "POST", @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "89b0b557-54cf-a77e-61b3-69a1bee5bac6" + "id": "d766d5bb-b37d-849c-6e59-818cec461a84" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Send_an_incident_event_for_DORA_Metrics_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Send_an_incident_event_for_DORA_Metrics_returns_OK_response.json index 9149c71acae..7efa02b957f 100644 --- a/src/test/resources/cassettes/features/v2/Send_an_incident_event_for_DORA_Metrics_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Send_an_incident_event_for_DORA_Metrics_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"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\"}}}" + "json": "{\"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\"}}}" }, "headers": {}, "method": "POST", @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "b139e470-943b-53f5-3db9-3c09d91fe207" + "id": "87fb2208-c5e8-60f7-a4fc-1a02145c2949" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json index 2049e9ae6a5..4b3a9653607 100644 --- a/src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"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\"}}}", + "body": "{\"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\":[]}}}", "headers": { "Content-Type": [ "application/vnd.api+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 0bbd31d204f..514ca7ce537 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 @@ -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