diff --git a/.apigentools-info b/.apigentools-info index 38d7e36ba17a..3197b5e6bd6d 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-24 18:01:03.306087", - "spec_repo_commit": "7e490450" + "regenerated": "2023-10-24 20:52:42.478667", + "spec_repo_commit": "99f225ba" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-24 18:01:03.321428", - "spec_repo_commit": "7e490450" + "regenerated": "2023-10-24 20:52:42.510252", + "spec_repo_commit": "99f225ba" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index dc88ec0dee9d..4d262aefaea8 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -11170,6 +11170,8 @@ components: $ref: '#/components/schemas/PowerpackGroupWidgetDefinition' layout: $ref: '#/components/schemas/PowerpackGroupWidgetLayout' + live_span: + $ref: '#/components/schemas/WidgetLiveSpan' required: - definition type: object @@ -18581,6 +18583,42 @@ components: type: string x-enum-varnames: - USERS + WidgetLiveSpan: + description: The available timeframes depend on the widget you are using. + enum: + - 1m + - 5m + - 10m + - 15m + - 30m + - 1h + - 4h + - 1d + - 2d + - 1w + - 1mo + - 3mo + - 6mo + - 1y + - alert + example: 5m + type: string + x-enum-varnames: + - PAST_ONE_MINUTE + - PAST_FIVE_MINUTES + - PAST_TEN_MINUTES + - PAST_FIFTEEN_MINUTES + - PAST_THIRTY_MINUTES + - PAST_ONE_HOUR + - PAST_FOUR_HOURS + - PAST_ONE_DAY + - PAST_TWO_DAYS + - PAST_ONE_WEEK + - PAST_ONE_MONTH + - PAST_THREE_MONTHS + - PAST_SIX_MONTHS + - PAST_ONE_YEAR + - ALERT securitySchemes: AuthZ: description: This API uses OAuth 2 with the implicit grant flow. diff --git a/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/frozen.json b/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/frozen.json index b5f9a58890cd..5dfc11ac81b9 100644 --- a/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/frozen.json +++ b/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/frozen.json @@ -1 +1 @@ -"2023-10-11T18:44:47.026Z" +"2023-10-24T18:32:08.933Z" diff --git a/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/recording.har b/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/recording.har index 90d0a108adcb..a81de447487d 100644 --- a/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/recording.har +++ b/cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "09df1491cb73d8c064ac9cb6b1832ff4", + "_id": "ff463c5a66667d63df23f35e81c1badd", "_order": 0, "cache": {}, "request": { - "bodySize": 448, + "bodySize": 465, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1698172328\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/powerpacks" }, "response": { - "bodySize": 742, + "bodySize": 788, "content": { "mimeType": "application/json", - "size": 742, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6750168893668334}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 788, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a3e591c8-729b-11ee-bde6-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1698172328\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":1041433464205113}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T18:44:47.035Z", - "time": 250 + "startedDateTime": "2023-10-24T18:32:08.946Z", + "time": 644 }, { - "_id": "75eb5a987bc007cba49428c0cf9bfc39", + "_id": "a6a4cc343ee1cd5b166d5792a9ef6b5f", "_order": 0, "cache": {}, "request": { @@ -79,23 +79,23 @@ "value": "application/json" } ], - "headersSize": 559, + "headersSize": 558, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"description\":\"description\",\"is_read_only\":false,\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887 with powerpack widget\",\"widgets\":[{\"definition\":{\"powerpack_id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1}}]}" + "text": "{\"description\":\"description\",\"is_read_only\":false,\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1698172328 with powerpack widget\",\"widgets\":[{\"definition\":{\"powerpack_id\":\"a3e591c8-729b-11ee-bde6-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1}}]}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/dashboard" }, "response": { - "bodySize": 845, + "bodySize": 871, "content": { "mimeType": "application/json", - "size": 845, - "text": "{\"id\":\"wap-jgr-c99\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/wap-jgr-c99/test-createanewdashboardwithpowerpackwidget-1697049887-with-powerpack-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"powerpack_id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1},\"id\":2124665012947075}],\"notify_list\":null,\"created_at\":\"2023-10-11T18:44:47.485150+00:00\",\"modified_at\":\"2023-10-11T18:44:47.485150+00:00\",\"restricted_roles\":[]}\n" + "size": 871, + "text": "{\"id\":\"u4a-itq-xia\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1698172328 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/u4a-itq-xia/test-createanewdashboardwithpowerpackwidget-1698172328-with-powerpack-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"powerpack_id\":\"a3e591c8-729b-11ee-bde6-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1},\"id\":1423357855337541}],\"notify_list\":null,\"created_at\":\"2023-10-24T18:32:09.719784+00:00\",\"modified_at\":\"2023-10-24T18:32:09.719784+00:00\",\"restricted_roles\":[]}\n" }, "cookies": [], "headers": [ @@ -110,11 +110,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T18:44:47.306Z", - "time": 219 + "startedDateTime": "2023-10-24T18:32:09.604Z", + "time": 195 }, { - "_id": "3e05e95856872650c293372e704c67d9", + "_id": "f426c6930cfa809096ddc44ac24cb5ce", "_order": 0, "cache": {}, "request": { @@ -131,14 +131,14 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v1/dashboard/wap-jgr-c99" + "url": "https://api.datadoghq.com/api/v1/dashboard/u4a-itq-xia" }, "response": { "bodySize": 39, "content": { "mimeType": "application/json", "size": 39, - "text": "{\"deleted_dashboard_id\":\"wap-jgr-c99\"}\n" + "text": "{\"deleted_dashboard_id\":\"u4a-itq-xia\"}\n" }, "cookies": [], "headers": [ @@ -153,11 +153,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T18:44:47.537Z", - "time": 190 + "startedDateTime": "2023-10-24T18:32:09.809Z", + "time": 144 }, { - "_id": "217513125539305649fbe5723c37d7ec", + "_id": "1deff91fbcfe0bca1014fb15c070e7ac", "_order": 0, "cache": {}, "request": { @@ -174,7 +174,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/40778356-6866-11ee-812e-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a3e591c8-729b-11ee-bde6-da7ad0900002" }, "response": { "bodySize": 0, @@ -195,8 +195,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2023-10-11T18:44:47.736Z", - "time": 155 + "startedDateTime": "2023-10-24T18:32:09.958Z", + "time": 114 } ], "pages": [], diff --git a/cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/frozen.json b/cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/frozen.json index 82f146266586..e910fdc37759 100644 --- a/cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/frozen.json +++ b/cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/frozen.json @@ -1 +1 @@ -"2023-10-11T15:48:55.126Z" +"2023-10-24T18:32:10.926Z" diff --git a/cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/recording.har b/cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/recording.har index 77a20b82eb54..2e04607c825e 100644 --- a/cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/recording.har +++ b/cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "1771f1e36e4552aedd76a04be37cde22", + "_id": "1d4dfb5f9b41f2de006a6c00ad56ee60", "_order": 0, "cache": {}, "request": { - "bodySize": 446, + "bodySize": 463, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1697039335\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1698172330\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/powerpacks" }, "response": { - "bodySize": 740, + "bodySize": 786, "content": { "mimeType": "application/json", - "size": 740, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"aef5d85a-684d-11ee-ae79-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1697039335\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":5789473441337322}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 786, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a5892a4e-729b-11ee-8449-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1698172330\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":2803120731030485}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:55.131Z", - "time": 163 + "startedDateTime": "2023-10-24T18:32:11.621Z", + "time": 668 }, { - "_id": "39c20bcd9cd1a67be30353ef0a0bbccf", + "_id": "8ab5ac02cb058aafddf50ff80a57cc09", "_order": 0, "cache": {}, "request": { @@ -74,11 +74,11 @@ "value": "*/*" } ], - "headersSize": 533, + "headersSize": 532, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/aef5d85a-684d-11ee-ae79-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a5892a4e-729b-11ee-8449-da7ad0900002" }, "response": { "bodySize": 0, @@ -93,14 +93,14 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 638, + "headersSize": 639, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2023-10-11T15:48:55.314Z", - "time": 162 + "startedDateTime": "2023-10-24T18:32:12.300Z", + "time": 111 } ], "pages": [], diff --git a/cassettes/v2/Powerpack_1228731231/Delete-a-powerpack-returns-OK-response_251144999/frozen.json b/cassettes/v2/Powerpack_1228731231/Delete-a-powerpack-returns-OK-response_251144999/frozen.json index ed88d09cc003..5579c0e6a711 100644 --- a/cassettes/v2/Powerpack_1228731231/Delete-a-powerpack-returns-OK-response_251144999/frozen.json +++ b/cassettes/v2/Powerpack_1228731231/Delete-a-powerpack-returns-OK-response_251144999/frozen.json @@ -1 +1 @@ -"2023-10-11T15:48:55.488Z" +"2023-10-24T18:32:12.418Z" diff --git a/cassettes/v2/Powerpack_1228731231/Delete-a-powerpack-returns-OK-response_251144999/recording.har b/cassettes/v2/Powerpack_1228731231/Delete-a-powerpack-returns-OK-response_251144999/recording.har index 289fe4ed772b..7dbbb7be9089 100644 --- a/cassettes/v2/Powerpack_1228731231/Delete-a-powerpack-returns-OK-response_251144999/recording.har +++ b/cassettes/v2/Powerpack_1228731231/Delete-a-powerpack-returns-OK-response_251144999/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0cbf31f77c8ac3d24bd7f3d6e901a844", + "_id": "952bbc23771b155ab5b5c79c6c775163", "_order": 0, "cache": {}, "request": { - "bodySize": 442, + "bodySize": 459, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Delete_a_powerpack_returns_OK_response-1697039335\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Delete_a_powerpack_returns_OK_response-1698172332\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/powerpacks" }, "response": { - "bodySize": 736, + "bodySize": 782, "content": { "mimeType": "application/json", - "size": 736, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"af2eedc0-684d-11ee-bf6c-da7ad0900002\",\"attributes\":{\"name\":\"Test-Delete_a_powerpack_returns_OK_response-1697039335\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6052073873114005}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 782, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a5f45260-729b-11ee-a369-da7ad0900002\",\"attributes\":{\"name\":\"Test-Delete_a_powerpack_returns_OK_response-1698172332\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6498721107839400}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:55.497Z", - "time": 164 + "startedDateTime": "2023-10-24T18:32:12.422Z", + "time": 125 }, { - "_id": "00fd08096dc598d7d635f7aaf41a8ace", + "_id": "574e3e813993936709a9c02c7bcbc7da", "_order": 0, "cache": {}, "request": { @@ -78,7 +78,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/af2eedc0-684d-11ee-bf6c-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a5f45260-729b-11ee-a369-da7ad0900002" }, "response": { "bodySize": 0, @@ -93,17 +93,17 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 638, + "headersSize": 639, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2023-10-11T15:48:55.677Z", - "time": 137 + "startedDateTime": "2023-10-24T18:32:12.554Z", + "time": 102 }, { - "_id": "00fd08096dc598d7d635f7aaf41a8ace", + "_id": "574e3e813993936709a9c02c7bcbc7da", "_order": 1, "cache": {}, "request": { @@ -120,14 +120,14 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/af2eedc0-684d-11ee-bf6c-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a5f45260-729b-11ee-a369-da7ad0900002" }, "response": { "bodySize": 79, "content": { "mimeType": "application/json", "size": 79, - "text": "{\"errors\":[\"Powerpack with ID af2eedc0-684d-11ee-bf6c-da7ad0900002 not found\"]}" + "text": "{\"errors\":[\"Powerpack with ID a5f45260-729b-11ee-a369-da7ad0900002 not found\"]}" }, "cookies": [], "headers": [ @@ -136,14 +136,14 @@ "value": "application/json" } ], - "headersSize": 650, + "headersSize": 651, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2023-10-11T15:48:55.825Z", - "time": 137 + "startedDateTime": "2023-10-24T18:32:12.664Z", + "time": 91 } ], "pages": [], diff --git a/cassettes/v2/Powerpack_1228731231/Get-a-Powerpack-returns-OK-response_2470105774/frozen.json b/cassettes/v2/Powerpack_1228731231/Get-a-Powerpack-returns-OK-response_2470105774/frozen.json index 53368ca12c92..013913e4bffd 100644 --- a/cassettes/v2/Powerpack_1228731231/Get-a-Powerpack-returns-OK-response_2470105774/frozen.json +++ b/cassettes/v2/Powerpack_1228731231/Get-a-Powerpack-returns-OK-response_2470105774/frozen.json @@ -1 +1 @@ -"2023-10-11T15:48:56.104Z" +"2023-10-24T18:32:12.762Z" diff --git a/cassettes/v2/Powerpack_1228731231/Get-a-Powerpack-returns-OK-response_2470105774/recording.har b/cassettes/v2/Powerpack_1228731231/Get-a-Powerpack-returns-OK-response_2470105774/recording.har index b4a90c5a5f1b..c84a55979757 100644 --- a/cassettes/v2/Powerpack_1228731231/Get-a-Powerpack-returns-OK-response_2470105774/recording.har +++ b/cassettes/v2/Powerpack_1228731231/Get-a-Powerpack-returns-OK-response_2470105774/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "5cb3dde0dc00f97f0ccbf183838c8638", + "_id": "311d75066806a887909e812150ccade4", "_order": 0, "cache": {}, "request": { - "bodySize": 439, + "bodySize": 456, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1697039336\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1698172332\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/powerpacks" }, "response": { - "bodySize": 733, + "bodySize": 779, "content": { "mimeType": "application/json", - "size": 733, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"af8c8bc4-684d-11ee-ab74-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1697039336\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4673428095397965}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 779, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a62886de-729b-11ee-b0c9-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1698172332\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":1686767504601483}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:56.109Z", - "time": 185 + "startedDateTime": "2023-10-24T18:32:12.765Z", + "time": 119 }, { - "_id": "1d963c9933fc5925b3182e162df947a6", + "_id": "d0b99d6dbb28073862674ce39dc62cbb", "_order": 0, "cache": {}, "request": { @@ -78,14 +78,14 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/af8c8bc4-684d-11ee-ab74-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a62886de-729b-11ee-b0c9-da7ad0900002" }, "response": { - "bodySize": 733, + "bodySize": 779, "content": { "mimeType": "application/json", - "size": 733, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"af8c8bc4-684d-11ee-ab74-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1697039336\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4673428095397965}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 779, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a62886de-729b-11ee-b0c9-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1698172332\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":1686767504601483}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -94,17 +94,17 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:56.305Z", - "time": 116 + "startedDateTime": "2023-10-24T18:32:12.893Z", + "time": 73 }, { - "_id": "0cca47d63ac82d75b7773db410e83217", + "_id": "0f5629e05b53b83ebc06693bc8bb261c", "_order": 0, "cache": {}, "request": { @@ -121,7 +121,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/af8c8bc4-684d-11ee-ab74-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a62886de-729b-11ee-b0c9-da7ad0900002" }, "response": { "bodySize": 0, @@ -136,14 +136,14 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 638, + "headersSize": 639, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2023-10-11T15:48:56.436Z", - "time": 159 + "startedDateTime": "2023-10-24T18:32:12.979Z", + "time": 111 } ], "pages": [], diff --git a/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response-with-pagination_938093679/recording.har b/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response-with-pagination_938093679/recording.har index 4709e81e5bc9..c472a4d3f87e 100644 --- a/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response-with-pagination_938093679/recording.har +++ b/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response-with-pagination_938093679/recording.har @@ -7,59 +7,6 @@ "version": "6.0.5" }, "entries": [ - { - "_id": "466a2c39bb9eb6a0f89020532cc74b60", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 458, - "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": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Get_all_powerpacks_returns_OK_response_with_pagination-1697052278\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" - }, - "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks" - }, - "response": { - "bodySize": 752, - "content": { - "mimeType": "application/json", - "size": 752, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"d1938042-686b-11ee-9d56-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response_with_pagination-1697052278\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4216761608837044}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json" - } - ], - "headersSize": 652, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2023-10-11T19:24:38.032Z", - "time": 255 - }, { "_id": "36ccd05c3c7f423bd79009434ab3f6ba", "_order": 0, @@ -160,48 +107,6 @@ }, "startedDateTime": "2023-10-11T19:24:38.460Z", "time": 152 - }, - { - "_id": "22eddf03a04fbe78f806cf77fa887f8a", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "accept", - "value": "*/*" - } - ], - "headersSize": 533, - "httpVersion": "HTTP/1.1", - "method": "DELETE", - "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/d1938042-686b-11ee-9d56-da7ad0900002" - }, - "response": { - "bodySize": 0, - "content": { - "mimeType": "text/html; charset=utf-8", - "size": 0 - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "text/html; charset=utf-8" - } - ], - "headersSize": 639, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 204, - "statusText": "No Content" - }, - "startedDateTime": "2023-10-11T19:24:38.629Z", - "time": 163 } ], "pages": [], diff --git a/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response_2070215719/frozen.json b/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response_2070215719/frozen.json index 84a5abeb758e..b157adb3ef18 100644 --- a/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response_2070215719/frozen.json +++ b/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response_2070215719/frozen.json @@ -1 +1 @@ -"2023-10-11T15:48:56.720Z" +"2023-10-24T18:32:13.096Z" diff --git a/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response_2070215719/recording.har b/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response_2070215719/recording.har index 3a7802d10af3..388750b044dd 100644 --- a/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response_2070215719/recording.har +++ b/cassettes/v2/Powerpack_1228731231/Get-all-powerpacks-returns-OK-response_2070215719/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "bda36534fadd46f080b2a065c84b6c52", + "_id": "64742f979bc018a3fd20628713e566ab", "_order": 0, "cache": {}, "request": { - "bodySize": 442, + "bodySize": 459, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1697039336\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1698172333\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/powerpacks" }, "response": { - "bodySize": 736, + "bodySize": 782, "content": { "mimeType": "application/json", - "size": 736, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"afe8ae9a-684d-11ee-acaa-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1697039336\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":2076464251986187}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 782, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a65cae1e-729b-11ee-9a94-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1698172333\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8966066562910324}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -51,14 +51,14 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:56.723Z", - "time": 170 + "startedDateTime": "2023-10-24T18:32:13.100Z", + "time": 124 }, { "_id": "982d4ec6c25a37703ec71d06af23474b", @@ -88,11 +88,11 @@ "url": "https://api.datadoghq.com/api/v2/powerpacks?page%5Blimit%5D=1000" }, "response": { - "bodySize": 2392, + "bodySize": 2771, "content": { "mimeType": "application/json", - "size": 2392, - "text": "{\"data\":[{\"type\":\"powerpack\",\"id\":\"afe8ae9a-684d-11ee-acaa-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1697039336\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":2076464251986187}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"1de23daa-67a7-11ee-aeeb-da7ad0900002\",\"attributes\":{\"name\":\"\",\"description\":\"Powerpack for ABC!\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Powerpack Test\",\"type\":\"group\",\"widgets\":[]}},\"template_variables\":null,\"tags\":[]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"1aa44f4c-684d-11ee-a69d-da7ad0900002\",\"attributes\":{\"name\":\"\",\"description\":\"Powerpack for ABCD!\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Powerpack Test\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test notes\",\"type\":\"note\"},\"id\":2505594874009019}]}},\"template_variables\":null,\"tags\":[]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"17c331c8-67a6-11ee-bad7-da7ad0900002\",\"attributes\":{\"name\":\"\",\"description\":\"Powerpack for ABC!\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Powerpack Test\",\"type\":\"group\",\"widgets\":[]}},\"template_variables\":null,\"tags\":[]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}}],\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}],\"meta\":{\"pagination\":{\"offset\":0,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":1000,\"last_offset\":null,\"limit\":1000,\"type\":\"offset_limit\"}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/powerpacks?page%5Blimit%5D=1000\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=1000&page[limit]=1000\",\"prev\":null,\"first\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=0&page[limit]=1000\"}}\n" + "size": 2771, + "text": "{\"data\":[{\"type\":\"powerpack\",\"id\":\"cabb74fa-686b-11ee-8326-da7ad0900002\",\"attributes\":{\"name\":\"another powerpack\",\"description\":\"\",\"group_widget\":{\"layout\":{\"x\":0,\"y\":0,\"width\":4,\"height\":3},\"definition\":{\"title\":\"another powerpack\",\"type\":\"group\",\"layout_type\":\"ordered\",\"widgets\":[{\"layout\":{\"x\":0,\"y\":0,\"width\":2,\"height\":2},\"definition\":{\"type\":\"note\",\"content\":\"its just a ***test***\",\"background_color\":\"white\",\"font_size\":\"36\",\"text_align\":\"center\",\"vertical_align\":\"center\",\"show_tick\":false,\"tick_pos\":\"50%\",\"tick_edge\":\"left\",\"has_padding\":true},\"id\":2265811261450092}]}},\"template_variables\":[],\"tags\":[\"tag:display\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"d5bf7f0a-19b0-11ed-b0df-da7ad0900002\"}}}},{\"type\":\"powerpack\",\"id\":\"a65cae1e-729b-11ee-9a94-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1698172333\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8966066562910324}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},{\"type\":\"powerpack\",\"id\":\"66a92bf4-7209-11ee-af46-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Test Powerpack 2\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"event_size\":\"l\",\"query\":\"*\",\"title\":\"Widget Title\",\"title_align\":\"right\",\"title_size\":\"16\",\"type\":\"event_stream\"},\"id\":5277269296927835}]}},\"template_variables\":[{\"defaults\":[\"defaults\"],\"name\":\"datacenter\"}],\"tags\":[\"tag:foo1\",\"tag:foo2\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}}],\"included\":[{\"type\":\"users\",\"id\":\"d5bf7f0a-19b0-11ed-b0df-da7ad0900002\",\"attributes\":{\"name\":\"Kevin Zou\",\"email\":\"kevin.zou@datadoghq.com\"}},{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}},{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}],\"meta\":{\"pagination\":{\"offset\":0,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":1000,\"last_offset\":null,\"limit\":1000,\"type\":\"offset_limit\"}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/powerpacks?page%5Blimit%5D=1000\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=1000&page[limit]=1000\",\"prev\":null,\"first\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=0&page[limit]=1000\"}}\n" }, "cookies": [], "headers": [ @@ -101,17 +101,17 @@ "value": "application/json" } ], - "headersSize": 652, + "headersSize": 653, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:56.908Z", - "time": 106 + "startedDateTime": "2023-10-24T18:32:13.232Z", + "time": 70 }, { - "_id": "7363a75c03d8aec039d77d135e66f7a4", + "_id": "16cda7d0750a623416006dce58ece8c9", "_order": 0, "cache": {}, "request": { @@ -128,7 +128,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/afe8ae9a-684d-11ee-acaa-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a65cae1e-729b-11ee-9a94-da7ad0900002" }, "response": { "bodySize": 0, @@ -143,14 +143,14 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 638, + "headersSize": 639, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2023-10-11T15:48:57.040Z", - "time": 134 + "startedDateTime": "2023-10-24T18:32:13.317Z", + "time": 100 } ], "pages": [], diff --git a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Bad-Request-response_586940549/frozen.json b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Bad-Request-response_586940549/frozen.json index 011d59c5a269..0accb33a67b4 100644 --- a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Bad-Request-response_586940549/frozen.json +++ b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Bad-Request-response_586940549/frozen.json @@ -1 +1 @@ -"2023-10-11T15:48:57.189Z" +"2023-10-24T18:32:13.426Z" diff --git a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Bad-Request-response_586940549/recording.har b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Bad-Request-response_586940549/recording.har index 045b7750c08b..6a49bec0481b 100644 --- a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Bad-Request-response_586940549/recording.har +++ b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Bad-Request-response_586940549/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "7cd885028616bc61728d28a195216bac", + "_id": "b740b332f7dccce0fa348de10753446a", "_order": 0, "cache": {}, "request": { - "bodySize": 451, + "bodySize": 468, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Update_a_powerpack_returns_Bad_Request_response-1697039337\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Update_a_powerpack_returns_Bad_Request_response-1698172333\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/powerpacks" }, "response": { - "bodySize": 745, + "bodySize": 791, "content": { "mimeType": "application/json", - "size": 745, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"b030a42a-684d-11ee-ad9a-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_Bad_Request_response-1697039337\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8452824404539211}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 791, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a68dc724-729b-11ee-aa5b-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_Bad_Request_response-1698172333\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":3206637304594094}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:57.196Z", - "time": 159 + "startedDateTime": "2023-10-24T18:32:13.429Z", + "time": 134 }, { - "_id": "fe5eeecc692536f575aa01d8e732a976", + "_id": "175d4f7b09b2b4e609e296097e459ed3", "_order": 0, "cache": {}, "request": { @@ -88,7 +88,7 @@ "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"type\":\"group1\",\"widgets\":[]}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/b030a42a-684d-11ee-ad9a-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a68dc724-729b-11ee-aa5b-da7ad0900002" }, "response": { "bodySize": 215, @@ -104,17 +104,17 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2023-10-11T15:48:57.364Z", - "time": 127 + "startedDateTime": "2023-10-24T18:32:13.569Z", + "time": 88 }, { - "_id": "da8999f12146a4056716fc5f27b550be", + "_id": "8f8fdb413f6947658367b0cca7b01b0b", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/b030a42a-684d-11ee-ad9a-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a68dc724-729b-11ee-aa5b-da7ad0900002" }, "response": { "bodySize": 0, @@ -146,14 +146,14 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 638, + "headersSize": 639, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2023-10-11T15:48:57.502Z", - "time": 152 + "startedDateTime": "2023-10-24T18:32:13.663Z", + "time": 108 } ], "pages": [], diff --git a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-OK-response_3567693849/frozen.json b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-OK-response_3567693849/frozen.json index c83c5e57e862..f5d210fbe616 100644 --- a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-OK-response_3567693849/frozen.json +++ b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-OK-response_3567693849/frozen.json @@ -1 +1 @@ -"2023-10-11T15:48:57.662Z" +"2023-10-24T18:32:13.775Z" diff --git a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-OK-response_3567693849/recording.har b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-OK-response_3567693849/recording.har index 4d7df33d8e1f..2627e4d103b7 100644 --- a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-OK-response_3567693849/recording.har +++ b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-OK-response_3567693849/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "04c9ca47655ae8d58adced3569e592aa", + "_id": "56d716b39027afd92ab5acae8b15f3c6", "_order": 0, "cache": {}, "request": { - "bodySize": 442, + "bodySize": 459, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Update_a_powerpack_returns_OK_response-1697039337\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Update_a_powerpack_returns_OK_response-1698172333\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/powerpacks" }, "response": { - "bodySize": 736, + "bodySize": 782, "content": { "mimeType": "application/json", - "size": 736, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"b07d6fa8-684d-11ee-ac91-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_OK_response-1697039337\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8154966623549713}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 782, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a6d282b0-729b-11ee-a89e-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_OK_response-1698172333\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4388958017557503}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -51,21 +51,21 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:57.679Z", - "time": 177 + "startedDateTime": "2023-10-24T18:32:13.778Z", + "time": 222 }, { - "_id": "da12a2c74e5f0609675b8c677f966f56", + "_id": "d106eefa3549434e5e1f6387dad1d8de", "_order": 0, "cache": {}, "request": { - "bodySize": 442, + "bodySize": 459, "cookies": [], "headers": [ { @@ -85,17 +85,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Update_a_powerpack_returns_OK_response-1697039337\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Update_a_powerpack_returns_OK_response-1698172333\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/b07d6fa8-684d-11ee-ac91-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a6d282b0-729b-11ee-a89e-da7ad0900002" }, "response": { - "bodySize": 736, + "bodySize": 782, "content": { "mimeType": "application/json", - "size": 736, - "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"b07d6fa8-684d-11ee-ac91-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_OK_response-1697039337\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":5980827967005331}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n" + "size": 782, + "text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a6d282b0-729b-11ee-a89e-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_OK_response-1698172333\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":3224344873217279}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/json" } ], - "headersSize": 651, + "headersSize": 652, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-10-11T15:48:57.866Z", - "time": 151 + "startedDateTime": "2023-10-24T18:32:14.034Z", + "time": 108 }, { - "_id": "74ee8d4634c935b5a5e1071070edd45f", + "_id": "0bcb039e4cfeaeb1263a46b4577b46a5", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/powerpacks/b07d6fa8-684d-11ee-ac91-da7ad0900002" + "url": "https://api.datadoghq.com/api/v2/powerpacks/a6d282b0-729b-11ee-a89e-da7ad0900002" }, "response": { "bodySize": 0, @@ -146,14 +146,14 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 638, + "headersSize": 639, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 204, "statusText": "No Content" }, - "startedDateTime": "2023-10-11T15:48:58.029Z", - "time": 141 + "startedDateTime": "2023-10-24T18:32:14.152Z", + "time": 122 } ], "pages": [], diff --git a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Powerpack-Not-Found-response_702597406/frozen.json b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Powerpack-Not-Found-response_702597406/frozen.json index e002a28a0ded..704f0bb14491 100644 --- a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Powerpack-Not-Found-response_702597406/frozen.json +++ b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Powerpack-Not-Found-response_702597406/frozen.json @@ -1 +1 @@ -"2023-10-11T15:48:58.181Z" +"2023-10-24T18:32:14.282Z" diff --git a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Powerpack-Not-Found-response_702597406/recording.har b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Powerpack-Not-Found-response_702597406/recording.har index 957d1c32d14a..95b3d7a29e76 100644 --- a/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Powerpack-Not-Found-response_702597406/recording.har +++ b/cassettes/v2/Powerpack_1228731231/Update-a-powerpack-returns-Powerpack-Not-Found-response_702597406/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "5187ec6464055b14ac1ad2477dcbf59d", + "_id": "e977b2000ed2b11f00a21ac91134772b", "_order": 0, "cache": {}, "request": { - "bodySize": 459, + "bodySize": 476, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Update_a_powerpack_returns_Powerpack_Not_Found_response-1697039338\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Update_a_powerpack_returns_Powerpack_Not_Found_response-1698172334\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/powerpacks/made-up-id" @@ -51,14 +51,14 @@ "value": "application/json" } ], - "headersSize": 650, + "headersSize": 651, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2023-10-11T15:48:58.189Z", - "time": 101 + "startedDateTime": "2023-10-24T18:32:14.285Z", + "time": 72 } ], "pages": [], diff --git a/examples/v2/powerpack/CreatePowerpack.ts b/examples/v2/powerpack/CreatePowerpack.ts index 3bace49ab543..8bad53bb2896 100644 --- a/examples/v2/powerpack/CreatePowerpack.ts +++ b/examples/v2/powerpack/CreatePowerpack.ts @@ -33,6 +33,7 @@ const params: v2.PowerpackApiCreatePowerpackRequest = { x: 0, y: 0, }, + liveSpan: "1h", }, name: "Example-Powerpack", tags: ["tag:sample"], diff --git a/examples/v2/powerpack/UpdatePowerpack.ts b/examples/v2/powerpack/UpdatePowerpack.ts index 2c8d49c906ae..98a17d51b919 100644 --- a/examples/v2/powerpack/UpdatePowerpack.ts +++ b/examples/v2/powerpack/UpdatePowerpack.ts @@ -36,6 +36,7 @@ const params: v2.PowerpackApiUpdatePowerpackRequest = { x: 0, y: 0, }, + liveSpan: "1h", }, name: "Example-Powerpack", tags: ["tag:sample"], diff --git a/features/v2/given.json b/features/v2/given.json index 408165d35997..e5b00be81398 100644 --- a/features/v2/given.json +++ b/features/v2/given.json @@ -310,7 +310,7 @@ "parameters": [ { "name": "body", - "value": "{\n \"data\": {\n \"attributes\": {\n \"description\": \"Sample powerpack\",\n \"group_widget\": {\n \"definition\": {\n \"layout_type\": \"ordered\",\n \"show_title\": true,\n \"title\": \"Sample Powerpack\",\n \"type\": \"group\",\n \"widgets\": [\n {\n \"definition\": {\n \"content\": \"test\",\n \"type\": \"note\"\n }\n }\n ]\n },\n \"layout\": {\n \"height\": 3,\n \"width\": 12,\n \"x\": 0,\n \"y\": 0\n }\n },\n \"name\": \"{{ unique }}\",\n \"tags\": [\n \"tag:sample\"\n ],\n \"template_variables\": [\n {\n \"defaults\": [\n \"*\"\n ],\n \"name\": \"sample\"\n }\n ]\n },\n \"type\": \"powerpack\"\n }\n}" + "value": "{\n \"data\": {\n \"attributes\": {\n \"description\": \"Sample powerpack\",\n \"group_widget\": {\n \"definition\": {\n \"layout_type\": \"ordered\",\n \"show_title\": true,\n \"title\": \"Sample Powerpack\",\n \"type\": \"group\",\n \"widgets\": [\n {\n \"definition\": {\n \"content\": \"test\",\n \"type\": \"note\"\n }\n }\n ]\n },\n \"layout\": {\n \"height\": 3,\n \"width\": 12,\n \"x\": 0,\n \"y\": 0\n },\n \"live_span\": \"1h\"\n },\n \"name\": \"{{ unique }}\",\n \"tags\": [\n \"tag:sample\"\n ],\n \"template_variables\": [\n {\n \"defaults\": [\n \"*\"\n ],\n \"name\": \"sample\"\n }\n ]\n },\n \"type\": \"powerpack\"\n }\n}" } ], "step": "there is a valid \"powerpack\" in the system", diff --git a/features/v2/powerpack.feature b/features/v2/powerpack.feature index 2f622ef3494b..b6d4b770129c 100644 --- a/features/v2/powerpack.feature +++ b/features/v2/powerpack.feature @@ -110,8 +110,7 @@ Feature: Powerpack @replay-only @skip-validation @team:DataDog/dashboards-backend @with-pagination Scenario: Get all powerpacks returns "OK" response with pagination - Given there is a valid "powerpack" in the system - And new "ListPowerpacks" request + Given new "ListPowerpacks" request And request contains "page[limit]" parameter with value 2 When the request with pagination is sent Then the response status is 200 OK diff --git a/features/v2/powerpack_payload.json b/features/v2/powerpack_payload.json index 32e53416a9ae..741678957052 100644 --- a/features/v2/powerpack_payload.json +++ b/features/v2/powerpack_payload.json @@ -22,7 +22,8 @@ "width": 12, "x": 0, "y": 0 - } + }, + "live_span": "1h" }, "name": "{{ unique }}", "tags": [ diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index a2cd192791be..c73f28942c9c 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -1591,5 +1591,6 @@ export { UserTeamUserType } from "./models/UserTeamUserType"; export { UserUpdateAttributes } from "./models/UserUpdateAttributes"; export { UserUpdateData } from "./models/UserUpdateData"; export { UserUpdateRequest } from "./models/UserUpdateRequest"; +export { WidgetLiveSpan } from "./models/WidgetLiveSpan"; export { ObjectSerializer } from "./models/ObjectSerializer"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index ee4fdd5009f2..b2eb3ec8c069 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -1416,6 +1416,23 @@ const enumsMap: { [key: string]: any[] } = { UserTeamType: ["team_memberships"], UserTeamUserType: ["users"], UsersType: ["users"], + WidgetLiveSpan: [ + "1m", + "5m", + "10m", + "15m", + "30m", + "1h", + "4h", + "1d", + "2d", + "1w", + "1mo", + "3mo", + "6mo", + "1y", + "alert", + ], }; const typeMap: { [index: string]: any } = { diff --git a/packages/datadog-api-client-v2/models/PowerpackGroupWidget.ts b/packages/datadog-api-client-v2/models/PowerpackGroupWidget.ts index 20646fcea934..568e51dcf457 100644 --- a/packages/datadog-api-client-v2/models/PowerpackGroupWidget.ts +++ b/packages/datadog-api-client-v2/models/PowerpackGroupWidget.ts @@ -5,6 +5,7 @@ */ import { PowerpackGroupWidgetDefinition } from "./PowerpackGroupWidgetDefinition"; import { PowerpackGroupWidgetLayout } from "./PowerpackGroupWidgetLayout"; +import { WidgetLiveSpan } from "./WidgetLiveSpan"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -20,6 +21,10 @@ export class PowerpackGroupWidget { * Powerpack group widget layout. */ "layout"?: PowerpackGroupWidgetLayout; + /** + * The available timeframes depend on the widget you are using. + */ + "liveSpan"?: WidgetLiveSpan; /** * @ignore @@ -39,6 +44,10 @@ export class PowerpackGroupWidget { baseName: "layout", type: "PowerpackGroupWidgetLayout", }, + liveSpan: { + baseName: "live_span", + type: "WidgetLiveSpan", + }, }; /** diff --git a/packages/datadog-api-client-v2/models/WidgetLiveSpan.ts b/packages/datadog-api-client-v2/models/WidgetLiveSpan.ts new file mode 100644 index 000000000000..c4ecefc756bc --- /dev/null +++ b/packages/datadog-api-client-v2/models/WidgetLiveSpan.ts @@ -0,0 +1,44 @@ +/** + * 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 { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * The available timeframes depend on the widget you are using. + */ + +export type WidgetLiveSpan = + | typeof PAST_ONE_MINUTE + | typeof PAST_FIVE_MINUTES + | typeof PAST_TEN_MINUTES + | typeof PAST_FIFTEEN_MINUTES + | typeof PAST_THIRTY_MINUTES + | typeof PAST_ONE_HOUR + | typeof PAST_FOUR_HOURS + | typeof PAST_ONE_DAY + | typeof PAST_TWO_DAYS + | typeof PAST_ONE_WEEK + | typeof PAST_ONE_MONTH + | typeof PAST_THREE_MONTHS + | typeof PAST_SIX_MONTHS + | typeof PAST_ONE_YEAR + | typeof ALERT + | UnparsedObject; +export const PAST_ONE_MINUTE = "1m"; +export const PAST_FIVE_MINUTES = "5m"; +export const PAST_TEN_MINUTES = "10m"; +export const PAST_FIFTEEN_MINUTES = "15m"; +export const PAST_THIRTY_MINUTES = "30m"; +export const PAST_ONE_HOUR = "1h"; +export const PAST_FOUR_HOURS = "4h"; +export const PAST_ONE_DAY = "1d"; +export const PAST_TWO_DAYS = "2d"; +export const PAST_ONE_WEEK = "1w"; +export const PAST_ONE_MONTH = "1mo"; +export const PAST_THREE_MONTHS = "3mo"; +export const PAST_SIX_MONTHS = "6mo"; +export const PAST_ONE_YEAR = "1y"; +export const ALERT = "alert";