diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index afb32a4a89a0..53c190f6748d 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3448,9 +3448,10 @@ components: $ref: '#/components/schemas/WidgetCustomLink' type: array requests: - description: 'Array of one request object to display in the widget. The - request must contain a `group-by` tag whose value is a country ISO code. - + description: 'Array of request objects to display in the widget. May include + an optional request for the region layer and/or an optional request for + the points layer. Region layer requests must contain a `group-by` tag + whose value is a country ISO code. See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) @@ -3461,7 +3462,7 @@ components: query: {} items: $ref: '#/components/schemas/GeomapWidgetRequest' - maxItems: 1 + maxItems: 2 minItems: 1 type: array style: @@ -3519,8 +3520,9 @@ components: focus: WORLD properties: focus: - description: The 2-letter ISO code of a country to focus the map on. Or - `WORLD`. + description: The 2-letter ISO code of a country to focus the map on, or + `WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent + (`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`). example: WORLD type: string required: @@ -3539,6 +3541,12 @@ components: items: $ref: '#/components/schemas/ListStreamColumn' type: array + conditional_formats: + description: Threshold (numeric) conditional formatting rules may be used + by a regions layer. + items: + $ref: '#/components/schemas/WidgetConditionalFormat' + type: array formulas: description: List of formulas that operate on queries. items: @@ -3564,6 +3572,23 @@ components: $ref: '#/components/schemas/LogQueryDefinition' sort: $ref: '#/components/schemas/WidgetSortBy' + style: + $ref: '#/components/schemas/GeomapWidgetRequestStyle' + text_formats: + description: Text formatting rules may be used by a points layer. + items: + $ref: '#/components/schemas/TableWidgetTextFormatRule' + type: array + type: object + GeomapWidgetRequestStyle: + description: The style to apply to the request for points layer. + example: + color_by: status + properties: + color_by: + description: The category to color the points by. + example: status + type: string type: object GraphSnapshot: description: Object representing a graph snapshot. diff --git a/cassettes/v1/Dashboards_1335235736/Create-a-geomap-widget-with-conditional-formats-and-text-formats_3581906349/frozen.json b/cassettes/v1/Dashboards_1335235736/Create-a-geomap-widget-with-conditional-formats-and-text-formats_3581906349/frozen.json new file mode 100644 index 000000000000..353a28061ab7 --- /dev/null +++ b/cassettes/v1/Dashboards_1335235736/Create-a-geomap-widget-with-conditional-formats-and-text-formats_3581906349/frozen.json @@ -0,0 +1 @@ +"2025-12-08T10:46:15.353Z" diff --git a/cassettes/v1/Dashboards_1335235736/Create-a-geomap-widget-with-conditional-formats-and-text-formats_3581906349/recording.har b/cassettes/v1/Dashboards_1335235736/Create-a-geomap-widget-with-conditional-formats-and-text-formats_3581906349/recording.har new file mode 100644 index 000000000000..5018c834c030 --- /dev/null +++ b/cassettes/v1/Dashboards_1335235736/Create-a-geomap-widget-with-conditional-formats-and-text-formats_3581906349/recording.har @@ -0,0 +1,110 @@ +{ + "log": { + "_recordingName": "Dashboards/Create a geomap widget with conditional formats and text formats", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "d20ad35b9db2e5d7ed599e12c501ec3d", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 1403, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"description\":\"Test-Create_a_geomap_widget_with_conditional_formats_and_text_formats-1765190775\",\"layout_type\":\"ordered\",\"notify_list\":[],\"reflow_type\":\"fixed\",\"tags\":[],\"template_variables\":[],\"title\":\"Test-Create_a_geomap_widget_with_conditional_formats_and_text_formats-1765190775\",\"widgets\":[{\"definition\":{\"requests\":[{\"conditional_formats\":[{\"comparator\":\">\",\"palette\":\"white_on_green\",\"value\":1000}],\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"rum\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"@type:session\"}}],\"response_format\":\"scalar\",\"sort\":{\"count\":250,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}},{\"columns\":[{\"field\":\"@network.client.geoip.location.latitude\",\"width\":\"auto\"},{\"field\":\"@network.client.geoip.location.longitude\",\"width\":\"auto\"},{\"field\":\"@network.client.geoip.country.iso_code\",\"width\":\"auto\"},{\"field\":\"@network.client.geoip.subdivision.name\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"indexes\":[],\"query_string\":\"\",\"storage\":\"hot\"},\"response_format\":\"event_list\",\"style\":{\"color_by\":\"status\"},\"text_formats\":[{\"match\":{\"type\":\"is\",\"value\":\"error\"},\"palette\":\"white_on_red\"}]}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"title\":\"Log Count by Service and Source\",\"type\":\"geomap\",\"view\":{\"focus\":\"NORTH_AMERICA\"}},\"layout\":{\"height\":6,\"width\":12,\"x\":0,\"y\":0}}]}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v1/dashboard" + }, + "response": { + "bodySize": 1736, + "content": { + "mimeType": "application/json", + "size": 1736, + "text": "{\"id\":\"n2i-h6d-x6a\",\"title\":\"Test-Create_a_geomap_widget_with_conditional_formats_and_text_formats-1765190775\",\"description\":\"Test-Create_a_geomap_widget_with_conditional_formats_and_text_formats-1765190775\",\"author_handle\":\"shishi.liu@datadoghq.com\",\"author_name\":\"Shishi Liu\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/n2i-h6d-x6a/test-createageomapwidgetwithconditionalformatsandtextformats-1765190775\",\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"conditional_formats\":[{\"comparator\":\">\",\"palette\":\"white_on_green\",\"value\":1000}],\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"rum\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"@type:session\"}}],\"response_format\":\"scalar\",\"sort\":{\"count\":250,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}},{\"columns\":[{\"field\":\"@network.client.geoip.location.latitude\",\"width\":\"auto\"},{\"field\":\"@network.client.geoip.location.longitude\",\"width\":\"auto\"},{\"field\":\"@network.client.geoip.country.iso_code\",\"width\":\"auto\"},{\"field\":\"@network.client.geoip.subdivision.name\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"indexes\":[],\"query_string\":\"\",\"storage\":\"hot\"},\"response_format\":\"event_list\",\"style\":{\"color_by\":\"status\"},\"text_formats\":[{\"match\":{\"type\":\"is\",\"value\":\"error\"},\"palette\":\"white_on_red\"}]}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"title\":\"Log Count by Service and Source\",\"type\":\"geomap\",\"view\":{\"focus\":\"NORTH_AMERICA\"}},\"layout\":{\"height\":6,\"width\":12,\"x\":0,\"y\":0},\"id\":4916490421180340}],\"notify_list\":[],\"created_at\":\"2025-12-08T10:46:15.791396+00:00\",\"modified_at\":\"2025-12-08T10:46:15.791396+00:00\",\"reflow_type\":\"fixed\",\"tags\":[],\"restricted_roles\":[]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 381, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-12-08T10:46:15.368Z", + "time": 540 + }, + { + "_id": "47b9d68833554d5352921b2bc1461606", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 520, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v1/dashboard/n2i-h6d-x6a" + }, + "response": { + "bodySize": 38, + "content": { + "mimeType": "application/json", + "size": 38, + "text": "{\"deleted_dashboard_id\":\"n2i-h6d-x6a\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 379, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-12-08T10:46:15.943Z", + "time": 640 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-Bad-Request-response_2824092514/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-Bad-Request-response_2824092514/frozen.json index 4c9b6ca09520..fba4118b12e6 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-Bad-Request-response_2824092514/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-Bad-Request-response_2824092514/frozen.json @@ -1 +1 @@ -"2025-12-02T17:11:57.622Z" +"2025-12-10T09:23:49.955Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-Bad-Request-response_2824092514/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-Bad-Request-response_2824092514/recording.har index d61dead3467b..958d9c72cfaa 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-Bad-Request-response_2824092514/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-Bad-Request-response_2824092514/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "83bacc36d0de676a6ffde92f8be6e9cf", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 191, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testcreatedeploymentrulereturnsbadrequestresponse1765358629\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 515, + "bodySize": 575, "content": { "mimeType": "application/vnd.api+json", - "size": 515, - "text": "{\"data\":{\"id\":\"daadd697-95f4-4608-b6cc-8e6337d692ab\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:11:58.225449Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:11:58.225449Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 575, + "text": "{\"data\":{\"id\":\"39b27cfd-44c1-4ec0-900b-3b46ca2ab8c1\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:50.404151Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testcreatedeploymentrulereturnsbadrequestresponse1765358629\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:50.404151Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 682, + "headersSize": 683, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:11:58.069Z", - "time": 195 + "startedDateTime": "2025-12-10T09:23:50.367Z", + "time": 280 }, { - "_id": "a16b8105dc198442190c72d42b8c7473", + "_id": "99791cf5f24d055ad93ce342abcc0e03", "_order": 0, "cache": {}, "request": { @@ -88,7 +88,7 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"name\":\"test\",\"options\":{\"excluded_resources\":[]},\"type\":\"fdd\"},\"type\":\"deployment_rule\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/daadd697-95f4-4608-b6cc-8e6337d692ab/rules" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/39b27cfd-44c1-4ec0-900b-3b46ca2ab8c1/rules" }, "response": { "bodySize": 136, @@ -104,17 +104,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 681, + "headersSize": 682, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-12-02T17:11:58.275Z", - "time": 144 + "startedDateTime": "2025-12-10T09:23:50.655Z", + "time": 52 }, { - "_id": "227b4564ccc3b0f72d53fe1e4001c5be", + "_id": "795a68cfca483d52cbe59787521f623c", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/daadd697-95f4-4608-b6cc-8e6337d692ab" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/39b27cfd-44c1-4ec0-900b-3b46ca2ab8c1" }, "response": { "bodySize": 0, @@ -141,14 +141,14 @@ }, "cookies": [], "headers": [], - "headersSize": 622, + "headersSize": 623, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:11:58.425Z", - "time": 128 + "startedDateTime": "2025-12-10T09:23:50.712Z", + "time": 60 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/frozen.json index 5cf132b31e7d..28b9dd705f03 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/frozen.json @@ -1 +1 @@ -"2025-12-02T17:11:58.561Z" +"2025-12-10T09:23:50.780Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/recording.har index 092c7fff449b..682ae20877c2 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Create-deployment-rule-returns-OK-response_36464608/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "92892c4c9c44828ee567a62a33c65db5", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 183, "cookies": [], "headers": [ { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 570, + "headersSize": 571, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testcreatedeploymentrulereturnsokresponse1765358630\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 513, + "bodySize": 567, "content": { "mimeType": "application/vnd.api+json", - "size": 513, - "text": "{\"data\":{\"id\":\"b998ebca-01ad-4db8-96e6-a2beb54f497a\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:11:58.67035Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:11:58.67035Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 567, + "text": "{\"data\":{\"id\":\"24d967fe-1dec-4957-bf77-7eda18a65d47\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:50.813397Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testcreatedeploymentrulereturnsokresponse1765358630\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:50.813397Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 682, + "headersSize": 683, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:11:58.564Z", - "time": 179 + "startedDateTime": "2025-12-10T09:23:50.783Z", + "time": 37 }, { - "_id": "858b10329845140040777a2b2098be81", + "_id": "a6096f20df6f977f0a0c05986e123041", "_order": 0, "cache": {}, "request": { @@ -79,7 +79,7 @@ "value": "application/json" } ], - "headersSize": 613, + "headersSize": 614, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"name\":\"My deployment rule\",\"options\":{\"excluded_resources\":[]},\"type\":\"faulty_deployment_detection\"},\"type\":\"deployment_rule\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/b998ebca-01ad-4db8-96e6-a2beb54f497a/rules" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/24d967fe-1dec-4957-bf77-7eda18a65d47/rules" }, "response": { "bodySize": 577, "content": { "mimeType": "application/vnd.api+json", "size": 577, - "text": "{\"data\":{\"id\":\"3feb569f-bb55-47cb-990f-7bc0c4c076f4\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-02T17:11:58.877828Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"b998ebca-01ad-4db8-96e6-a2beb54f497a\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-02T17:11:58.877828Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "text": "{\"data\":{\"id\":\"ebe85a93-a82d-49ec-8925-6d3d569012bb\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:50.871951Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"24d967fe-1dec-4957-bf77-7eda18a65d47\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-10T09:23:50.871951Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 681, + "headersSize": 682, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:11:58.750Z", - "time": 193 + "startedDateTime": "2025-12-10T09:23:50.826Z", + "time": 66 }, { - "_id": "e7215262d4435d95845dca7938047f4a", + "_id": "1168ae44d6cdcdbda5628c4385d3551f", "_order": 0, "cache": {}, "request": { @@ -127,11 +127,11 @@ "value": "*/*" } ], - "headersSize": 586, + "headersSize": 587, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/b998ebca-01ad-4db8-96e6-a2beb54f497a/rules/3feb569f-bb55-47cb-990f-7bc0c4c076f4" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/24d967fe-1dec-4957-bf77-7eda18a65d47/rules/ebe85a93-a82d-49ec-8925-6d3d569012bb" }, "response": { "bodySize": 0, @@ -141,17 +141,17 @@ }, "cookies": [], "headers": [], - "headersSize": 622, + "headersSize": 623, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:11:58.948Z", - "time": 133 + "startedDateTime": "2025-12-10T09:23:50.896Z", + "time": 54 }, { - "_id": "1840bf916f8ad711045474872823635f", + "_id": "43164807eaa97682b5061adf0a1f3fe1", "_order": 0, "cache": {}, "request": { @@ -164,11 +164,11 @@ "value": "*/*" } ], - "headersSize": 543, + "headersSize": 544, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/b998ebca-01ad-4db8-96e6-a2beb54f497a" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/24d967fe-1dec-4957-bf77-7eda18a65d47" }, "response": { "bodySize": 0, @@ -178,14 +178,14 @@ }, "cookies": [], "headers": [], - "headersSize": 622, + "headersSize": 623, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:11:59.085Z", - "time": 135 + "startedDateTime": "2025-12-10T09:23:50.953Z", + "time": 51 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-gate-returns-No-Content-response_2018192270/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-gate-returns-No-Content-response_2018192270/frozen.json index 4f3090a0e8d5..3b79d9ba4840 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-gate-returns-No-Content-response_2018192270/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-gate-returns-No-Content-response_2018192270/frozen.json @@ -1 +1 @@ -"2025-12-02T17:11:59.228Z" +"2025-12-10T09:23:51.011Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-gate-returns-No-Content-response_2018192270/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-gate-returns-No-Content-response_2018192270/recording.har index f113e05114d9..fd3986b447c0 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-gate-returns-No-Content-response_2018192270/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-gate-returns-No-Content-response_2018192270/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "8ea9e1c9088149c76ac5d864b98eb1c6", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 190, "cookies": [], "headers": [ { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 570, + "headersSize": 571, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testdeletedeploymentgatereturnsnocontentresponse1765358631\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 515, + "bodySize": 574, "content": { "mimeType": "application/vnd.api+json", - "size": 515, - "text": "{\"data\":{\"id\":\"0d6b54a5-70ad-4e9a-9ee4-f7d99f25a3d5\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:11:59.349857Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:11:59.349857Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 574, + "text": "{\"data\":{\"id\":\"03a2ecd3-87ad-45aa-9dbb-fda1215a4087\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:51.052668Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testdeletedeploymentgatereturnsnocontentresponse1765358631\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:51.052668Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:11:59.231Z", - "time": 179 + "startedDateTime": "2025-12-10T09:23:51.014Z", + "time": 59 }, { - "_id": "f64556f17830ddbb9db59662399ee781", + "_id": "c134e52791b6269f0fe57d9c3c76c189", "_order": 0, "cache": {}, "request": { @@ -74,11 +74,11 @@ "value": "*/*" } ], - "headersSize": 543, + "headersSize": 544, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/0d6b54a5-70ad-4e9a-9ee4-f7d99f25a3d5" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/03a2ecd3-87ad-45aa-9dbb-fda1215a4087" }, "response": { "bodySize": 0, @@ -94,11 +94,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:11:59.414Z", - "time": 133 + "startedDateTime": "2025-12-10T09:23:51.078Z", + "time": 70 }, { - "_id": "f64556f17830ddbb9db59662399ee781", + "_id": "c134e52791b6269f0fe57d9c3c76c189", "_order": 1, "cache": {}, "request": { @@ -111,11 +111,11 @@ "value": "*/*" } ], - "headersSize": 543, + "headersSize": 544, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/0d6b54a5-70ad-4e9a-9ee4-f7d99f25a3d5" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/03a2ecd3-87ad-45aa-9dbb-fda1215a4087" }, "response": { "bodySize": 80, @@ -137,8 +137,8 @@ "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-12-02T17:11:59.552Z", - "time": 128 + "startedDateTime": "2025-12-10T09:23:51.151Z", + "time": 46 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/frozen.json index 43d553813bf4..1bfb8dd62958 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/frozen.json @@ -1 +1 @@ -"2025-12-02T17:11:59.690Z" +"2025-12-10T09:23:51.205Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/recording.har index 7267b98f1af8..0fbcc99c127b 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Delete-deployment-rule-returns-No-Content-response_3926285415/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "7733fc1afff5c19399af6914bb127a92", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 190, "cookies": [], "headers": [ { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 571, + "headersSize": 570, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testdeletedeploymentrulereturnsnocontentresponse1765358631\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 515, + "bodySize": 574, "content": { "mimeType": "application/vnd.api+json", - "size": 515, - "text": "{\"data\":{\"id\":\"051490b0-1383-4dd4-b719-fb17ab089898\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:11:59.799293Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:11:59.799293Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 574, + "text": "{\"data\":{\"id\":\"b30401bf-4220-4d42-82ef-68d1a7916f21\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:51.250082Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testdeletedeploymentrulereturnsnocontentresponse1765358631\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:51.250082Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:11:59.694Z", - "time": 147 + "startedDateTime": "2025-12-10T09:23:51.207Z", + "time": 65 }, { - "_id": "6bd5203e04e0c90f6f84b04b848997cf", + "_id": "d555aed5798e4cfcf5cfe546f16b3e14", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"name\":\"My deployment rule\",\"options\":{\"excluded_resources\":[]},\"type\":\"faulty_deployment_detection\"},\"type\":\"deployment_rule\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/051490b0-1383-4dd4-b719-fb17ab089898/rules" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/b30401bf-4220-4d42-82ef-68d1a7916f21/rules" }, "response": { - "bodySize": 575, + "bodySize": 577, "content": { "mimeType": "application/vnd.api+json", - "size": 575, - "text": "{\"data\":{\"id\":\"29fb1e0d-d3f4-4f3a-a4de-1bd65cf57c16\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-02T17:11:59.98839Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"051490b0-1383-4dd4-b719-fb17ab089898\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-02T17:11:59.98839Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 577, + "text": "{\"data\":{\"id\":\"3e9bb31e-27be-43d0-9ef8-571a7f221f59\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:51.336139Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"b30401bf-4220-4d42-82ef-68d1a7916f21\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-10T09:23:51.336139Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -110,11 +110,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:11:59.847Z", - "time": 157 + "startedDateTime": "2025-12-10T09:23:51.279Z", + "time": 112 }, { - "_id": "c9a60e1fd8e8687e20b665f7b1d70e11", + "_id": "56055765b2f9b5145f26760bdee84a3a", "_order": 0, "cache": {}, "request": { @@ -127,11 +127,11 @@ "value": "*/*" } ], - "headersSize": 586, + "headersSize": 587, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/051490b0-1383-4dd4-b719-fb17ab089898/rules/29fb1e0d-d3f4-4f3a-a4de-1bd65cf57c16" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/b30401bf-4220-4d42-82ef-68d1a7916f21/rules/3e9bb31e-27be-43d0-9ef8-571a7f221f59" }, "response": { "bodySize": 0, @@ -147,11 +147,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:00.010Z", - "time": 157 + "startedDateTime": "2025-12-10T09:23:51.395Z", + "time": 41 }, { - "_id": "c9a60e1fd8e8687e20b665f7b1d70e11", + "_id": "56055765b2f9b5145f26760bdee84a3a", "_order": 1, "cache": {}, "request": { @@ -164,11 +164,11 @@ "value": "*/*" } ], - "headersSize": 587, + "headersSize": 586, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/051490b0-1383-4dd4-b719-fb17ab089898/rules/29fb1e0d-d3f4-4f3a-a4de-1bd65cf57c16" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/b30401bf-4220-4d42-82ef-68d1a7916f21/rules/3e9bb31e-27be-43d0-9ef8-571a7f221f59" }, "response": { "bodySize": 80, @@ -190,11 +190,11 @@ "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-12-02T17:12:00.172Z", - "time": 123 + "startedDateTime": "2025-12-10T09:23:51.440Z", + "time": 36 }, { - "_id": "cfe2dedc795691a60c99f4ee245c8f38", + "_id": "80606b1a7cb1f1c038f2eaf7e848dce7", "_order": 0, "cache": {}, "request": { @@ -211,7 +211,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/051490b0-1383-4dd4-b719-fb17ab089898" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/b30401bf-4220-4d42-82ef-68d1a7916f21" }, "response": { "bodySize": 0, @@ -227,8 +227,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:00.300Z", - "time": 114 + "startedDateTime": "2025-12-10T09:23:51.480Z", + "time": 58 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/frozen.json index 5bcbe140c3fb..75cdbb3db353 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/frozen.json @@ -1 +1 @@ -"2025-12-02T17:12:00.422Z" +"2025-12-10T09:23:51.545Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/recording.har index f1a825ff5e65..936f0730e1d9 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-gate-returns-OK-response_1812155259/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "412e8c957c574376659c5781dad217a1", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 180, "cookies": [], "headers": [ { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 570, + "headersSize": 571, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testgetdeploymentgatereturnsokresponse1765358631\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 513, + "bodySize": 564, "content": { "mimeType": "application/vnd.api+json", - "size": 513, - "text": "{\"data\":{\"id\":\"a71a41f7-e7b9-4c51-8af0-397c8e99aaf9\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:00.52354Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:12:00.52354Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 564, + "text": "{\"data\":{\"id\":\"da8c8c14-6bb2-4fc6-8dac-4027468738e4\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:51.581308Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testgetdeploymentgatereturnsokresponse1765358631\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:51.581308Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:00.428Z", - "time": 112 + "startedDateTime": "2025-12-10T09:23:51.547Z", + "time": 55 }, { - "_id": "7a1714b6c4d989fa0a6f7c0023d67164", + "_id": "41efec9f7d12bbbf4254a893399dbee7", "_order": 0, "cache": {}, "request": { @@ -74,18 +74,18 @@ "value": "application/json" } ], - "headersSize": 550, + "headersSize": 551, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/a71a41f7-e7b9-4c51-8af0-397c8e99aaf9" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/da8c8c14-6bb2-4fc6-8dac-4027468738e4" }, "response": { - "bodySize": 513, + "bodySize": 564, "content": { "mimeType": "application/vnd.api+json", - "size": 513, - "text": "{\"data\":{\"id\":\"a71a41f7-e7b9-4c51-8af0-397c8e99aaf9\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:00.52354Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:12:00.52354Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 564, + "text": "{\"data\":{\"id\":\"da8c8c14-6bb2-4fc6-8dac-4027468738e4\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:51.581308Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testgetdeploymentgatereturnsokresponse1765358631\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:51.581308Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -100,11 +100,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:00.545Z", - "time": 175 + "startedDateTime": "2025-12-10T09:23:51.607Z", + "time": 62 }, { - "_id": "b2ac5be2bfad4104b2122c28f0abe7ae", + "_id": "7d18ab448e430345d6e9f5ae3be97dfd", "_order": 0, "cache": {}, "request": { @@ -117,11 +117,11 @@ "value": "*/*" } ], - "headersSize": 543, + "headersSize": 544, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/a71a41f7-e7b9-4c51-8af0-397c8e99aaf9" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/da8c8c14-6bb2-4fc6-8dac-4027468738e4" }, "response": { "bodySize": 0, @@ -137,8 +137,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:00.724Z", - "time": 135 + "startedDateTime": "2025-12-10T09:23:51.673Z", + "time": 48 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/frozen.json index 3425883d0c17..cd5523b05347 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/frozen.json @@ -1 +1 @@ -"2025-12-02T17:12:00.864Z" +"2025-12-10T09:23:51.725Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/recording.har index 9af9f68cfc0c..6a3b5bf8bcbc 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-Bad-Request-response_2127960932/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "281ed7b8c09b5405e7a01dd3d77c3785", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 188, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testgetdeploymentrulereturnsbadrequestresponse1765358631\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 515, + "bodySize": 572, "content": { "mimeType": "application/vnd.api+json", - "size": 515, - "text": "{\"data\":{\"id\":\"241e9292-911a-4eea-90e0-83b5f27a468c\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:00.969748Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:12:00.969748Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 572, + "text": "{\"data\":{\"id\":\"5815296a-7bd8-4a27-86c1-9bb266c19078\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:51.766765Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testgetdeploymentrulereturnsbadrequestresponse1765358631\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:51.766765Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:00.866Z", - "time": 153 + "startedDateTime": "2025-12-10T09:23:51.726Z", + "time": 47 }, { - "_id": "46c6cd47c13b157d94b822aee9e7ae3c", + "_id": "2a50199423375b4e6d8ef5ef58ee07b1", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"name\":\"My deployment rule\",\"options\":{\"excluded_resources\":[]},\"type\":\"faulty_deployment_detection\"},\"type\":\"deployment_rule\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/241e9292-911a-4eea-90e0-83b5f27a468c/rules" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/5815296a-7bd8-4a27-86c1-9bb266c19078/rules" }, "response": { "bodySize": 577, "content": { "mimeType": "application/vnd.api+json", "size": 577, - "text": "{\"data\":{\"id\":\"48d335e3-7744-4aef-af75-7c6d0bb9e24e\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:01.161979Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"241e9292-911a-4eea-90e0-83b5f27a468c\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-02T17:12:01.161979Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "text": "{\"data\":{\"id\":\"1b2fb3ea-a7aa-4d17-92ac-53e625de862e\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:51.829441Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"5815296a-7bd8-4a27-86c1-9bb266c19078\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-10T09:23:51.829441Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -110,8 +110,8 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:01.023Z", - "time": 202 + "startedDateTime": "2025-12-10T09:23:51.777Z", + "time": 59 }, { "_id": "fb33a6dc801c60adbeedde2e3d4a63f4", @@ -127,7 +127,7 @@ "value": "application/json" } ], - "headersSize": 552, + "headersSize": 551, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], @@ -147,17 +147,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 680, + "headersSize": 679, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-12-02T17:12:01.230Z", - "time": 117 + "startedDateTime": "2025-12-10T09:23:51.840Z", + "time": 49 }, { - "_id": "9384928f864c0dbe39135428e689b7d6", + "_id": "6cb35e048af651b112feec761d71de38", "_order": 0, "cache": {}, "request": { @@ -174,7 +174,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/241e9292-911a-4eea-90e0-83b5f27a468c/rules/48d335e3-7744-4aef-af75-7c6d0bb9e24e" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/5815296a-7bd8-4a27-86c1-9bb266c19078/rules/1b2fb3ea-a7aa-4d17-92ac-53e625de862e" }, "response": { "bodySize": 0, @@ -184,17 +184,17 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:01.352Z", - "time": 125 + "startedDateTime": "2025-12-10T09:23:51.892Z", + "time": 52 }, { - "_id": "6cc88ec81e873471c71c8dcc05d08e18", + "_id": "55a113903d679651d72b979988034cb8", "_order": 0, "cache": {}, "request": { @@ -211,7 +211,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/241e9292-911a-4eea-90e0-83b5f27a468c" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/5815296a-7bd8-4a27-86c1-9bb266c19078" }, "response": { "bodySize": 0, @@ -221,14 +221,14 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:01.479Z", - "time": 138 + "startedDateTime": "2025-12-10T09:23:51.946Z", + "time": 45 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/frozen.json index cccee43a1451..0a3af2639abe 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/frozen.json @@ -1 +1 @@ -"2025-12-02T17:12:01.624Z" +"2025-12-10T09:23:51.998Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/recording.har index f38fe6931b5a..d8518bebe0e0 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Get-deployment-rule-returns-OK-response_3558316506/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "5a8b836c5bac769d09a226f15b892174", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 180, "cookies": [], "headers": [ { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 569, + "headersSize": 571, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testgetdeploymentrulereturnsokresponse1765358631\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 513, + "bodySize": 564, "content": { "mimeType": "application/vnd.api+json", - "size": 513, - "text": "{\"data\":{\"id\":\"defa04e5-9bb2-4a40-b854-1c2378ffcc58\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:01.70723Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:12:01.70723Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 564, + "text": "{\"data\":{\"id\":\"6177e46c-44dc-453d-8af8-8af86aa93c29\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.029575Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testgetdeploymentrulereturnsokresponse1765358631\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:52.029575Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 683, + "headersSize": 682, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:01.626Z", - "time": 102 + "startedDateTime": "2025-12-10T09:23:52.000Z", + "time": 36 }, { - "_id": "56de325ff9cd0433e688e48e07c5750b", + "_id": "cbab2cf6714d4812323aba60fbdde284", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"name\":\"My deployment rule\",\"options\":{\"excluded_resources\":[]},\"type\":\"faulty_deployment_detection\"},\"type\":\"deployment_rule\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/defa04e5-9bb2-4a40-b854-1c2378ffcc58/rules" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/6177e46c-44dc-453d-8af8-8af86aa93c29/rules" }, "response": { - "bodySize": 575, + "bodySize": 577, "content": { "mimeType": "application/vnd.api+json", "size": 577, - "text": "{\"data\":{\"id\":\"c1009845-b7a4-4701-846b-df160891ab3d\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:01.871247Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"defa04e5-9bb2-4a40-b854-1c2378ffcc58\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-02T17:12:01.871247Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "text": "{\"data\":{\"id\":\"38e32cd3-d245-49c1-85c5-b039ef868a18\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.079318Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"6177e46c-44dc-453d-8af8-8af86aa93c29\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-10T09:23:52.079318Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 682, + "headersSize": 681, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:01.733Z", - "time": 155 + "startedDateTime": "2025-12-10T09:23:52.040Z", + "time": 45 }, { - "_id": "ac25de481d87191f47754920915c1ae3", + "_id": "51579ab86f8651fbe286a5194ecc35da", "_order": 0, "cache": {}, "request": { @@ -127,18 +127,18 @@ "value": "application/json" } ], - "headersSize": 592, + "headersSize": 594, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/defa04e5-9bb2-4a40-b854-1c2378ffcc58/rules/c1009845-b7a4-4701-846b-df160891ab3d" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/6177e46c-44dc-453d-8af8-8af86aa93c29/rules/38e32cd3-d245-49c1-85c5-b039ef868a18" }, "response": { - "bodySize": 575, + "bodySize": 577, "content": { "mimeType": "application/vnd.api+json", "size": 577, - "text": "{\"data\":{\"id\":\"c1009845-b7a4-4701-846b-df160891ab3d\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:01.871247Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"defa04e5-9bb2-4a40-b854-1c2378ffcc58\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-02T17:12:01.871247Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "text": "{\"data\":{\"id\":\"38e32cd3-d245-49c1-85c5-b039ef868a18\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.079318Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"6177e46c-44dc-453d-8af8-8af86aa93c29\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-10T09:23:52.079318Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -147,17 +147,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 681, + "headersSize": 680, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:01.894Z", - "time": 128 + "startedDateTime": "2025-12-10T09:23:52.090Z", + "time": 43 }, { - "_id": "d76616cf2a9752635b9d5a90b190f24d", + "_id": "1c77bf1c234d46db9690f756de42ad13", "_order": 0, "cache": {}, "request": { @@ -170,11 +170,11 @@ "value": "*/*" } ], - "headersSize": 586, + "headersSize": 587, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/defa04e5-9bb2-4a40-b854-1c2378ffcc58/rules/c1009845-b7a4-4701-846b-df160891ab3d" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/6177e46c-44dc-453d-8af8-8af86aa93c29/rules/38e32cd3-d245-49c1-85c5-b039ef868a18" }, "response": { "bodySize": 0, @@ -184,17 +184,17 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:02.025Z", - "time": 119 + "startedDateTime": "2025-12-10T09:23:52.137Z", + "time": 56 }, { - "_id": "9b65b4bd320fa9f0d8f296113a4ccca3", + "_id": "4ffe653974526b7bfdea1f939ca6c842", "_order": 0, "cache": {}, "request": { @@ -211,7 +211,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/defa04e5-9bb2-4a40-b854-1c2378ffcc58" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/6177e46c-44dc-453d-8af8-8af86aa93c29" }, "response": { "bodySize": 0, @@ -221,14 +221,14 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:02.146Z", - "time": 125 + "startedDateTime": "2025-12-10T09:23:52.196Z", + "time": 60 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/frozen.json index 93b7ad21c6b2..83c6b4aa21dd 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/frozen.json @@ -1 +1 @@ -"2025-12-02T17:12:02.280Z" +"2025-12-10T09:23:52.262Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/recording.har index 1fdd277781a8..600e4ecc0e1a 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-gate-returns-OK-response_3515146080/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "4cbb56c741b91993d40ff1eff47a2a19", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 183, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testupdatedeploymentgatereturnsokresponse1765358632\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 515, + "bodySize": 567, "content": { "mimeType": "application/vnd.api+json", - "size": 515, - "text": "{\"data\":{\"id\":\"010e234b-b358-463e-a44d-6fbe29ec3f6b\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:02.374479Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:12:02.374479Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 567, + "text": "{\"data\":{\"id\":\"c718bd5b-86d4-43a5-9aff-b4e7757074ba\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.299803Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testupdatedeploymentgatereturnsokresponse1765358632\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:52.299803Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 683, + "headersSize": 682, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:02.283Z", - "time": 133 + "startedDateTime": "2025-12-10T09:23:52.264Z", + "time": 54 }, { - "_id": "78f3ddddbd3fcafdd7f0459709403df3", + "_id": "609338e96c331a708557cbea043ed17b", "_order": 0, "cache": {}, "request": { @@ -79,7 +79,7 @@ "value": "application/json" } ], - "headersSize": 606, + "headersSize": 607, "httpVersion": "HTTP/1.1", "method": "PUT", "postData": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false},\"id\":\"12345678-1234-1234-1234-123456789012\",\"type\":\"deployment_gate\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/010e234b-b358-463e-a44d-6fbe29ec3f6b" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/c718bd5b-86d4-43a5-9aff-b4e7757074ba" }, "response": { - "bodySize": 515, + "bodySize": 567, "content": { "mimeType": "application/vnd.api+json", - "size": 515, - "text": "{\"data\":{\"id\":\"010e234b-b358-463e-a44d-6fbe29ec3f6b\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:02.374479Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:12:02.534024Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 567, + "text": "{\"data\":{\"id\":\"c718bd5b-86d4-43a5-9aff-b4e7757074ba\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.299803Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testupdatedeploymentgatereturnsokresponse1765358632\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:52.363356Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 681, + "headersSize": 680, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:02.421Z", - "time": 129 + "startedDateTime": "2025-12-10T09:23:52.321Z", + "time": 50 }, { - "_id": "0c4a62650194294d13cc02cd7a727d3a", + "_id": "fafeebf7f4125305c72ddf46ea186e22", "_order": 0, "cache": {}, "request": { @@ -127,11 +127,11 @@ "value": "*/*" } ], - "headersSize": 543, + "headersSize": 544, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/010e234b-b358-463e-a44d-6fbe29ec3f6b" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/c718bd5b-86d4-43a5-9aff-b4e7757074ba" }, "response": { "bodySize": 0, @@ -141,14 +141,14 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:02.557Z", - "time": 157 + "startedDateTime": "2025-12-10T09:23:52.375Z", + "time": 47 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/frozen.json index 83243ee8dc76..9d7502cf2f30 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/frozen.json @@ -1 +1 @@ -"2025-12-02T17:12:02.719Z" +"2025-12-10T09:23:52.426Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/recording.har index a6fdc7ea9c44..120a83b53748 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-Bad-Request-response_1486779637/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "2dcfd0ffc912d9eddc32f5612f3a1852", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 191, "cookies": [], "headers": [ { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 570, + "headersSize": 571, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testupdatedeploymentrulereturnsbadrequestresponse1765358632\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 513, + "bodySize": 575, "content": { "mimeType": "application/vnd.api+json", - "size": 513, - "text": "{\"data\":{\"id\":\"ef2fa0b3-0f6a-49a4-9043-1d8130cb7361\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:02.81563Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:12:02.81563Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 575, + "text": "{\"data\":{\"id\":\"edb4daf3-86d3-43d0-9a18-0390d53c4a52\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.462721Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testupdatedeploymentrulereturnsbadrequestresponse1765358632\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:52.462721Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 683, + "headersSize": 682, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:02.721Z", - "time": 160 + "startedDateTime": "2025-12-10T09:23:52.432Z", + "time": 37 }, { - "_id": "f83da15c7a67dfdd8dd0752cd21dc851", + "_id": "2c41d1c807684e48aa24d2ed424e20fa", "_order": 0, "cache": {}, "request": { @@ -79,7 +79,7 @@ "value": "application/json" } ], - "headersSize": 612, + "headersSize": 614, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"name\":\"My deployment rule\",\"options\":{\"excluded_resources\":[]},\"type\":\"faulty_deployment_detection\"},\"type\":\"deployment_rule\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/ef2fa0b3-0f6a-49a4-9043-1d8130cb7361/rules" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/edb4daf3-86d3-43d0-9a18-0390d53c4a52/rules" }, "response": { - "bodySize": 575, + "bodySize": 573, "content": { "mimeType": "application/vnd.api+json", - "size": 575, - "text": "{\"data\":{\"id\":\"c89bf1d3-5e6a-43b1-9009-cfaaaddf8518\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:02.99992Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"ef2fa0b3-0f6a-49a4-9043-1d8130cb7361\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-02T17:12:02.99992Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 573, + "text": "{\"data\":{\"id\":\"f66b2121-b794-4926-8d65-c1f2dcb7870b\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.5225Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"edb4daf3-86d3-43d0-9a18-0390d53c4a52\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-10T09:23:52.5225Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -104,14 +104,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 682, + "headersSize": 681, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:02.885Z", - "time": 148 + "startedDateTime": "2025-12-10T09:23:52.473Z", + "time": 88 }, { "_id": "7d25d788cd9d6480d8210f5a5ca31a95", @@ -157,17 +157,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 680, + "headersSize": 679, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-12-02T17:12:03.038Z", - "time": 119 + "startedDateTime": "2025-12-10T09:23:52.566Z", + "time": 36 }, { - "_id": "e19d5544ecf761581bfd8cbb60d0e164", + "_id": "eb2e5ceeca92c2a652904cad8e42877b", "_order": 0, "cache": {}, "request": { @@ -184,7 +184,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/ef2fa0b3-0f6a-49a4-9043-1d8130cb7361/rules/c89bf1d3-5e6a-43b1-9009-cfaaaddf8518" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/edb4daf3-86d3-43d0-9a18-0390d53c4a52/rules/f66b2121-b794-4926-8d65-c1f2dcb7870b" }, "response": { "bodySize": 0, @@ -194,17 +194,17 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:03.162Z", - "time": 129 + "startedDateTime": "2025-12-10T09:23:52.606Z", + "time": 44 }, { - "_id": "118fea1ff2068f733707ca2bf9229e27", + "_id": "314df86b5f14cc2c87f688e6d2cec4af", "_order": 0, "cache": {}, "request": { @@ -217,11 +217,11 @@ "value": "*/*" } ], - "headersSize": 543, + "headersSize": 544, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/ef2fa0b3-0f6a-49a4-9043-1d8130cb7361" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/edb4daf3-86d3-43d0-9a18-0390d53c4a52" }, "response": { "bodySize": 0, @@ -231,14 +231,14 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:03.294Z", - "time": 135 + "startedDateTime": "2025-12-10T09:23:52.653Z", + "time": 42 } ], "pages": [], diff --git a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-OK-response_2914944649/frozen.json b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-OK-response_2914944649/frozen.json index 78a161da4f93..316b8ec08aaa 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-OK-response_2914944649/frozen.json +++ b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-OK-response_2914944649/frozen.json @@ -1 +1 @@ -"2025-12-02T17:12:03.436Z" +"2025-12-10T09:23:52.700Z" diff --git a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-OK-response_2914944649/recording.har b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-OK-response_2914944649/recording.har index 6d7d730ad659..845d947088ca 100644 --- a/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-OK-response_2914944649/recording.har +++ b/cassettes/v2/Deployment-Gates_4242274226/Update-deployment-rule-returns-OK-response_2914944649/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "70acb264a190c9504530585b68c408be", + "_id": "145162f9d6a75cd59467fc55d184ba15", "_order": 0, "cache": {}, "request": { - "bodySize": 131, + "bodySize": 183, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" + "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testupdatedeploymentrulereturnsokresponse1765358632\",\"service\":\"my-service\"},\"type\":\"deployment_gate\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/deployment_gates" }, "response": { - "bodySize": 515, + "bodySize": 567, "content": { "mimeType": "application/vnd.api+json", - "size": 515, - "text": "{\"data\":{\"id\":\"bfdae182-ee23-493c-a90b-05441a76ad73\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:03.529101Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate\",\"service\":\"my-service\",\"updated_at\":\"2025-12-02T17:12:03.529101Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 567, + "text": "{\"data\":{\"id\":\"3acb9ac2-abba-4579-8697-79493b221d41\",\"type\":\"deployment_gate\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.735765Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"env\":\"production\",\"identifier\":\"my-gate-testupdatedeploymentrulereturnsokresponse1765358632\",\"service\":\"my-service\",\"updated_at\":\"2025-12-10T09:23:52.735765Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 683, + "headersSize": 682, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:03.438Z", - "time": 106 + "startedDateTime": "2025-12-10T09:23:52.702Z", + "time": 40 }, { - "_id": "a39e041f34ceb6f9492a015e652dafb3", + "_id": "af2851848e2ecb601efa5e586ac3acb9", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"name\":\"My deployment rule\",\"options\":{\"excluded_resources\":[]},\"type\":\"faulty_deployment_detection\"},\"type\":\"deployment_rule\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/bfdae182-ee23-493c-a90b-05441a76ad73/rules" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/3acb9ac2-abba-4579-8697-79493b221d41/rules" }, "response": { - "bodySize": 575, + "bodySize": 577, "content": { "mimeType": "application/vnd.api+json", - "size": 575, - "text": "{\"data\":{\"id\":\"93ed5e98-aeb8-4096-a035-0907f327019e\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:03.68857Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"bfdae182-ee23-493c-a90b-05441a76ad73\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-02T17:12:03.68857Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 577, + "text": "{\"data\":{\"id\":\"ee04f24f-a980-4a28-a839-29911a632978\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.782282Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"3acb9ac2-abba-4579-8697-79493b221d41\",\"name\":\"My deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-10T09:23:52.782282Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 682, + "headersSize": 681, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:03.548Z", - "time": 190 + "startedDateTime": "2025-12-10T09:23:52.746Z", + "time": 42 }, { - "_id": "73db724b34b923fb9147af57af849393", + "_id": "8e74cbf3c27b53355cbf770661a67aa9", "_order": 0, "cache": {}, "request": { @@ -141,14 +141,14 @@ "text": "{\"data\":{\"attributes\":{\"dry_run\":false,\"name\":\"Updated deployment rule\",\"options\":{\"excluded_resources\":[]}},\"type\":\"deployment_rule\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/bfdae182-ee23-493c-a90b-05441a76ad73/rules/93ed5e98-aeb8-4096-a035-0907f327019e" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/3acb9ac2-abba-4579-8697-79493b221d41/rules/ee04f24f-a980-4a28-a839-29911a632978" }, "response": { - "bodySize": 581, + "bodySize": 582, "content": { "mimeType": "application/vnd.api+json", - "size": 581, - "text": "{\"data\":{\"id\":\"93ed5e98-aeb8-4096-a035-0907f327019e\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-02T17:12:03.68857Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"bfdae182-ee23-493c-a90b-05441a76ad73\",\"name\":\"Updated deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-02T17:12:03.882016Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" + "size": 582, + "text": "{\"data\":{\"id\":\"ee04f24f-a980-4a28-a839-29911a632978\",\"type\":\"deployment_rule\",\"attributes\":{\"created_at\":\"2025-12-10T09:23:52.782282Z\",\"created_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"},\"dry_run\":false,\"gate_id\":\"3acb9ac2-abba-4579-8697-79493b221d41\",\"name\":\"Updated deployment rule\",\"options\":{},\"type\":\"faulty_deployment_detection\",\"updated_at\":\"2025-12-10T09:23:52.843771Z\",\"updated_by\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}" }, "cookies": [], "headers": [ @@ -157,17 +157,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 681, + "headersSize": 680, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-12-02T17:12:03.754Z", - "time": 204 + "startedDateTime": "2025-12-10T09:23:52.791Z", + "time": 59 }, { - "_id": "bf7e48fc9eed3ef6ca339f9dd223876f", + "_id": "c8425d4120833bc3bf28f3ad164ffc22", "_order": 0, "cache": {}, "request": { @@ -184,7 +184,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/bfdae182-ee23-493c-a90b-05441a76ad73/rules/93ed5e98-aeb8-4096-a035-0907f327019e" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/3acb9ac2-abba-4579-8697-79493b221d41/rules/ee04f24f-a980-4a28-a839-29911a632978" }, "response": { "bodySize": 0, @@ -194,17 +194,17 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:03.962Z", - "time": 118 + "startedDateTime": "2025-12-10T09:23:52.854Z", + "time": 32 }, { - "_id": "cbada0b028a36291c1717d710fde6323", + "_id": "0da16de68d6d7baff55bb71f9e912045", "_order": 0, "cache": {}, "request": { @@ -217,11 +217,11 @@ "value": "*/*" } ], - "headersSize": 543, + "headersSize": 544, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/deployment_gates/bfdae182-ee23-493c-a90b-05441a76ad73" + "url": "https://api.datadoghq.com/api/v2/deployment_gates/3acb9ac2-abba-4579-8697-79493b221d41" }, "response": { "bodySize": 0, @@ -231,14 +231,14 @@ }, "cookies": [], "headers": [], - "headersSize": 623, + "headersSize": 622, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-12-02T17:12:04.084Z", - "time": 135 + "startedDateTime": "2025-12-10T09:23:52.889Z", + "time": 42 } ], "pages": [], diff --git a/examples/v1/dashboards/CreateDashboard_9836563.ts b/examples/v1/dashboards/CreateDashboard_9836563.ts new file mode 100644 index 000000000000..d418aecf1410 --- /dev/null +++ b/examples/v1/dashboards/CreateDashboard_9836563.ts @@ -0,0 +1,130 @@ +/** + * Create a geomap widget with conditional formats and text formats + */ + +import { client, v1 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v1.DashboardsApi(configuration); + +const params: v1.DashboardsApiCreateDashboardRequest = { + body: { + title: "Example-Dashboard", + description: "Example-Dashboard", + widgets: [ + { + definition: { + title: "Log Count by Service and Source", + type: "geomap", + requests: [ + { + responseFormat: "scalar", + queries: [ + { + dataSource: "rum", + name: "query1", + search: { + query: "@type:session", + }, + indexes: ["*"], + compute: { + aggregation: "count", + }, + groupBy: [], + }, + ], + conditionalFormats: [ + { + comparator: ">", + value: 1000, + palette: "white_on_green", + }, + ], + formulas: [ + { + formula: "query1", + }, + ], + sort: { + count: 250, + orderBy: [ + { + type: "formula", + index: 0, + order: "desc", + }, + ], + }, + }, + { + responseFormat: "event_list", + query: { + dataSource: "logs_stream", + queryString: "", + indexes: [], + storage: "hot", + }, + columns: [ + { + field: "@network.client.geoip.location.latitude", + width: "auto", + }, + { + field: "@network.client.geoip.location.longitude", + width: "auto", + }, + { + field: "@network.client.geoip.country.iso_code", + width: "auto", + }, + { + field: "@network.client.geoip.subdivision.name", + width: "auto", + }, + ], + style: { + colorBy: "status", + }, + textFormats: [ + { + match: { + type: "is", + value: "error", + }, + palette: "white_on_red", + }, + ], + }, + ], + style: { + palette: "hostmap_blues", + paletteFlip: false, + }, + view: { + focus: "NORTH_AMERICA", + }, + }, + layout: { + x: 0, + y: 0, + width: 12, + height: 6, + }, + }, + ], + templateVariables: [], + layoutType: "ordered", + notifyList: [], + reflowType: "fixed", + tags: [], + }, +}; + +apiInstance + .createDashboard(params) + .then((data: v1.Dashboard) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/v1/dashboards.feature b/features/v1/dashboards.feature index 3eeebebdc24c..588c609ceddb 100644 --- a/features/v1/dashboards.feature +++ b/features/v1/dashboards.feature @@ -72,6 +72,22 @@ Feature: Dashboards And the response "widgets[0].definition.requests[0].response_format" is equal to "event_list" And the response "widgets[0].definition.requests[0].query.data_source" is equal to "logs_stream" + @team:DataDog/dashboards-backend + Scenario: Create a geomap widget with conditional formats and text formats + Given new "CreateDashboard" request + And body with value {"title": "{{ unique }}","description": "{{ unique }}","widgets":[{"definition":{"title":"Log Count by Service and Source","type":"geomap","requests":[{"response_format":"scalar","queries":[{"data_source":"rum","name":"query1","search":{"query":"@type:session"},"indexes":["*"],"compute":{"aggregation":"count"},"group_by":[]}],"conditional_formats":[{"comparator":">","value":1000,"palette":"white_on_green"}],"formulas":[{"formula":"query1"}],"sort":{"count":250,"order_by":[{"type":"formula","index":0,"order":"desc"}]}},{"response_format":"event_list","query":{"data_source":"logs_stream","query_string":"","indexes":[],"storage":"hot"},"columns":[{"field":"@network.client.geoip.location.latitude","width":"auto"},{"field":"@network.client.geoip.location.longitude","width":"auto"},{"field":"@network.client.geoip.country.iso_code","width":"auto"},{"field":"@network.client.geoip.subdivision.name","width":"auto"}],"style":{"color_by":"status"},"text_formats":[{"match":{"type":"is","value":"error"},"palette":"white_on_red"}]}],"style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"NORTH_AMERICA"}},"layout":{"x":0,"y":0,"width":12,"height":6}}],"template_variables":[],"layout_type":"ordered","notify_list":[],"reflow_type":"fixed","tags":[]} + When the request is sent + Then the response status is 200 OK + And the response "widgets[0].definition.type" is equal to "geomap" + And the response "widgets[0].definition.title" is equal to "Log Count by Service and Source" + And the response "widgets[0].definition.requests[0].conditional_formats[0].comparator" is equal to ">" + And the response "widgets[0].definition.requests[0].conditional_formats[0].palette" is equal to "white_on_green" + And the response "widgets[0].definition.requests[0].conditional_formats[0].value" is equal to 1000 + And the response "widgets[0].definition.requests[1].text_formats[0].match.type" is equal to "is" + And the response "widgets[0].definition.requests[1].text_formats[0].match.value" is equal to "error" + And the response "widgets[0].definition.requests[1].text_formats[0].palette" is equal to "white_on_red" + And the response "widgets[0].definition.view.focus" is equal to "NORTH_AMERICA" + @generated @skip @team:DataDog/dashboards-backend Scenario: Create a new dashboard returns "Bad Request" response Given new "CreateDashboard" request diff --git a/features/v2/given.json b/features/v2/given.json index ad563ffc7892..a6a148f264e5 100644 --- a/features/v2/given.json +++ b/features/v2/given.json @@ -350,7 +350,7 @@ "parameters": [ { "name": "body", - "value": "{\n \"data\": {\n \"type\": \"deployment_gate\",\n \"attributes\": {\n \"service\": \"my-service\",\n \"env\": \"production\",\n \"identifier\": \"my-gate\",\n \"dry_run\": false\n }\n }\n}" + "value": "{\n \"data\": {\n \"type\": \"deployment_gate\",\n \"attributes\": {\n \"service\": \"my-service\",\n \"env\": \"production\",\n \"identifier\": \"my-gate-{{ unique_lower_alnum }}\",\n \"dry_run\": false\n }\n }\n}" } ], "step": "there is a valid \"deployment_gate\" in the system", diff --git a/packages/datadog-api-client-v1/index.ts b/packages/datadog-api-client-v1/index.ts index 5b22314e3126..de7810e2a7cc 100644 --- a/packages/datadog-api-client-v1/index.ts +++ b/packages/datadog-api-client-v1/index.ts @@ -485,6 +485,7 @@ export { GeomapWidgetDefinitionStyle } from "./models/GeomapWidgetDefinitionStyl export { GeomapWidgetDefinitionType } from "./models/GeomapWidgetDefinitionType"; export { GeomapWidgetDefinitionView } from "./models/GeomapWidgetDefinitionView"; export { GeomapWidgetRequest } from "./models/GeomapWidgetRequest"; +export { GeomapWidgetRequestStyle } from "./models/GeomapWidgetRequestStyle"; export { GraphSnapshot } from "./models/GraphSnapshot"; export { GroupType } from "./models/GroupType"; export { GroupWidgetDefinition } from "./models/GroupWidgetDefinition"; diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetDefinition.ts b/packages/datadog-api-client-v1/models/GeomapWidgetDefinition.ts index 52f2e971bf3a..d50d8a29a7a0 100644 --- a/packages/datadog-api-client-v1/models/GeomapWidgetDefinition.ts +++ b/packages/datadog-api-client-v1/models/GeomapWidgetDefinition.ts @@ -22,12 +22,11 @@ export class GeomapWidgetDefinition { */ "customLinks"?: Array; /** - * Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. - * + * Array of request objects to display in the widget. May include an optional request for the region layer and/or an optional request for the points layer. Region layer requests must contain a `group-by` tag whose value is a country ISO code. * See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) * for information about building the `REQUEST_SCHEMA`. */ - "requests": [GeomapWidgetRequest]; + "requests": Array; /** * The style to apply to the widget. */ @@ -79,7 +78,7 @@ export class GeomapWidgetDefinition { }, requests: { baseName: "requests", - type: "[GeomapWidgetRequest]", + type: "Array", required: true, }, style: { diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionView.ts b/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionView.ts index f7793bcd3dba..50c57e1a9d29 100644 --- a/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionView.ts +++ b/packages/datadog-api-client-v1/models/GeomapWidgetDefinitionView.ts @@ -11,7 +11,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; */ export class GeomapWidgetDefinitionView { /** - * The 2-letter ISO code of a country to focus the map on. Or `WORLD`. + * The 2-letter ISO code of a country to focus the map on, or `WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent (`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`). */ "focus": string; diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetRequest.ts b/packages/datadog-api-client-v1/models/GeomapWidgetRequest.ts index bfc3ab869840..d3e5f88ed0b9 100644 --- a/packages/datadog-api-client-v1/models/GeomapWidgetRequest.ts +++ b/packages/datadog-api-client-v1/models/GeomapWidgetRequest.ts @@ -5,9 +5,12 @@ */ import { FormulaAndFunctionQueryDefinition } from "./FormulaAndFunctionQueryDefinition"; import { FormulaAndFunctionResponseFormat } from "./FormulaAndFunctionResponseFormat"; +import { GeomapWidgetRequestStyle } from "./GeomapWidgetRequestStyle"; import { ListStreamColumn } from "./ListStreamColumn"; import { ListStreamQuery } from "./ListStreamQuery"; import { LogQueryDefinition } from "./LogQueryDefinition"; +import { TableWidgetTextFormatRule } from "./TableWidgetTextFormatRule"; +import { WidgetConditionalFormat } from "./WidgetConditionalFormat"; import { WidgetFormula } from "./WidgetFormula"; import { WidgetSortBy } from "./WidgetSortBy"; @@ -21,6 +24,10 @@ export class GeomapWidgetRequest { * Widget columns. */ "columns"?: Array; + /** + * Threshold (numeric) conditional formatting rules may be used by a regions layer. + */ + "conditionalFormats"?: Array; /** * List of formulas that operate on queries. */ @@ -57,6 +64,14 @@ export class GeomapWidgetRequest { * The controls for sorting the widget. */ "sort"?: WidgetSortBy; + /** + * The style to apply to the request for points layer. + */ + "style"?: GeomapWidgetRequestStyle; + /** + * Text formatting rules may be used by a points layer. + */ + "textFormats"?: Array; /** * A container for additional, undeclared properties. @@ -78,6 +93,10 @@ export class GeomapWidgetRequest { baseName: "columns", type: "Array", }, + conditionalFormats: { + baseName: "conditional_formats", + type: "Array", + }, formulas: { baseName: "formulas", type: "Array", @@ -114,6 +133,14 @@ export class GeomapWidgetRequest { baseName: "sort", type: "WidgetSortBy", }, + style: { + baseName: "style", + type: "GeomapWidgetRequestStyle", + }, + textFormats: { + baseName: "text_formats", + type: "Array", + }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }", diff --git a/packages/datadog-api-client-v1/models/GeomapWidgetRequestStyle.ts b/packages/datadog-api-client-v1/models/GeomapWidgetRequestStyle.ts new file mode 100644 index 000000000000..e23190633604 --- /dev/null +++ b/packages/datadog-api-client-v1/models/GeomapWidgetRequestStyle.ts @@ -0,0 +1,52 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The style to apply to the request for points layer. + */ +export class GeomapWidgetRequestStyle { + /** + * The category to color the points by. + */ + "colorBy"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + colorBy: { + baseName: "color_by", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return GeomapWidgetRequestStyle.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v1/models/ObjectSerializer.ts b/packages/datadog-api-client-v1/models/ObjectSerializer.ts index 0aa318305ba7..353dc1d85e2b 100644 --- a/packages/datadog-api-client-v1/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v1/models/ObjectSerializer.ts @@ -99,6 +99,7 @@ import { GeomapWidgetDefinition } from "./GeomapWidgetDefinition"; import { GeomapWidgetDefinitionStyle } from "./GeomapWidgetDefinitionStyle"; import { GeomapWidgetDefinitionView } from "./GeomapWidgetDefinitionView"; import { GeomapWidgetRequest } from "./GeomapWidgetRequest"; +import { GeomapWidgetRequestStyle } from "./GeomapWidgetRequestStyle"; import { GraphSnapshot } from "./GraphSnapshot"; import { GroupWidgetDefinition } from "./GroupWidgetDefinition"; import { HTTPLogError } from "./HTTPLogError"; @@ -1838,6 +1839,7 @@ const typeMap: { [index: string]: any } = { GeomapWidgetDefinitionStyle: GeomapWidgetDefinitionStyle, GeomapWidgetDefinitionView: GeomapWidgetDefinitionView, GeomapWidgetRequest: GeomapWidgetRequest, + GeomapWidgetRequestStyle: GeomapWidgetRequestStyle, GraphSnapshot: GraphSnapshot, GroupWidgetDefinition: GroupWidgetDefinition, HTTPLogError: HTTPLogError,