diff --git a/.apigentools-info b/.apigentools-info index 8bebcc0ac66..a7115837371 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-11-14 19:25:53.826679", - "spec_repo_commit": "03f60dd8" + "regenerated": "2024-11-15 19:35:12.585262", + "spec_repo_commit": "ad80112e" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-11-14 19:25:53.845577", - "spec_repo_commit": "03f60dd8" + "regenerated": "2024-11-15 19:35:12.605121", + "spec_repo_commit": "ad80112e" } } } \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats_query.freeze b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats_query.freeze index 31af4c83ecd..05088712880 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats_query.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats_query.freeze @@ -1 +1 @@ -2024-11-14T19:12:06.088Z \ No newline at end of file +2024-11-15T19:32:26.867Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats_query.json b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats_query.json index f08c9b6eed3..15a1f5563b6 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats_query.json +++ b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats_query.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats-1731611526\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"apm_resource_stats\",\"env\":\"staging\",\"group_by\":[\"resource_name\"],\"name\":\"query1\",\"operation_name\":\"universal.http.client\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"*\",\"service\":\"azure-bill-import\",\"stat\":\"latency_distribution\"},\"request_type\":\"histogram\",\"style\":{\"palette\":\"dog_classic\"}}],\"show_legend\":false,\"title\":\"APM Stats - Request latency HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":8,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats-1731699146\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"apm_resource_stats\",\"env\":\"staging\",\"group_by\":[\"resource_name\"],\"name\":\"query1\",\"operation_name\":\"universal.http.client\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"*\",\"service\":\"azure-bill-import\",\"stat\":\"latency_distribution\"},\"request_type\":\"histogram\",\"style\":{\"palette\":\"dog_classic\"}}],\"show_legend\":false,\"title\":\"APM Stats - Request latency HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":8,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"nsh-v4v-nmq\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats-1731611526\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/nsh-v4v-nmq/test-createadistributionwidgetusingahistogramrequestcontainingaformulasandfuncti\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"apm_resource_stats\",\"env\":\"staging\",\"group_by\":[\"resource_name\"],\"name\":\"query1\",\"operation_name\":\"universal.http.client\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"*\",\"service\":\"azure-bill-import\",\"stat\":\"latency_distribution\"},\"request_type\":\"histogram\",\"style\":{\"palette\":\"dog_classic\"}}],\"show_legend\":false,\"title\":\"APM Stats - Request latency HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":8,\"y\":0},\"id\":772521511524027}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:06.311354+00:00\",\"modified_at\":\"2024-11-14T19:12:06.311354+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"cp9-wz6-rpj\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_APM_Stats-1731699146\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/cp9-wz6-rpj/test-createadistributionwidgetusingahistogramrequestcontainingaformulasandfuncti\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"apm_resource_stats\",\"env\":\"staging\",\"group_by\":[\"resource_name\"],\"name\":\"query1\",\"operation_name\":\"universal.http.client\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"*\",\"service\":\"azure-bill-import\",\"stat\":\"latency_distribution\"},\"request_type\":\"histogram\",\"style\":{\"palette\":\"dog_classic\"}}],\"show_legend\":false,\"title\":\"APM Stats - Request latency HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":8,\"y\":0},\"id\":4972373445820650}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:27.081537+00:00\",\"modified_at\":\"2024-11-15T19:32:27.081537+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "28e16e68-c870-7534-9fde-6a749b582718" + "id": "9ea0c9b8-ef75-cf95-f82f-0d64eba2e0a7" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/nsh-v4v-nmq", + "path": "/api/v1/dashboard/cp9-wz6-rpj", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"nsh-v4v-nmq\"}\n", + "body": "{\"deleted_dashboard_id\":\"cp9-wz6-rpj\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "4d36da88-748e-bbde-caac-800bd3ff84bd" + "id": "fdcc8758-5f0f-e937-54f9-fe496da2bf14" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_query.freeze b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_query.freeze index 52ebe1608c5..c35a420f434 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_query.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_query.freeze @@ -1 +1 @@ -2024-11-14T19:12:06.617Z \ No newline at end of file +2024-11-15T19:32:27.384Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_query.json b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_query.json index 3811cb7942f..425ce9c18ee 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_query.json +++ b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_query.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_qu-1731611526\",\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_qu-1731611526\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"compute\":{\"aggregation\":\"min\",\"metric\":\"@duration\"},\"data_source\":\"events\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}},\"request_type\":\"histogram\"}],\"show_legend\":false,\"title\":\"Events Platform - Request latency HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_qu-1731699147\",\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_qu-1731699147\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"compute\":{\"aggregation\":\"min\",\"metric\":\"@duration\"},\"data_source\":\"events\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}},\"request_type\":\"histogram\"}],\"show_legend\":false,\"title\":\"Events Platform - Request latency HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"tys-evq-k25\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_qu-1731611526\",\"description\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_qu-1731611526\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/tys-evq-k25/test-createadistributionwidgetusingahistogramrequestcontainingaformulasandfuncti\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"compute\":{\"aggregation\":\"min\",\"metric\":\"@duration\"},\"data_source\":\"events\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}},\"request_type\":\"histogram\"}],\"show_legend\":false,\"title\":\"Events Platform - Request latency HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0},\"id\":1505752567613231}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:06.799728+00:00\",\"modified_at\":\"2024-11-14T19:12:06.799728+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"p6k-cxc-g8m\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_qu-1731699147\",\"description\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_events_qu-1731699147\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/p6k-cxc-g8m/test-createadistributionwidgetusingahistogramrequestcontainingaformulasandfuncti\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"compute\":{\"aggregation\":\"min\",\"metric\":\"@duration\"},\"data_source\":\"events\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}},\"request_type\":\"histogram\"}],\"show_legend\":false,\"title\":\"Events Platform - Request latency HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0},\"id\":8624507873468872}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:27.570354+00:00\",\"modified_at\":\"2024-11-15T19:32:27.570354+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "43f830f6-04ed-fa77-6ddc-5a33ba5c6f42" + "id": "fc9281f9-09ee-c892-6ea8-7538fc72a6c3" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/tys-evq-k25", + "path": "/api/v1/dashboard/p6k-cxc-g8m", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"tys-evq-k25\"}\n", + "body": "{\"deleted_dashboard_id\":\"p6k-cxc-g8m\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "cc101bef-d271-3c62-2fea-b369975c7eb5" + "id": "a03eda53-3a64-d4ff-e0f3-e68aa7fffbb1" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_query.freeze b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_query.freeze index 490466ea238..5c9f910cad7 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_query.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_query.freeze @@ -1 +1 @@ -2024-11-14T19:12:07.115Z \ No newline at end of file +2024-11-15T19:32:27.923Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_query.json b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_query.json index 77ba22315df..74e17bc5919 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_query.json +++ b/src/test/resources/cassettes/features/v1/Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_query.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_q-1731611527\",\"widgets\":[{\"definition\":{\"custom_links\":[{\"label\":\"Example\",\"link\":\"https://example.org/\"}],\"requests\":[{\"query\":{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"histogram:trace.Load{*}\"},\"request_type\":\"histogram\",\"style\":{\"palette\":\"dog_classic\"}}],\"show_legend\":false,\"title\":\"Metrics HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_q-1731699147\",\"widgets\":[{\"definition\":{\"custom_links\":[{\"label\":\"Example\",\"link\":\"https://example.org/\"}],\"requests\":[{\"query\":{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"histogram:trace.Load{*}\"},\"request_type\":\"histogram\",\"style\":{\"palette\":\"dog_classic\"}}],\"show_legend\":false,\"title\":\"Metrics HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"2fs-dz8-tdz\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_q-1731611527\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/2fs-dz8-tdz/test-createadistributionwidgetusingahistogramrequestcontainingaformulasandfuncti\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"custom_links\":[{\"label\":\"Example\",\"link\":\"https://example.org/\"}],\"requests\":[{\"query\":{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"histogram:trace.Load{*}\"},\"request_type\":\"histogram\",\"style\":{\"palette\":\"dog_classic\"}}],\"show_legend\":false,\"title\":\"Metrics HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0},\"id\":1403016087327739}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:07.286820+00:00\",\"modified_at\":\"2024-11-14T19:12:07.286820+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"ydy-5hn-vib\",\"title\":\"Test-Create_a_distribution_widget_using_a_histogram_request_containing_a_formulas_and_functions_metrics_q-1731699147\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/ydy-5hn-vib/test-createadistributionwidgetusingahistogramrequestcontainingaformulasandfuncti\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"custom_links\":[{\"label\":\"Example\",\"link\":\"https://example.org/\"}],\"requests\":[{\"query\":{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"histogram:trace.Load{*}\"},\"request_type\":\"histogram\",\"style\":{\"palette\":\"dog_classic\"}}],\"show_legend\":false,\"title\":\"Metrics HOP\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0},\"id\":4914950205969851}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:28.073069+00:00\",\"modified_at\":\"2024-11-15T19:32:28.073069+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "e75e99b8-2cf7-6212-f1f7-13520bc5c078" + "id": "91abe059-c342-79ac-55c5-253c74248ec9" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/2fs-dz8-tdz", + "path": "/api/v1/dashboard/ydy-5hn-vib", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"2fs-dz8-tdz\"}\n", + "body": "{\"deleted_dashboard_id\":\"ydy-5hn-vib\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "4e0874dc-4906-2226-be95-61304d3cafcb" + "id": "cb463e8f-f29b-a3c6-3bb1-a7a56f2ea2a0" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_geomap_widget_using_an_event_list_request.freeze b/src/test/resources/cassettes/features/v1/Create_a_geomap_widget_using_an_event_list_request.freeze index 8976ffd6ff6..de72b0e4918 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_geomap_widget_using_an_event_list_request.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_geomap_widget_using_an_event_list_request.freeze @@ -1 +1 @@ -2024-11-14T19:12:07.559Z \ No newline at end of file +2024-11-15T19:32:28.361Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_geomap_widget_using_an_event_list_request.json b/src/test/resources/cassettes/features/v1/Create_a_geomap_widget_using_an_event_list_request.json index e00c94c104e..6f509372b3b 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_geomap_widget_using_an_event_list_request.json +++ b/src/test/resources/cassettes/features/v1/Create_a_geomap_widget_using_an_event_list_request.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"Test-Create_a_geomap_widget_using_an_event_list_request-1731611527\",\"layout_type\":\"ordered\",\"notify_list\":[],\"reflow_type\":\"fixed\",\"tags\":[],\"template_variables\":[],\"title\":\"Test-Create_a_geomap_widget_using_an_event_list_request-1731611527\",\"widgets\":[{\"definition\":{\"requests\":[{\"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\"},{\"field\":\"classic\",\"width\":\"auto\"},{\"field\":\"\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"indexes\":[],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"geomap\",\"view\":{\"focus\":\"WORLD\"}},\"layout\":{\"height\":6,\"width\":12,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"Test-Create_a_geomap_widget_using_an_event_list_request-1731699148\",\"layout_type\":\"ordered\",\"notify_list\":[],\"reflow_type\":\"fixed\",\"tags\":[],\"template_variables\":[],\"title\":\"Test-Create_a_geomap_widget_using_an_event_list_request-1731699148\",\"widgets\":[{\"definition\":{\"requests\":[{\"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\"},{\"field\":\"classic\",\"width\":\"auto\"},{\"field\":\"\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"indexes\":[],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"geomap\",\"view\":{\"focus\":\"WORLD\"}},\"layout\":{\"height\":6,\"width\":12,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"kfv-qnp-4tg\",\"title\":\"Test-Create_a_geomap_widget_using_an_event_list_request-1731611527\",\"description\":\"Test-Create_a_geomap_widget_using_an_event_list_request-1731611527\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/kfv-qnp-4tg/test-createageomapwidgetusinganeventlistrequest-1731611527\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"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\"},{\"field\":\"classic\",\"width\":\"auto\"},{\"field\":\"\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"indexes\":[],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"geomap\",\"view\":{\"focus\":\"WORLD\"}},\"layout\":{\"height\":6,\"width\":12,\"x\":0,\"y\":0},\"id\":4347700758144484}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:07.732619+00:00\",\"modified_at\":\"2024-11-14T19:12:07.732619+00:00\",\"reflow_type\":\"fixed\",\"tags\":[],\"restricted_roles\":[]}\n", + "body": "{\"id\":\"85y-teg-6gs\",\"title\":\"Test-Create_a_geomap_widget_using_an_event_list_request-1731699148\",\"description\":\"Test-Create_a_geomap_widget_using_an_event_list_request-1731699148\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/85y-teg-6gs/test-createageomapwidgetusinganeventlistrequest-1731699148\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"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\"},{\"field\":\"classic\",\"width\":\"auto\"},{\"field\":\"\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"indexes\":[],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"geomap\",\"view\":{\"focus\":\"WORLD\"}},\"layout\":{\"height\":6,\"width\":12,\"x\":0,\"y\":0},\"id\":303965122186527}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:28.542191+00:00\",\"modified_at\":\"2024-11-15T19:32:28.542191+00:00\",\"reflow_type\":\"fixed\",\"tags\":[],\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "b95c9a73-62c4-0c04-47ec-ece9c2d2c8e0" + "id": "47d12f40-94aa-076f-795d-5df55853d478" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/kfv-qnp-4tg", + "path": "/api/v1/dashboard/85y-teg-6gs", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"kfv-qnp-4tg\"}\n", + "body": "{\"deleted_dashboard_id\":\"85y-teg-6gs\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "b72f57da-f5b9-eafa-1e5c-0ff4d154ce78" + "id": "74648b78-2554-d1fb-22b3-0eed73e8bc72" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_returns_OK_response.freeze index 8380ebf006a..051d55a1d49 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:07.994Z \ No newline at end of file +2024-11-15T19:32:29.001Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_returns_OK_response.json index 2871dfa0998..d295619fafb 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_returns_OK_response-1731611527 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_returns_OK_response-1731699149 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"ffs-qse-3ra\",\"title\":\"Test-Create_a_new_dashboard_returns_OK_response-1731611527 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/ffs-qse-3ra/test-createanewdashboardreturnsokresponse-1731611527-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":2619247057532237}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:08.172934+00:00\",\"modified_at\":\"2024-11-14T19:12:08.172934+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"8a5-8x9-spj\",\"title\":\"Test-Create_a_new_dashboard_returns_OK_response-1731699149 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/8a5-8x9-spj/test-createanewdashboardreturnsokresponse-1731699149-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":4674703282750231}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:29.171735+00:00\",\"modified_at\":\"2024-11-15T19:32:29.171735+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "326f6618-cf73-d453-5a73-f6ef0fa1ff3a" + "id": "bf4da252-aff4-45fa-db4b-cf82ccc1fb5a" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/ffs-qse-3ra", + "path": "/api/v1/dashboard/8a5-8x9-spj", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"ffs-qse-3ra\"}\n", + "body": "{\"deleted_dashboard_id\":\"8a5-8x9-spj\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "352052ac-1938-006b-b8a9-c6c680a5e072" + "id": "655e1f62-cf6f-a6cc-4810-a792a767fa23" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query.freeze index caa7b658f45..f0b9b61547b 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query.freeze @@ -1 +1 @@ -2024-11-14T19:12:08.436Z \ No newline at end of file +2024-11-15T19:32:29.446Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query.json index 1b89103bfb6..0182fffb08a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"name\": \"Test-Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query-1731611528\", \"query\": {\"denominator\": \"sum:httpservice.hits{!code:3xx}.as_count()\", \"numerator\": \"sum:httpservice.hits{code:2xx}.as_count()\"}, \"thresholds\": [{\"target\": 95.0, \"timeframe\": \"7d\", \"warning\": 98.0}], \"type\": \"metric\"}" + "json": "{\"name\": \"Test-Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query-1731699149\", \"query\": {\"denominator\": \"sum:httpservice.hits{!code:3xx}.as_count()\", \"numerator\": \"sum:httpservice.hits{code:2xx}.as_count()\"}, \"thresholds\": [{\"target\": 95.0, \"timeframe\": \"7d\", \"warning\": 98.0}], \"type\": \"metric\"}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":[{\"id\":\"d0ead38560c15643877e9feee728bed5\",\"name\":\"Test-Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query-1731611528\",\"tags\":[],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":95.0,\"target_display\":\"95.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":95,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"creator\":{\"name\":\"Anika Maskara\",\"handle\":\"anika.maskara@datadoghq.com\",\"email\":\"anika.maskara@datadoghq.com\"},\"created_at\":1731611528,\"modified_at\":1731611528}],\"error\":null}\n", + "body": "{\"data\":[{\"id\":\"425d71bc3445599f92d7c3848731d220\",\"name\":\"Test-Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query-1731699149\",\"tags\":[],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":95.0,\"target_display\":\"95.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":95,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"},\"created_at\":1731699149,\"modified_at\":1731699149}],\"error\":null}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "7e54f2a9-9652-b003-8b71-3b66b886bc94" + "id": "19f2de3a-2c1f-d90e-b427-4a15e1c98ed9" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query-1731611528\",\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"asc\",\"queries\":[{\"additional_query_filters\":\"*\",\"data_source\":\"slo\",\"group_mode\":\"overall\",\"measure\":\"slo_status\",\"name\":\"query1\",\"slo_id\":\"d0ead38560c15643877e9feee728bed5\",\"slo_query_type\":\"metric\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query-1731699149\",\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"asc\",\"queries\":[{\"additional_query_filters\":\"*\",\"data_source\":\"slo\",\"group_mode\":\"overall\",\"measure\":\"slo_status\",\"name\":\"query1\",\"slo_id\":\"425d71bc3445599f92d7c3848731d220\",\"slo_query_type\":\"metric\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"3cn-g4m-h9z\",\"title\":\"Test-Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query-1731611528\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/3cn-g4m-h9z/test-createanewdashboardwithachangewidgetusingformulasandfunctionssloquery-17316\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"asc\",\"queries\":[{\"additional_query_filters\":\"*\",\"data_source\":\"slo\",\"group_mode\":\"overall\",\"measure\":\"slo_status\",\"name\":\"query1\",\"slo_id\":\"d0ead38560c15643877e9feee728bed5\",\"slo_query_type\":\"metric\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0},\"id\":7049386512706360}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:08.756612+00:00\",\"modified_at\":\"2024-11-14T19:12:08.756612+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"49z-5ib-fcx\",\"title\":\"Test-Create_a_new_dashboard_with_a_change_widget_using_formulas_and_functions_slo_query-1731699149\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/49z-5ib-fcx/test-createanewdashboardwithachangewidgetusingformulasandfunctionssloquery-17316\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"asc\",\"queries\":[{\"additional_query_filters\":\"*\",\"data_source\":\"slo\",\"group_mode\":\"overall\",\"measure\":\"slo_status\",\"name\":\"query1\",\"slo_id\":\"425d71bc3445599f92d7c3848731d220\",\"slo_query_type\":\"metric\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0},\"id\":6718329595147214}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:29.774299+00:00\",\"modified_at\":\"2024-11-15T19:32:29.774299+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "6b4bc833-0655-c768-c7e7-5d63ecde6e72" + "id": "53f6eb19-016c-93f8-9e22-70dd93c7814a" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/3cn-g4m-h9z", + "path": "/api/v1/dashboard/49z-5ib-fcx", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"3cn-g4m-h9z\"}\n", + "body": "{\"deleted_dashboard_id\":\"49z-5ib-fcx\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "18f59786-7c90-a34a-11c5-96d9a44673d8" + "id": "76e0638b-2f23-b31f-5e94-ed96bb00f778" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/slo/d0ead38560c15643877e9feee728bed5", + "path": "/api/v1/slo/425d71bc3445599f92d7c3848731d220", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":[\"d0ead38560c15643877e9feee728bed5\"],\"error\":null}\n", + "body": "{\"data\":[\"425d71bc3445599f92d7c3848731d220\"],\"error\":null}\n", "headers": { "Content-Type": [ "application/json" @@ -109,6 +109,6 @@ "timeToLive": { "unlimited": true }, - "id": "4cda4dc1-c7a0-d439-43b0-a37014aa0422" + "id": "4e100340-7b4c-9fd8-e88f-2fb1070e59c8" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_change_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_change_widget.freeze index f408822cf43..15ab4cd26e0 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_change_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_change_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:09.244Z \ No newline at end of file +2024-11-15T19:32:30.413Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_change_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_change_widget.json index 3a2c7bd5982..2d65d783238 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_change_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_change_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_formulas_and_functions_change_widget-1731611529\",\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_formulas_and_functions_change_widget-1731699150\",\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"8ap-qaz-qge\",\"title\":\"Test-Create_a_new_dashboard_with_a_formulas_and_functions_change_widget-1731611529\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/8ap-qaz-qge/test-createanewdashboardwithaformulasandfunctionschangewidget-1731611529\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":1875237764680115}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:09.420485+00:00\",\"modified_at\":\"2024-11-14T19:12:09.420485+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"pwu-pqa-fin\",\"title\":\"Test-Create_a_new_dashboard_with_a_formulas_and_functions_change_widget-1731699150\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/pwu-pqa-fin/test-createanewdashboardwithaformulasandfunctionschangewidget-1731699150\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":4495141746383449}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:30.566816+00:00\",\"modified_at\":\"2024-11-15T19:32:30.566816+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "69186bf8-0ed9-968f-01c1-cdcd62f8f694" + "id": "80fed7c8-b245-cc45-9c42-a13841342209" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/8ap-qaz-qge", + "path": "/api/v1/dashboard/pwu-pqa-fin", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"8ap-qaz-qge\"}\n", + "body": "{\"deleted_dashboard_id\":\"pwu-pqa-fin\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "3f41d7f8-201a-a2ac-1966-e1795c5771fc" + "id": "cdfa3daa-1ec9-ac1c-1a55-6d264f7245a4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget.freeze index e406eeefb78..2186983177e 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:09.673Z \ No newline at end of file +2024-11-15T19:32:30.862Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget.json index 25495bf3374..211017241fe 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget-1731611529\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"title\":\"\",\"type\":\"treemap\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget-1731699150\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"title\":\"\",\"type\":\"treemap\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"83d-i5u-m3v\",\"title\":\"Test-Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget-1731611529\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/83d-i5u-m3v/test-createanewdashboardwithaformulasandfunctionstreemapwidget-1731611529\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"title\":\"\",\"type\":\"treemap\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":7665743685931618}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:09.852911+00:00\",\"modified_at\":\"2024-11-14T19:12:09.852911+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"sa5-czr-uat\",\"title\":\"Test-Create_a_new_dashboard_with_a_formulas_and_functions_treemap_widget-1731699150\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/sa5-czr-uat/test-createanewdashboardwithaformulasandfunctionstreemapwidget-1731699150\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"title\":\"\",\"type\":\"treemap\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":2892895408255139}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:31.032272+00:00\",\"modified_at\":\"2024-11-15T19:32:31.032272+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "bdde5c1e-c96b-3cf5-ae1f-d38d23efe90b" + "id": "c9c2c743-6c07-fffb-5f0e-1794c3d0bd18" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/83d-i5u-m3v", + "path": "/api/v1/dashboard/sa5-czr-uat", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"83d-i5u-m3v\"}\n", + "body": "{\"deleted_dashboard_id\":\"sa5-czr-uat\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "a0527eb5-e701-2340-34a8-7b998c7a5ddf" + "id": "ba9e299a-c423-545f-f92e-46402cb7ce9c" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator.freeze index 4d1c2ec39ac..228988f8370 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator.freeze @@ -1 +1 @@ -2024-11-14T19:12:10.125Z \ No newline at end of file +2024-11-15T19:32:31.326Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator.json index 460b9149d02..510f84e465a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator-1731611530 with QVW Percentile Aggregator\",\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"p90:dist.dd.dogweb.latency{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator-1731699151 with QVW Percentile Aggregator\",\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"p90:dist.dd.dogweb.latency{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"5e6-uwt-hiw\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator-1731611530 with QVW Percentile Aggregator\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/5e6-uwt-hiw/test-createanewdashboardwithaqueryvaluewidgetusingthepercentileaggregator-173161\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"p90:dist.dd.dogweb.latency{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0},\"id\":2654036272451651}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:10.298509+00:00\",\"modified_at\":\"2024-11-14T19:12:10.298509+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"u3x-4y8-hiy\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator-1731699151 with QVW Percentile Aggregator\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/u3x-4y8-hiy/test-createanewdashboardwithaqueryvaluewidgetusingthepercentileaggregator-173169\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"p90:dist.dd.dogweb.latency{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0},\"id\":662978730586709}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:31.492216+00:00\",\"modified_at\":\"2024-11-15T19:32:31.492216+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "eeb28a54-47f3-1ea5-a33a-662c57556b7e" + "id": "380b8e3b-3e50-5a46-5be3-1bc3fadd2016" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/5e6-uwt-hiw", + "path": "/api/v1/dashboard/u3x-4y8-hiy", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"5e6-uwt-hiw\"}\n", + "body": "{\"deleted_dashboard_id\":\"u3x-4y8-hiy\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "c391dae9-338d-ae66-9dca-2545a97a1287" + "id": "470a1b4e-89a4-22a1-2900-495d6c2dbff4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background.freeze index bca43343fe5..ded0064aa19 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background.freeze @@ -1 +1 @@ -2024-11-14T19:12:10.545Z \ No newline at end of file +2024-11-15T19:32:31.758Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background.json index 2342e583b12..dd0e76157da 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background-1731611530 with QVW Timeseries Background\",\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:my.cool.count.metric{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"timeseries_background\":{\"type\":\"area\",\"yaxis\":{\"include_zero\":true}},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background-1731699151 with QVW Timeseries Background\",\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:my.cool.count.metric{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"timeseries_background\":{\"type\":\"area\",\"yaxis\":{\"include_zero\":true}},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"e79-3k8-wck\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background-1731611530 with QVW Timeseries Background\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/e79-3k8-wck/test-createanewdashboardwithaqueryvaluewidgetusingtimeseriesbackground-173161153\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:my.cool.count.metric{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"timeseries_background\":{\"type\":\"area\",\"yaxis\":{\"include_zero\":true}},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0},\"id\":7702897477190165}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:10.739610+00:00\",\"modified_at\":\"2024-11-14T19:12:10.739610+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"t7h-dt9-gt6\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_timeseries_background-1731699151 with QVW Timeseries Background\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/t7h-dt9-gt6/test-createanewdashboardwithaqueryvaluewidgetusingtimeseriesbackground-173169915\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:my.cool.count.metric{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"timeseries_background\":{\"type\":\"area\",\"yaxis\":{\"include_zero\":true}},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0},\"id\":4861182812642966}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:31.929842+00:00\",\"modified_at\":\"2024-11-15T19:32:31.929842+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "2297b7ed-0ed4-cd8a-3428-2d50bc63283c" + "id": "43c9fadf-5f8f-2132-e782-51efd0217869" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/e79-3k8-wck", + "path": "/api/v1/dashboard/t7h-dt9-gt6", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"e79-3k8-wck\"}\n", + "body": "{\"deleted_dashboard_id\":\"t7h-dt9-gt6\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "1f50bd56-b04b-7d70-8689-ca752e7cf93f" + "id": "348033fe-d76a-a51b-830c-4d4832d90f88" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request.freeze index 7adc3c48a97..e2c886655ce 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request.freeze @@ -1 +1 @@ -2024-11-14T19:12:11.109Z \ No newline at end of file +2024-11-15T19:32:32.218Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request.json index 6e8faa87059..038e8ffb2e8 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request-1731611531\",\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"line\",\"on_right_yaxis\":false,\"queries\":[{\"data_source\":\"metrics\",\"name\":\"mymetric\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\"},{\"display_type\":\"overlay\",\"queries\":[{\"data_source\":\"metrics\",\"name\":\"mymetricoverlay\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"purple\"}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request-1731699152\",\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"line\",\"on_right_yaxis\":false,\"queries\":[{\"data_source\":\"metrics\",\"name\":\"mymetric\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\"},{\"display_type\":\"overlay\",\"queries\":[{\"data_source\":\"metrics\",\"name\":\"mymetricoverlay\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"purple\"}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"9dj-gpc-pve\",\"title\":\"Test-Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request-1731611531\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/9dj-gpc-pve/test-createanewdashboardwithatimeserieswidgetandanoverlayrequest-1731611531\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"line\",\"on_right_yaxis\":false,\"queries\":[{\"data_source\":\"metrics\",\"name\":\"mymetric\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\"},{\"display_type\":\"overlay\",\"queries\":[{\"data_source\":\"metrics\",\"name\":\"mymetricoverlay\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"purple\"}}],\"type\":\"timeseries\"},\"id\":3340608125452159}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:11.274182+00:00\",\"modified_at\":\"2024-11-14T19:12:11.274182+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"9kn-skt-493\",\"title\":\"Test-Create_a_new_dashboard_with_a_timeseries_widget_and_an_overlay_request-1731699152\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/9kn-skt-493/test-createanewdashboardwithatimeserieswidgetandanoverlayrequest-1731699152\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"line\",\"on_right_yaxis\":false,\"queries\":[{\"data_source\":\"metrics\",\"name\":\"mymetric\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\"},{\"display_type\":\"overlay\",\"queries\":[{\"data_source\":\"metrics\",\"name\":\"mymetricoverlay\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"purple\"}}],\"type\":\"timeseries\"},\"id\":8425606312270690}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:32.390240+00:00\",\"modified_at\":\"2024-11-15T19:32:32.390240+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "606f853f-5b29-7ad0-a178-609c10ace58b" + "id": "3c9dae0d-9125-03db-f984-49f6532128d4" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/9dj-gpc-pve", + "path": "/api/v1/dashboard/9kn-skt-493", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"9dj-gpc-pve\"}\n", + "body": "{\"deleted_dashboard_id\":\"9kn-skt-493\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "2a3a0203-b7b4-c612-1a94-7446e2e5c3e4" + "id": "8781dc3c-0d17-453b-194a-5360e90b480a" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query.freeze index 55354eaa1f7..558e91e66c7 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query.freeze @@ -1 +1 @@ -2024-11-14T19:12:11.542Z \ No newline at end of file +2024-11-15T19:32:32.665Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query.json index 526165c1652..e2c638f4d81 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query-1731611531\",\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"bars\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"cloud_cost\",\"name\":\"query1\",\"query\":\"sum:aws.cost.amortized{*} by {aws_product}.rollup(sum, monthly)\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"time\":{\"live_span\":\"week_to_date\"},\"title\":\"Example Cloud Cost Query\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query-1731699152\",\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"bars\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"cloud_cost\",\"name\":\"query1\",\"query\":\"sum:aws.cost.amortized{*} by {aws_product}.rollup(sum, monthly)\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"time\":{\"live_span\":\"week_to_date\"},\"title\":\"Example Cloud Cost Query\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"kf9-5t7-m6u\",\"title\":\"Test-Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query-1731611531\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/kf9-5t7-m6u/test-createanewdashboardwithatimeserieswidgetusingformulasandfunctionscloudcostq\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"bars\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"cloud_cost\",\"name\":\"query1\",\"query\":\"sum:aws.cost.amortized{*} by {aws_product}.rollup(sum, monthly)\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"time\":{\"live_span\":\"week_to_date\"},\"title\":\"Example Cloud Cost Query\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"timeseries\"},\"id\":6669803341186266}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:11.710518+00:00\",\"modified_at\":\"2024-11-14T19:12:11.710518+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"vyw-yjx-s93\",\"title\":\"Test-Create_a_new_dashboard_with_a_timeseries_widget_using_formulas_and_functions_cloud_cost_query-1731699152\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/vyw-yjx-s93/test-createanewdashboardwithatimeserieswidgetusingformulasandfunctionscloudcostq\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"bars\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"cloud_cost\",\"name\":\"query1\",\"query\":\"sum:aws.cost.amortized{*} by {aws_product}.rollup(sum, monthly)\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"time\":{\"live_span\":\"week_to_date\"},\"title\":\"Example Cloud Cost Query\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"timeseries\"},\"id\":2217465194290585}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:32.857554+00:00\",\"modified_at\":\"2024-11-15T19:32:32.857554+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "c4118b5c-543b-8326-3018-432a3825f465" + "id": "562675d1-f128-7fc8-8dbf-fb6f47e1f219" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/kf9-5t7-m6u", + "path": "/api/v1/dashboard/vyw-yjx-s93", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"kf9-5t7-m6u\"}\n", + "body": "{\"deleted_dashboard_id\":\"vyw-yjx-s93\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "1d788a27-15c0-775f-87ed-7d20cb657210" + "id": "8cc170b3-44fa-9e0c-147d-bff82b222234" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group.freeze index 869814b280a..a80b2a4986a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group.freeze @@ -1 +1 @@ -2024-11-14T19:12:11.966Z \ No newline at end of file +2024-11-15T19:32:33.159Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group.json index 4f0f527a418..27cfe12c62a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group-1731611531\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"legend\":\"inline\",\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group-1731699153\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"legend\":\"inline\",\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"vhe-xty-kr6\",\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group-1731611531\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/vhe-xty-kr6/test-createanewdashboardwithatoplistwidgetsortedbygroup-1731611531\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"legend\":\"inline\",\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":6590516596968264}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:12.140934+00:00\",\"modified_at\":\"2024-11-14T19:12:12.140934+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"w98-fwu-ra3\",\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_sorted_by_group-1731699153\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/w98-fwu-ra3/test-createanewdashboardwithatoplistwidgetsortedbygroup-1731699153\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"legend\":\"inline\",\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":6367571628619554}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:33.336831+00:00\",\"modified_at\":\"2024-11-15T19:32:33.336831+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "267413c8-86e6-3795-2219-ee4e1b2ec335" + "id": "849592ed-a22d-2d1d-f238-48562aa8f2e0" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/vhe-xty-kr6", + "path": "/api/v1/dashboard/w98-fwu-ra3", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"vhe-xty-kr6\"}\n", + "body": "{\"deleted_dashboard_id\":\"w98-fwu-ra3\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "b0b58af8-0ef7-c7f3-535b-0455513720f8" + "id": "094ef467-5403-cc33-8217-1f6651d46bc7" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.freeze index 88e67c2fd03..fcafe1b60a2 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.freeze @@ -1 +1 @@ -2024-11-14T19:12:12.401Z \ No newline at end of file +2024-11-15T19:32:33.591Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.json index 812a189b620..e0ecc41d1fd 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified-1731611532\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified-1731699153\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"w86-twq-ev8\",\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified-1731611532\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/w86-twq-ev8/test-createanewdashboardwithatoplistwidgetwithstackedtypeandnolegendspecified-17\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":3350063402670726}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:14.232359+00:00\",\"modified_at\":\"2024-11-14T19:12:14.232359+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"r8v-q4n-f95\",\"title\":\"Test-Create_a_new_dashboard_with_a_toplist_widget_with_stacked_type_and_no_legend_specified-1731699153\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/r8v-q4n-f95/test-createanewdashboardwithatoplistwidgetwithstackedtypeandnolegendspecified-17\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"name\":\"service\",\"order\":\"asc\",\"type\":\"group\"}]}}],\"style\":{\"display\":{\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":4235118472410793}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:33.756567+00:00\",\"modified_at\":\"2024-11-15T19:32:33.756567+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "980f9257-46e6-6af2-2c90-3b14587fefab" + "id": "70f52236-3f12-56ae-4d9b-7bed0992a6d6" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/w86-twq-ev8", + "path": "/api/v1/dashboard/r8v-q4n-f95", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"w86-twq-ev8\"}\n", + "body": "{\"deleted_dashboard_id\":\"r8v-q4n-f95\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "f453e80c-f32b-8035-6082-cfd2f556ab67" + "id": "e22a7333-3487-0dcd-59aa-74ce596b1d78" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.freeze index 8f7441e1a8f..9e2f2056c5c 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:14.472Z \ No newline at end of file +2024-11-15T19:32:34.239Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.json index aefa445d413..d259ce2e44a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"message\": \"some message Notify: @hipchat-channel\", \"name\": \"Test-Create_a_new_dashboard_with_alert_graph_widget-1731611534\", \"options\": {\"enable_logs_sample\": true, \"escalation_message\": \"the situation has escalated\", \"evaluation_delay\": 700, \"include_tags\": true, \"locked\": false, \"new_host_delay\": 600, \"no_data_timeframe\": null, \"notification_preset_name\": \"hide_handles\", \"notify_audit\": false, \"notify_no_data\": false, \"on_missing_data\": \"show_and_notify_no_data\", \"renotify_interval\": 60, \"require_full_window\": true, \"thresholds\": {\"critical\": 2, \"warning\": 1}, \"timeout_h\": 24}, \"priority\": 3, \"query\": \"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\", \"tags\": [\"test:testcreateanewdashboardwithalertgraphwidget1731611534\", \"env:ci\"], \"type\": \"log alert\"}" + "json": "{\"message\": \"some message Notify: @hipchat-channel\", \"name\": \"Test-Create_a_new_dashboard_with_alert_graph_widget-1731699154\", \"options\": {\"enable_logs_sample\": true, \"escalation_message\": \"the situation has escalated\", \"evaluation_delay\": 700, \"include_tags\": true, \"locked\": false, \"new_host_delay\": 600, \"no_data_timeframe\": null, \"notification_preset_name\": \"hide_handles\", \"notify_audit\": false, \"notify_no_data\": false, \"on_missing_data\": \"show_and_notify_no_data\", \"renotify_interval\": 60, \"require_full_window\": true, \"thresholds\": {\"critical\": 2, \"warning\": 1}, \"timeout_h\": 24}, \"priority\": 3, \"query\": \"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\", \"tags\": [\"test:testcreateanewdashboardwithalertgraphwidget1731699154\", \"env:ci\"], \"type\": \"log alert\"}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":158261200,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1731611534\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testcreateanewdashboardwithalertgraphwidget1731611534\",\"env:ci\"],\"query\":\"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\",\"options\":{\"enable_logs_sample\":true,\"escalation_message\":\"the situation has escalated\",\"evaluation_delay\":700,\"include_tags\":true,\"locked\":false,\"new_host_delay\":600,\"no_data_timeframe\":null,\"notification_preset_name\":\"hide_handles\",\"notify_audit\":false,\"notify_no_data\":false,\"on_missing_data\":\"show_and_notify_no_data\",\"renotify_interval\":60,\"require_full_window\":true,\"thresholds\":{\"critical\":2.0,\"warning\":1.0},\"timeout_h\":24,\"groupby_simple_monitor\":false,\"silenced\":{}},\"multi\":true,\"created_at\":1731611534000,\"created\":\"2024-11-14T19:12:14.628076+00:00\",\"modified\":\"2024-11-14T19:12:14.628076+00:00\",\"deleted\":null,\"priority\":3,\"restricted_roles\":null,\"restriction_policy\":null,\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":\"Anika Maskara\",\"handle\":\"anika.maskara@datadoghq.com\",\"email\":\"anika.maskara@datadoghq.com\",\"id\":7557262}}\n", + "body": "{\"id\":158348339,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1731699154\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testcreateanewdashboardwithalertgraphwidget1731699154\",\"env:ci\"],\"query\":\"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\",\"options\":{\"enable_logs_sample\":true,\"escalation_message\":\"the situation has escalated\",\"evaluation_delay\":700,\"include_tags\":true,\"locked\":false,\"new_host_delay\":600,\"no_data_timeframe\":null,\"notification_preset_name\":\"hide_handles\",\"notify_audit\":false,\"notify_no_data\":false,\"on_missing_data\":\"show_and_notify_no_data\",\"renotify_interval\":60,\"require_full_window\":true,\"thresholds\":{\"critical\":2.0,\"warning\":1.0},\"timeout_h\":24,\"groupby_simple_monitor\":false,\"silenced\":{}},\"multi\":true,\"created_at\":1731699154000,\"created\":\"2024-11-15T19:32:34.396432+00:00\",\"modified\":\"2024-11-15T19:32:34.396432+00:00\",\"deleted\":null,\"priority\":3,\"restricted_roles\":null,\"restriction_policy\":null,\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"id\":1445416}}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "a9302e80-9408-5ecb-d1a7-3e992a328c0d" + "id": "a4044fb6-7411-1061-1b9f-5214179be4d3" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1731611534\",\"widgets\":[{\"definition\":{\"alert_id\":\"158261200\",\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_graph\",\"viz_type\":\"timeseries\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1731699154\",\"widgets\":[{\"definition\":{\"alert_id\":\"158348339\",\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_graph\",\"viz_type\":\"timeseries\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"7q4-96u-ti2\",\"title\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1731611534\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/7q4-96u-ti2/test-createanewdashboardwithalertgraphwidget-1731611534\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"alert_id\":\"158261200\",\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_graph\",\"viz_type\":\"timeseries\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":3685747866525074}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:14.801797+00:00\",\"modified_at\":\"2024-11-14T19:12:14.801797+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"4jv-jai-fe2\",\"title\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1731699154\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/4jv-jai-fe2/test-createanewdashboardwithalertgraphwidget-1731699154\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"alert_id\":\"158348339\",\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_graph\",\"viz_type\":\"timeseries\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":2987598208176646}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:34.601305+00:00\",\"modified_at\":\"2024-11-15T19:32:34.601305+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "c9759d91-476d-2829-2e3a-e8d8005ecb8f" + "id": "f5bb0619-0467-ee63-47c5-d85e2d590d6d" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/7q4-96u-ti2", + "path": "/api/v1/dashboard/4jv-jai-fe2", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"7q4-96u-ti2\"}\n", + "body": "{\"deleted_dashboard_id\":\"4jv-jai-fe2\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "e508134e-fecc-8869-47ac-d878d3148c49" + "id": "2e0ab3b1-0d54-b49c-f0a9-11dc7152717a" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/monitor/158261200", + "path": "/api/v1/monitor/158348339", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_monitor_id\":158261200}\n", + "body": "{\"deleted_monitor_id\":158348339}\n", "headers": { "Content-Type": [ "application/json" @@ -109,6 +109,6 @@ "timeToLive": { "unlimited": true }, - "id": "46aa5884-5db6-a732-c9c3-f81ced3cd418" + "id": "1fa119e9-35ae-b005-b2f4-16c7d841e494" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_value_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_value_widget.freeze index 0df93e0cbeb..fe364ab5c59 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_value_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_value_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:15.292Z \ No newline at end of file +2024-11-15T19:32:35.090Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_value_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_value_widget.json index fd285f4dbcc..7a99fcb1b71 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_value_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_value_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"message\": \"some message Notify: @hipchat-channel\", \"name\": \"Test-Create_a_new_dashboard_with_alert_value_widget-1731611535\", \"options\": {\"enable_logs_sample\": true, \"escalation_message\": \"the situation has escalated\", \"evaluation_delay\": 700, \"include_tags\": true, \"locked\": false, \"new_host_delay\": 600, \"no_data_timeframe\": null, \"notification_preset_name\": \"hide_handles\", \"notify_audit\": false, \"notify_no_data\": false, \"on_missing_data\": \"show_and_notify_no_data\", \"renotify_interval\": 60, \"require_full_window\": true, \"thresholds\": {\"critical\": 2, \"warning\": 1}, \"timeout_h\": 24}, \"priority\": 3, \"query\": \"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\", \"tags\": [\"test:testcreateanewdashboardwithalertvaluewidget1731611535\", \"env:ci\"], \"type\": \"log alert\"}" + "json": "{\"message\": \"some message Notify: @hipchat-channel\", \"name\": \"Test-Create_a_new_dashboard_with_alert_value_widget-1731699155\", \"options\": {\"enable_logs_sample\": true, \"escalation_message\": \"the situation has escalated\", \"evaluation_delay\": 700, \"include_tags\": true, \"locked\": false, \"new_host_delay\": 600, \"no_data_timeframe\": null, \"notification_preset_name\": \"hide_handles\", \"notify_audit\": false, \"notify_no_data\": false, \"on_missing_data\": \"show_and_notify_no_data\", \"renotify_interval\": 60, \"require_full_window\": true, \"thresholds\": {\"critical\": 2, \"warning\": 1}, \"timeout_h\": 24}, \"priority\": 3, \"query\": \"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\", \"tags\": [\"test:testcreateanewdashboardwithalertvaluewidget1731699155\", \"env:ci\"], \"type\": \"log alert\"}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":158261202,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Create_a_new_dashboard_with_alert_value_widget-1731611535\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testcreateanewdashboardwithalertvaluewidget1731611535\",\"env:ci\"],\"query\":\"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\",\"options\":{\"enable_logs_sample\":true,\"escalation_message\":\"the situation has escalated\",\"evaluation_delay\":700,\"include_tags\":true,\"locked\":false,\"new_host_delay\":600,\"no_data_timeframe\":null,\"notification_preset_name\":\"hide_handles\",\"notify_audit\":false,\"notify_no_data\":false,\"on_missing_data\":\"show_and_notify_no_data\",\"renotify_interval\":60,\"require_full_window\":true,\"thresholds\":{\"critical\":2.0,\"warning\":1.0},\"timeout_h\":24,\"groupby_simple_monitor\":false,\"silenced\":{}},\"multi\":true,\"created_at\":1731611535000,\"created\":\"2024-11-14T19:12:15.443414+00:00\",\"modified\":\"2024-11-14T19:12:15.443414+00:00\",\"deleted\":null,\"priority\":3,\"restricted_roles\":null,\"restriction_policy\":null,\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":\"Anika Maskara\",\"handle\":\"anika.maskara@datadoghq.com\",\"email\":\"anika.maskara@datadoghq.com\",\"id\":7557262}}\n", + "body": "{\"id\":158348341,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Create_a_new_dashboard_with_alert_value_widget-1731699155\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testcreateanewdashboardwithalertvaluewidget1731699155\",\"env:ci\"],\"query\":\"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\",\"options\":{\"enable_logs_sample\":true,\"escalation_message\":\"the situation has escalated\",\"evaluation_delay\":700,\"include_tags\":true,\"locked\":false,\"new_host_delay\":600,\"no_data_timeframe\":null,\"notification_preset_name\":\"hide_handles\",\"notify_audit\":false,\"notify_no_data\":false,\"on_missing_data\":\"show_and_notify_no_data\",\"renotify_interval\":60,\"require_full_window\":true,\"thresholds\":{\"critical\":2.0,\"warning\":1.0},\"timeout_h\":24,\"groupby_simple_monitor\":false,\"silenced\":{}},\"multi\":true,\"created_at\":1731699155000,\"created\":\"2024-11-15T19:32:35.343261+00:00\",\"modified\":\"2024-11-15T19:32:35.343261+00:00\",\"deleted\":null,\"priority\":3,\"restricted_roles\":null,\"restriction_policy\":null,\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"id\":1445416}}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "3abd4e75-e37f-f7ce-57ec-690cf8177be5" + "id": "a1051a7b-837c-0fa6-5446-9287127e5ccc" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_alert_value_widget-1731611535\",\"widgets\":[{\"definition\":{\"alert_id\":\"158261202\",\"precision\":2,\"text_align\":\"left\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_value\",\"unit\":\"auto\"},\"layout\":{\"height\":8,\"width\":15,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_alert_value_widget-1731699155\",\"widgets\":[{\"definition\":{\"alert_id\":\"158348341\",\"precision\":2,\"text_align\":\"left\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_value\",\"unit\":\"auto\"},\"layout\":{\"height\":8,\"width\":15,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"qfp-5rn-svg\",\"title\":\"Test-Create_a_new_dashboard_with_alert_value_widget-1731611535\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/qfp-5rn-svg/test-createanewdashboardwithalertvaluewidget-1731611535\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"alert_id\":\"158261202\",\"precision\":2,\"text_align\":\"left\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_value\",\"unit\":\"auto\"},\"layout\":{\"height\":8,\"width\":15,\"x\":0,\"y\":0},\"id\":6589547869891789}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:15.636163+00:00\",\"modified_at\":\"2024-11-14T19:12:15.636163+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"vi5-rq9-zfq\",\"title\":\"Test-Create_a_new_dashboard_with_alert_value_widget-1731699155\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/vi5-rq9-zfq/test-createanewdashboardwithalertvaluewidget-1731699155\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"alert_id\":\"158348341\",\"precision\":2,\"text_align\":\"left\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_value\",\"unit\":\"auto\"},\"layout\":{\"height\":8,\"width\":15,\"x\":0,\"y\":0},\"id\":1173877496665142}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:35.523350+00:00\",\"modified_at\":\"2024-11-15T19:32:35.523350+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "c9931ade-0f01-125f-81c8-bc8f0357e798" + "id": "ae6a7548-244b-5a19-d513-728e0d982a9b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/qfp-5rn-svg", + "path": "/api/v1/dashboard/vi5-rq9-zfq", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"qfp-5rn-svg\"}\n", + "body": "{\"deleted_dashboard_id\":\"vi5-rq9-zfq\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "02f13ebd-b198-b474-5606-f17418b9c3f0" + "id": "71781ed8-b29f-2a20-2d6d-f043df89594b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/monitor/158261202", + "path": "/api/v1/monitor/158348341", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_monitor_id\":158261202}\n", + "body": "{\"deleted_monitor_id\":158348341}\n", "headers": { "Content-Type": [ "application/json" @@ -109,6 +109,6 @@ "timeToLive": { "unlimited": true }, - "id": "ed4c7631-cc20-c403-11a8-23b396faebea" + "id": "8cf3d2ec-b215-3f38-d689-bc42de448c61" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_an_audit_logs_query.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_an_audit_logs_query.freeze index 4229fd902a7..f17762337a4 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_an_audit_logs_query.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_an_audit_logs_query.freeze @@ -1 +1 @@ -2024-11-14T19:12:16.099Z \ No newline at end of file +2024-11-15T19:32:36.010Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_an_audit_logs_query.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_an_audit_logs_query.json index 1893c00f3c6..a8f0fa098d9 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_an_audit_logs_query.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_an_audit_logs_query.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_an_audit_logs_query-1731611536 with Audit Logs Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"audit\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"timeseries\"}],\"type\":\"timeseries\"},\"layout\":{\"height\":2,\"width\":4,\"x\":2,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_an_audit_logs_query-1731699156 with Audit Logs Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"audit\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"timeseries\"}],\"type\":\"timeseries\"},\"layout\":{\"height\":2,\"width\":4,\"x\":2,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"56n-3ai-i2r\",\"title\":\"Test-Create_a_new_dashboard_with_an_audit_logs_query-1731611536 with Audit Logs Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/56n-3ai-i2r/test-createanewdashboardwithanauditlogsquery-1731611536-with-audit-logs-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"audit\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"timeseries\"}],\"type\":\"timeseries\"},\"layout\":{\"height\":2,\"width\":4,\"x\":2,\"y\":0},\"id\":6665463980370254}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:17.928159+00:00\",\"modified_at\":\"2024-11-14T19:12:17.928159+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"gu5-cq8-akb\",\"title\":\"Test-Create_a_new_dashboard_with_an_audit_logs_query-1731699156 with Audit Logs Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/gu5-cq8-akb/test-createanewdashboardwithanauditlogsquery-1731699156-with-audit-logs-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"audit\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"timeseries\"}],\"type\":\"timeseries\"},\"layout\":{\"height\":2,\"width\":4,\"x\":2,\"y\":0},\"id\":1074067237256022}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:36.200033+00:00\",\"modified_at\":\"2024-11-15T19:32:36.200033+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "b04b7e30-3772-ab89-a3d5-7f990fa86dc5" + "id": "9dc6d215-b346-d90c-1a05-93a3b9fbe35b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/56n-3ai-i2r", + "path": "/api/v1/dashboard/gu5-cq8-akb", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"56n-3ai-i2r\"}\n", + "body": "{\"deleted_dashboard_id\":\"gu5-cq8-akb\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "25fa5792-19a3-e43a-7548-1877c491b09d" + "id": "dbfe9501-b41e-568a-5d1a-68228422f5f0" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_dependency_stats_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_dependency_stats_widget.freeze index d832278ef70..f07e4789e75 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_dependency_stats_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_dependency_stats_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:18.187Z \ No newline at end of file +2024-11-15T19:32:36.471Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_dependency_stats_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_dependency_stats_widget.json index f51313afe72..59129bb1aa1 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_dependency_stats_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_dependency_stats_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_apm_dependency_stats_widget-1731611538\",\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"data_source\":\"apm_dependency_stats\",\"env\":\"ci\",\"name\":\"query1\",\"operation_name\":\"cassandra.query\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"edge-eu1.prod.dog\",\"resource_name\":\"DELETE FROM monitor_history.monitor_state_change_history WHERE org_id = ? AND monitor_id IN ? AND group = ?\",\"service\":\"cassandra\",\"stat\":\"avg_duration\"}],\"response_format\":\"scalar\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_apm_dependency_stats_widget-1731699156\",\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"data_source\":\"apm_dependency_stats\",\"env\":\"ci\",\"name\":\"query1\",\"operation_name\":\"cassandra.query\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"edge-eu1.prod.dog\",\"resource_name\":\"DELETE FROM monitor_history.monitor_state_change_history WHERE org_id = ? AND monitor_id IN ? AND group = ?\",\"service\":\"cassandra\",\"stat\":\"avg_duration\"}],\"response_format\":\"scalar\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"u58-b3b-jgt\",\"title\":\"Test-Create_a_new_dashboard_with_apm_dependency_stats_widget-1731611538\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/u58-b3b-jgt/test-createanewdashboardwithapmdependencystatswidget-1731611538\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"data_source\":\"apm_dependency_stats\",\"env\":\"ci\",\"name\":\"query1\",\"operation_name\":\"cassandra.query\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"edge-eu1.prod.dog\",\"resource_name\":\"DELETE FROM monitor_history.monitor_state_change_history WHERE org_id = ? AND monitor_id IN ? AND group = ?\",\"service\":\"cassandra\",\"stat\":\"avg_duration\"}],\"response_format\":\"scalar\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":3418036957728040}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:18.368023+00:00\",\"modified_at\":\"2024-11-14T19:12:18.368023+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"vz4-7gw-y6a\",\"title\":\"Test-Create_a_new_dashboard_with_apm_dependency_stats_widget-1731699156\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/vz4-7gw-y6a/test-createanewdashboardwithapmdependencystatswidget-1731699156\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"data_source\":\"apm_dependency_stats\",\"env\":\"ci\",\"name\":\"query1\",\"operation_name\":\"cassandra.query\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"edge-eu1.prod.dog\",\"resource_name\":\"DELETE FROM monitor_history.monitor_state_change_history WHERE org_id = ? AND monitor_id IN ? AND group = ?\",\"service\":\"cassandra\",\"stat\":\"avg_duration\"}],\"response_format\":\"scalar\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":8028533185092499}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:36.632468+00:00\",\"modified_at\":\"2024-11-15T19:32:36.632468+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "ecede605-1640-f6b2-3377-b69186e32edf" + "id": "26ee5f0b-b755-837d-6d8a-7987baf8f945" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/u58-b3b-jgt", + "path": "/api/v1/dashboard/vz4-7gw-y6a", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"u58-b3b-jgt\"}\n", + "body": "{\"deleted_dashboard_id\":\"vz4-7gw-y6a\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "7e11b499-c0e5-8125-fe0c-bc7ee8b08395" + "id": "103c750e-7ad4-f780-3730-94c56fed5b89" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget.freeze index 043d27d642a..d4e9e33fe63 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:19.128Z \ No newline at end of file +2024-11-15T19:32:37.303Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget.json index 76c36623003..7cbe1f9fdc7 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget-1731611539 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget-1731699157 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"6qf-smy-7x5\",\"title\":\"Test-Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget-1731611539 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/6qf-smy-7x5/test-createanewdashboardwithapmissuestreamliststreamwidget-1731611539-with-lists\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":680563327364797}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:19.265744+00:00\",\"modified_at\":\"2024-11-14T19:12:19.265744+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"tak-bfc-f2k\",\"title\":\"Test-Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget-1731699157 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/tak-bfc-f2k/test-createanewdashboardwithapmissuestreamliststreamwidget-1731699157-with-lists\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":6801970282056588}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:37.429394+00:00\",\"modified_at\":\"2024-11-15T19:32:37.429394+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "40f88cb0-aaf3-0642-5bd6-08be88af351e" + "id": "2455fe59-c945-9292-e64f-19bb17c26b2a" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/6qf-smy-7x5", + "path": "/api/v1/dashboard/tak-bfc-f2k", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"6qf-smy-7x5\"}\n", + "body": "{\"deleted_dashboard_id\":\"tak-bfc-f2k\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "1ef63471-c079-ea03-51f7-9a28894f0dd8" + "id": "13cbfad2-e248-8e29-0a88-fe726514447d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_resource_stats_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_resource_stats_widget.freeze index 7783b87e2b4..b0619e0bd17 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_resource_stats_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_resource_stats_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:18.631Z \ No newline at end of file +2024-11-15T19:32:36.906Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_resource_stats_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_resource_stats_widget.json index adb2ca4a546..0ec85f0c012 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_resource_stats_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_apm_resource_stats_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_apm_resource_stats_widget-1731611538\",\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"data_source\":\"apm_resource_stats\",\"env\":\"ci\",\"group_by\":[\"resource_name\"],\"name\":\"query1\",\"operation_name\":\"cassandra.query\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"edge-eu1.prod.dog\",\"service\":\"cassandra\",\"stat\":\"hits\"}],\"response_format\":\"scalar\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_apm_resource_stats_widget-1731699156\",\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"data_source\":\"apm_resource_stats\",\"env\":\"ci\",\"group_by\":[\"resource_name\"],\"name\":\"query1\",\"operation_name\":\"cassandra.query\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"edge-eu1.prod.dog\",\"service\":\"cassandra\",\"stat\":\"hits\"}],\"response_format\":\"scalar\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"x8c-a59-up4\",\"title\":\"Test-Create_a_new_dashboard_with_apm_resource_stats_widget-1731611538\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/x8c-a59-up4/test-createanewdashboardwithapmresourcestatswidget-1731611538\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"data_source\":\"apm_resource_stats\",\"env\":\"ci\",\"group_by\":[\"resource_name\"],\"name\":\"query1\",\"operation_name\":\"cassandra.query\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"edge-eu1.prod.dog\",\"service\":\"cassandra\",\"stat\":\"hits\"}],\"response_format\":\"scalar\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":2616835259044428}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:18.815289+00:00\",\"modified_at\":\"2024-11-14T19:12:18.815289+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"29d-cad-9rf\",\"title\":\"Test-Create_a_new_dashboard_with_apm_resource_stats_widget-1731699156\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/29d-cad-9rf/test-createanewdashboardwithapmresourcestatswidget-1731699156\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"queries\":[{\"data_source\":\"apm_resource_stats\",\"env\":\"ci\",\"group_by\":[\"resource_name\"],\"name\":\"query1\",\"operation_name\":\"cassandra.query\",\"primary_tag_name\":\"datacenter\",\"primary_tag_value\":\"edge-eu1.prod.dog\",\"service\":\"cassandra\",\"stat\":\"hits\"}],\"response_format\":\"scalar\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":150814161312733}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:37.062973+00:00\",\"modified_at\":\"2024-11-15T19:32:37.062973+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "a67b7514-e9a8-378e-cca4-dc8e9897ee44" + "id": "a3dbfb0c-5e06-4c1b-c64e-defe7ea3b262" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/x8c-a59-up4", + "path": "/api/v1/dashboard/29d-cad-9rf", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"x8c-a59-up4\"}\n", + "body": "{\"deleted_dashboard_id\":\"29d-cad-9rf\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "f84708fd-d74c-be07-e56f-ceea61a58efa" + "id": "5c42eeee-a0be-d35e-c2a3-da9d246b29d4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_check_status_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_check_status_widget.freeze index 491f9554ffa..bfb8b5b37b9 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_check_status_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_check_status_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:19.499Z \ No newline at end of file +2024-11-15T19:32:37.699Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_check_status_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_check_status_widget.json index dd433ec8f7e..0255c3933b0 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_check_status_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_check_status_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_check_status_widget-1731611539\",\"widgets\":[{\"definition\":{\"check\":\"datadog.agent.up\",\"grouping\":\"check\",\"tags\":[\"*\"],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"check_status\"},\"layout\":{\"height\":8,\"width\":15,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_check_status_widget-1731699157\",\"widgets\":[{\"definition\":{\"check\":\"datadog.agent.up\",\"grouping\":\"check\",\"tags\":[\"*\"],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"check_status\"},\"layout\":{\"height\":8,\"width\":15,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"vbg-22a-h5q\",\"title\":\"Test-Create_a_new_dashboard_with_check_status_widget-1731611539\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/vbg-22a-h5q/test-createanewdashboardwithcheckstatuswidget-1731611539\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"check\":\"datadog.agent.up\",\"grouping\":\"check\",\"tags\":[\"*\"],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"check_status\"},\"layout\":{\"height\":8,\"width\":15,\"x\":0,\"y\":0},\"id\":5653198180146562}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:19.614388+00:00\",\"modified_at\":\"2024-11-14T19:12:19.614388+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"h4u-ixe-ptt\",\"title\":\"Test-Create_a_new_dashboard_with_check_status_widget-1731699157\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/h4u-ixe-ptt/test-createanewdashboardwithcheckstatuswidget-1731699157\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"check\":\"datadog.agent.up\",\"grouping\":\"check\",\"tags\":[\"*\"],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"check_status\"},\"layout\":{\"height\":8,\"width\":15,\"x\":0,\"y\":0},\"id\":3317310368131706}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:37.813499+00:00\",\"modified_at\":\"2024-11-15T19:32:37.813499+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "916cc963-0a39-e9a9-ca85-8462e8e6c1da" + "id": "389aef93-ae2b-7b9c-4e2d-e58f8a23ad6f" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/vbg-22a-h5q", + "path": "/api/v1/dashboard/h4u-ixe-ptt", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"vbg-22a-h5q\"}\n", + "body": "{\"deleted_dashboard_id\":\"h4u-ixe-ptt\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "d07a7232-7f79-a1f9-f454-c00042fe9f02" + "id": "5c05b053-21b7-5ee1-74f5-2d58199fb092" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_ci_test_stream_list_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_ci_test_stream_list_stream_widget.freeze index 103c2a46245..2a36b979196 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_ci_test_stream_list_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_ci_test_stream_list_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:19.870Z \ No newline at end of file +2024-11-15T19:32:38.067Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_ci_test_stream_list_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_ci_test_stream_list_stream_widget.json index 73857bcbfaf..f45dff36465 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_ci_test_stream_list_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_ci_test_stream_list_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_ci_test_stream_list_stream_widget-1731611539 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"ci_test_stream\",\"query_string\":\"test_level:suite\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_ci_test_stream_list_stream_widget-1731699158 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"ci_test_stream\",\"query_string\":\"test_level:suite\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"vbw-9z8-3n6\",\"title\":\"Test-Create_a_new_dashboard_with_ci_test_stream_list_stream_widget-1731611539 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/vbw-9z8-3n6/test-createanewdashboardwithciteststreamliststreamwidget-1731611539-with-liststr\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"ci_test_stream\",\"query_string\":\"test_level:suite\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":7816239097401544}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:19.996704+00:00\",\"modified_at\":\"2024-11-14T19:12:19.996704+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"as4-cys-wwb\",\"title\":\"Test-Create_a_new_dashboard_with_ci_test_stream_list_stream_widget-1731699158 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/as4-cys-wwb/test-createanewdashboardwithciteststreamliststreamwidget-1731699158-with-liststr\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"ci_test_stream\",\"query_string\":\"test_level:suite\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":723670979268214}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:38.213091+00:00\",\"modified_at\":\"2024-11-15T19:32:38.213091+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "3d3c8fe4-6b33-4ae7-92c3-48f4c6348ae9" + "id": "fcbea409-6998-f081-eb7a-ef6cb8babbce" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/vbw-9z8-3n6", + "path": "/api/v1/dashboard/as4-cys-wwb", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"vbw-9z8-3n6\"}\n", + "body": "{\"deleted_dashboard_id\":\"as4-cys-wwb\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "078caeb3-9c09-520e-f324-94ed78b7ff7a" + "id": "b8893f7f-e416-ca96-5e07-e6f0514b2cc7" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data.freeze index 37a1f4cb549..367ad1f3891 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data.freeze @@ -1 +1 @@ -2024-11-14T19:12:20.235Z \ No newline at end of file +2024-11-15T19:32:38.489Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data.json index 20018e46310..d0ea50c2e00 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data-1731611540\",\"widgets\":[{\"definition\":{\"requests\":[{\"apm_stats_query\":{\"env\":\"prod\",\"name\":\"cassandra.query\",\"primary_tag\":\"datacenter:dc1\",\"row_type\":\"service\",\"service\":\"cassandra\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data-1731699158\",\"widgets\":[{\"definition\":{\"requests\":[{\"apm_stats_query\":{\"env\":\"prod\",\"name\":\"cassandra.query\",\"primary_tag\":\"datacenter:dc1\",\"row_type\":\"service\",\"service\":\"cassandra\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"hvz-a5v-6fx\",\"title\":\"Test-Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data-1731611540\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/hvz-a5v-6fx/test-createanewdashboardwithdistributionwidgetandapmstatsdata-1731611540\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"apm_stats_query\":{\"env\":\"prod\",\"name\":\"cassandra.query\",\"primary_tag\":\"datacenter:dc1\",\"row_type\":\"service\",\"service\":\"cassandra\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":893124335643854}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:20.407882+00:00\",\"modified_at\":\"2024-11-14T19:12:20.407882+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"jbq-s5a-g9h\",\"title\":\"Test-Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data-1731699158\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/jbq-s5a-g9h/test-createanewdashboardwithdistributionwidgetandapmstatsdata-1731699158\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"apm_stats_query\":{\"env\":\"prod\",\"name\":\"cassandra.query\",\"primary_tag\":\"datacenter:dc1\",\"row_type\":\"service\",\"service\":\"cassandra\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"distribution\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":1068260925995159}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:38.651425+00:00\",\"modified_at\":\"2024-11-15T19:32:38.651425+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "a7fa6d74-7c63-b5c9-121f-8ae6a76d3256" + "id": "f5753c2d-59a7-e3f3-5758-7faeb594a5d4" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/hvz-a5v-6fx", + "path": "/api/v1/dashboard/jbq-s5a-g9h", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"hvz-a5v-6fx\"}\n", + "body": "{\"deleted_dashboard_id\":\"jbq-s5a-g9h\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "514195a0-0ad6-12c8-0d9a-ee11e3c099a6" + "id": "992b934a-9585-b6e0-6a44-51d4d27bfc02" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_list_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_list_stream_widget.freeze index b18304cea4c..5368b7c99e0 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_list_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_list_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:20.645Z \ No newline at end of file +2024-11-15T19:32:38.933Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_list_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_list_stream_widget.json index a7e83cfbec7..5c8180750b0 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_list_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_list_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1731611540 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1731699158 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"isx-9sv-axt\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1731611540 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/isx-9sv-axt/test-createanewdashboardwitheventstreamliststreamwidget-1731611540-with-liststre\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":633928899210629}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:20.796146+00:00\",\"modified_at\":\"2024-11-14T19:12:20.796146+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"vw4-by2-54m\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1731699158 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/vw4-by2-54m/test-createanewdashboardwitheventstreamliststreamwidget-1731699158-with-liststre\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":7618408090059389}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:39.054775+00:00\",\"modified_at\":\"2024-11-15T19:32:39.054775+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "df33eb45-0652-4c2d-fe9c-6c4e8b40c65f" + "id": "ec8e5e64-cb43-d91f-1017-79a70c5a639e" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/isx-9sv-axt", + "path": "/api/v1/dashboard/vw4-by2-54m", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"isx-9sv-axt\"}\n", + "body": "{\"deleted_dashboard_id\":\"vw4-by2-54m\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "4edec959-e2c3-a81b-3ef4-50649630ea6d" + "id": "135dc0a7-1212-26d3-edaf-c25dc6529f10" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_widget.freeze index bd4dca0739f..f3ffb02e8db 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:21.032Z \ No newline at end of file +2024-11-15T19:32:39.304Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_widget.json index 9ae45b54181..6abda01caa5 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_event_stream_widget-1731611541\",\"widgets\":[{\"definition\":{\"event_size\":\"s\",\"query\":\"example-query\",\"tags_execution\":\"and\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"event_stream\"},\"layout\":{\"height\":38,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_event_stream_widget-1731699159\",\"widgets\":[{\"definition\":{\"event_size\":\"s\",\"query\":\"example-query\",\"tags_execution\":\"and\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"event_stream\"},\"layout\":{\"height\":38,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"j92-23a-929\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_widget-1731611541\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/j92-23a-929/test-createanewdashboardwitheventstreamwidget-1731611541\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"event_size\":\"s\",\"query\":\"example-query\",\"tags_execution\":\"and\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"event_stream\"},\"layout\":{\"height\":38,\"width\":47,\"x\":0,\"y\":0},\"id\":5404510043206419}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:21.167451+00:00\",\"modified_at\":\"2024-11-14T19:12:21.167451+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"uki-9bd-4fm\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_widget-1731699159\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/uki-9bd-4fm/test-createanewdashboardwitheventstreamwidget-1731699159\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"event_size\":\"s\",\"query\":\"example-query\",\"tags_execution\":\"and\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"event_stream\"},\"layout\":{\"height\":38,\"width\":47,\"x\":0,\"y\":0},\"id\":7158238942702313}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:39.414884+00:00\",\"modified_at\":\"2024-11-15T19:32:39.414884+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "498ee265-7a8c-0a58-5ef6-d5fb74adc38a" + "id": "e6bde33d-3e30-96b3-6dfa-950685d954fa" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/j92-23a-929", + "path": "/api/v1/dashboard/uki-9bd-4fm", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"j92-23a-929\"}\n", + "body": "{\"deleted_dashboard_id\":\"uki-9bd-4fm\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "682d5430-9745-6ff2-7f05-0f0a464f9210" + "id": "73a905ec-60a3-83a4-8df6-bc47aa51cae6" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_timeline_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_timeline_widget.freeze index 2a484b2180c..ab8e7428068 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_timeline_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_timeline_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:21.382Z \ No newline at end of file +2024-11-15T19:32:39.893Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_timeline_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_timeline_widget.json index 639f4b1fdc3..3e7de67d0b2 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_timeline_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_event_timeline_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_event_timeline_widget-1731611541\",\"widgets\":[{\"definition\":{\"query\":\"status:error priority:all\",\"tags_execution\":\"and\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"event_timeline\"},\"layout\":{\"height\":9,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_event_timeline_widget-1731699159\",\"widgets\":[{\"definition\":{\"query\":\"status:error priority:all\",\"tags_execution\":\"and\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"event_timeline\"},\"layout\":{\"height\":9,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"i3x-7cz-cn3\",\"title\":\"Test-Create_a_new_dashboard_with_event_timeline_widget-1731611541\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/i3x-7cz-cn3/test-createanewdashboardwitheventtimelinewidget-1731611541\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"query\":\"status:error priority:all\",\"tags_execution\":\"and\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"event_timeline\"},\"layout\":{\"height\":9,\"width\":47,\"x\":0,\"y\":0},\"id\":2993493904946935}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:21.485271+00:00\",\"modified_at\":\"2024-11-14T19:12:21.485271+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"y4s-pyq-y6k\",\"title\":\"Test-Create_a_new_dashboard_with_event_timeline_widget-1731699159\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/y4s-pyq-y6k/test-createanewdashboardwitheventtimelinewidget-1731699159\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"query\":\"status:error priority:all\",\"tags_execution\":\"and\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"event_timeline\"},\"layout\":{\"height\":9,\"width\":47,\"x\":0,\"y\":0},\"id\":1248560916532440}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:39.998921+00:00\",\"modified_at\":\"2024-11-15T19:32:39.998921+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "b925dc37-9df1-dcb0-b3db-37a62829a9ff" + "id": "a12b7918-89bb-7c3c-fba3-fbc093860a89" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/i3x-7cz-cn3", + "path": "/api/v1/dashboard/y4s-pyq-y6k", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"i3x-7cz-cn3\"}\n", + "body": "{\"deleted_dashboard_id\":\"y4s-pyq-y6k\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "6c572ecc-12ef-d4e9-421f-b11ff56591b7" + "id": "4d00f84c-570c-2fc1-2368-fe9ddd04099c" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formula_and_function_heatmap_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formula_and_function_heatmap_widget.freeze index 5dc1866ffb8..77e419cc8a1 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formula_and_function_heatmap_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formula_and_function_heatmap_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:21.749Z \ No newline at end of file +2024-11-15T19:32:40.241Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formula_and_function_heatmap_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formula_and_function_heatmap_widget.json index e86d43d6e3b..52be96a1d6e 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formula_and_function_heatmap_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formula_and_function_heatmap_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_formula_and_function_heatmap_widget-1731611541\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"palette\":\"dog_classic\"}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"heatmap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_formula_and_function_heatmap_widget-1731699160\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"palette\":\"dog_classic\"}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"heatmap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"pn9-3xt-h79\",\"title\":\"Test-Create_a_new_dashboard_with_formula_and_function_heatmap_widget-1731611541\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/pn9-3xt-h79/test-createanewdashboardwithformulaandfunctionheatmapwidget-1731611541\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"palette\":\"dog_classic\"}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"heatmap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":479413654119352}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:21.909777+00:00\",\"modified_at\":\"2024-11-14T19:12:21.909777+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"g5w-g59-qaw\",\"title\":\"Test-Create_a_new_dashboard_with_formula_and_function_heatmap_widget-1731699160\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/g5w-g59-qaw/test-createanewdashboardwithformulaandfunctionheatmapwidget-1731699160\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"palette\":\"dog_classic\"}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"heatmap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":7260882193896439}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:40.397908+00:00\",\"modified_at\":\"2024-11-15T19:32:40.397908+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "54b3cacf-2a21-d24a-f3c6-66a8a593fdf2" + "id": "b90ad1f1-f533-0746-678e-a4389872c90b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/pn9-3xt-h79", + "path": "/api/v1/dashboard/g5w-g59-qaw", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"pn9-3xt-h79\"}\n", + "body": "{\"deleted_dashboard_id\":\"g5w-g59-qaw\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "50155118-dffd-f1dd-3eab-da0fcc334209" + "id": "37e7dcdf-1877-3355-ecb7-e5be6183519f" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget.freeze index 79d95d78807..d7d586d87a4 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:22.186Z \ No newline at end of file +2024-11-15T19:32:40.658Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget.json index e25e0712b85..a15861974bd 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget-1731611542\",\"widgets\":[{\"definition\":{\"requests\":{\"table\":{\"formulas\":[{\"alias\":\"my-query1\",\"dimension\":\"x\",\"formula\":\"query1\"},{\"alias\":\"my-query2\",\"dimension\":\"y\",\"formula\":\"query2\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\"}},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"scatterplot\"},\"id\":5346764334358972,\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget-1731699160\",\"widgets\":[{\"definition\":{\"requests\":{\"table\":{\"formulas\":[{\"alias\":\"my-query1\",\"dimension\":\"x\",\"formula\":\"query1\"},{\"alias\":\"my-query2\",\"dimension\":\"y\",\"formula\":\"query2\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\"}},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"scatterplot\"},\"id\":5346764334358972,\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"pve-j2y-xxt\",\"title\":\"Test-Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget-1731611542\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/pve-j2y-xxt/test-createanewdashboardwithformulasandfunctionsscatterplotwidget-1731611542\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":{\"table\":{\"formulas\":[{\"alias\":\"my-query1\",\"dimension\":\"x\",\"formula\":\"query1\"},{\"alias\":\"my-query2\",\"dimension\":\"y\",\"formula\":\"query2\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\"}},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"scatterplot\"},\"id\":5346764334358972,\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:22.422938+00:00\",\"modified_at\":\"2024-11-14T19:12:22.422938+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"s22-z4c-t53\",\"title\":\"Test-Create_a_new_dashboard_with_formulas_and_functions_scatterplot_widget-1731699160\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/s22-z4c-t53/test-createanewdashboardwithformulasandfunctionsscatterplotwidget-1731699160\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":{\"table\":{\"formulas\":[{\"alias\":\"my-query1\",\"dimension\":\"x\",\"formula\":\"query1\"},{\"alias\":\"my-query2\",\"dimension\":\"y\",\"formula\":\"query2\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\"}},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"scatterplot\"},\"id\":5346764334358972,\"layout\":{\"height\":2,\"width\":4,\"x\":0,\"y\":0}}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:40.879414+00:00\",\"modified_at\":\"2024-11-15T19:32:40.879414+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "ab93987c-a4c8-42e9-cb5e-c2fe9b821d8a" + "id": "6411f087-ad38-0349-2382-b58ba6cad543" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/pve-j2y-xxt", + "path": "/api/v1/dashboard/s22-z4c-t53", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"pve-j2y-xxt\"}\n", + "body": "{\"deleted_dashboard_id\":\"s22-z4c-t53\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "f344c2d3-c3fa-1d02-7ada-fb9abd7d095c" + "id": "899158ed-78ef-5480-a3bb-9fc7831387a0" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_free_text_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_free_text_widget.freeze index 62739b46432..ed6a8184806 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_free_text_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_free_text_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:22.672Z \ No newline at end of file +2024-11-15T19:32:41.138Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_free_text_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_free_text_widget.json index 76714e9ed06..e5b04b23d32 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_free_text_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_free_text_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_free_text_widget-1731611542\",\"widgets\":[{\"definition\":{\"color\":\"#4d4d4d\",\"font_size\":\"auto\",\"text\":\"Example free text\",\"text_align\":\"left\",\"type\":\"free_text\"},\"layout\":{\"height\":6,\"width\":24,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_free_text_widget-1731699161\",\"widgets\":[{\"definition\":{\"color\":\"#4d4d4d\",\"font_size\":\"auto\",\"text\":\"Example free text\",\"text_align\":\"left\",\"type\":\"free_text\"},\"layout\":{\"height\":6,\"width\":24,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"th4-kf6-2wb\",\"title\":\"Test-Create_a_new_dashboard_with_free_text_widget-1731611542\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/th4-kf6-2wb/test-createanewdashboardwithfreetextwidget-1731611542\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"color\":\"#4d4d4d\",\"font_size\":\"auto\",\"text\":\"Example free text\",\"text_align\":\"left\",\"type\":\"free_text\"},\"layout\":{\"height\":6,\"width\":24,\"x\":0,\"y\":0},\"id\":3975450487298464}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:22.794244+00:00\",\"modified_at\":\"2024-11-14T19:12:22.794244+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"gdm-q83-k4r\",\"title\":\"Test-Create_a_new_dashboard_with_free_text_widget-1731699161\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/gdm-q83-k4r/test-createanewdashboardwithfreetextwidget-1731699161\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"color\":\"#4d4d4d\",\"font_size\":\"auto\",\"text\":\"Example free text\",\"text_align\":\"left\",\"type\":\"free_text\"},\"layout\":{\"height\":6,\"width\":24,\"x\":0,\"y\":0},\"id\":3522001567186870}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:41.254783+00:00\",\"modified_at\":\"2024-11-15T19:32:41.254783+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "169e45be-686c-4e04-dd98-e49f98e0c627" + "id": "751c4e55-4c7b-cec0-69d7-8e77e127955e" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/th4-kf6-2wb", + "path": "/api/v1/dashboard/gdm-q83-k4r", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"th4-kf6-2wb\"}\n", + "body": "{\"deleted_dashboard_id\":\"gdm-q83-k4r\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "ad7f9aa9-4e4d-cc4a-c04f-4dbaffe05435" + "id": "7442cf89-8998-3cfc-9afb-5d9dda1ffad7" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_funnel_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_funnel_widget.freeze index 02e0753556e..34b5bd31c18 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_funnel_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_funnel_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:23.046Z \ No newline at end of file +2024-11-15T19:32:41.517Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_funnel_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_funnel_widget.json index 9e95830a5f4..fed60c95281 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_funnel_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_funnel_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_funnel_widget-1731611543 with funnel widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"rum\",\"query_string\":\"\",\"steps\":[]},\"request_type\":\"funnel\"}],\"type\":\"funnel\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_funnel_widget-1731699161 with funnel widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"rum\",\"query_string\":\"\",\"steps\":[]},\"request_type\":\"funnel\"}],\"type\":\"funnel\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"zta-rqr-z7r\",\"title\":\"Test-Create_a_new_dashboard_with_funnel_widget-1731611543 with funnel widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/zta-rqr-z7r/test-createanewdashboardwithfunnelwidget-1731611543-with-funnel-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"rum\",\"query_string\":\"\",\"steps\":[]},\"request_type\":\"funnel\"}],\"type\":\"funnel\"},\"id\":3177333241748468}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:23.172576+00:00\",\"modified_at\":\"2024-11-14T19:12:23.172576+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"xfs-csi-vjh\",\"title\":\"Test-Create_a_new_dashboard_with_funnel_widget-1731699161 with funnel widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/xfs-csi-vjh/test-createanewdashboardwithfunnelwidget-1731699161-with-funnel-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"rum\",\"query_string\":\"\",\"steps\":[]},\"request_type\":\"funnel\"}],\"type\":\"funnel\"},\"id\":4755008273116868}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:41.625961+00:00\",\"modified_at\":\"2024-11-15T19:32:41.625961+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "cb30f11f-bb16-199e-0d38-d2f63ac0aa46" + "id": "b0d93334-91f1-1942-83df-dc49cbcd919f" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/zta-rqr-z7r", + "path": "/api/v1/dashboard/xfs-csi-vjh", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"zta-rqr-z7r\"}\n", + "body": "{\"deleted_dashboard_id\":\"xfs-csi-vjh\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "d71dedf3-2d3d-9618-d528-ab67476dbbfc" + "id": "70813a36-3020-831a-fecc-5a6bedacd8ba" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_geomap_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_geomap_widget.freeze index 9b4feb601ec..ca55155b53f 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_geomap_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_geomap_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:23.432Z \ No newline at end of file +2024-11-15T19:32:41.892Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_geomap_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_geomap_widget.json index bc40815870c..16f2c2a4117 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_geomap_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_geomap_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_geomap_widget-1731611543\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"rum\",\"group_by\":[{\"facet\":\"@geo.country_iso_code\",\"limit\":250,\"sort\":{\"aggregation\":\"count\",\"order\":\"desc\"}}],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\",\"sort\":{\"count\":250,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"geomap\",\"view\":{\"focus\":\"WORLD\"}},\"layout\":{\"height\":30,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_geomap_widget-1731699161\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"rum\",\"group_by\":[{\"facet\":\"@geo.country_iso_code\",\"limit\":250,\"sort\":{\"aggregation\":\"count\",\"order\":\"desc\"}}],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\",\"sort\":{\"count\":250,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"geomap\",\"view\":{\"focus\":\"WORLD\"}},\"layout\":{\"height\":30,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"zfg-33v-zgb\",\"title\":\"Test-Create_a_new_dashboard_with_geomap_widget-1731611543\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/zfg-33v-zgb/test-createanewdashboardwithgeomapwidget-1731611543\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"rum\",\"group_by\":[{\"facet\":\"@geo.country_iso_code\",\"limit\":250,\"sort\":{\"aggregation\":\"count\",\"order\":\"desc\"}}],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\",\"sort\":{\"count\":250,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"geomap\",\"view\":{\"focus\":\"WORLD\"}},\"layout\":{\"height\":30,\"width\":47,\"x\":0,\"y\":0},\"id\":5382084722873723}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:23.594185+00:00\",\"modified_at\":\"2024-11-14T19:12:23.594185+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"ccn-3vg-8fw\",\"title\":\"Test-Create_a_new_dashboard_with_geomap_widget-1731699161\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/ccn-3vg-8fw/test-createanewdashboardwithgeomapwidget-1731699161\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"rum\",\"group_by\":[{\"facet\":\"@geo.country_iso_code\",\"limit\":250,\"sort\":{\"aggregation\":\"count\",\"order\":\"desc\"}}],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\",\"sort\":{\"count\":250,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"style\":{\"palette\":\"hostmap_blues\",\"palette_flip\":false},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"geomap\",\"view\":{\"focus\":\"WORLD\"}},\"layout\":{\"height\":30,\"width\":47,\"x\":0,\"y\":0},\"id\":8863325267448971}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:42.087668+00:00\",\"modified_at\":\"2024-11-15T19:32:42.087668+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "d40c08e7-75d7-b6c6-7a3e-9281f4a7f323" + "id": "289489ba-519d-03dd-0f11-e2910e70d03c" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/zfg-33v-zgb", + "path": "/api/v1/dashboard/ccn-3vg-8fw", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"zfg-33v-zgb\"}\n", + "body": "{\"deleted_dashboard_id\":\"ccn-3vg-8fw\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "b8f1454d-a70b-42d9-4cee-ed3618bb4a91" + "id": "0a41cedc-95a0-4ae6-3983-98863242b3ff" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_heatmap_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_heatmap_widget.freeze index ea2e812f90a..1b5906e790a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_heatmap_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_heatmap_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:23.844Z \ No newline at end of file +2024-11-15T19:32:42.369Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_heatmap_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_heatmap_widget.json index 06ba2164886..520b9d9c185 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_heatmap_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_heatmap_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_heatmap_widget-1731611543\",\"widgets\":[{\"definition\":{\"requests\":[{\"q\":\"avg:system.cpu.user{*} by {service}\",\"style\":{\"palette\":\"dog_classic\"}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"heatmap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_heatmap_widget-1731699162\",\"widgets\":[{\"definition\":{\"requests\":[{\"q\":\"avg:system.cpu.user{*} by {service}\",\"style\":{\"palette\":\"dog_classic\"}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"heatmap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"m55-nbe-fb2\",\"title\":\"Test-Create_a_new_dashboard_with_heatmap_widget-1731611543\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/m55-nbe-fb2/test-createanewdashboardwithheatmapwidget-1731611543\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"q\":\"avg:system.cpu.user{*} by {service}\",\"style\":{\"palette\":\"dog_classic\"}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"heatmap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":3468862583321901}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:24.011974+00:00\",\"modified_at\":\"2024-11-14T19:12:24.011974+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"2vd-tnh-iwh\",\"title\":\"Test-Create_a_new_dashboard_with_heatmap_widget-1731699162\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/2vd-tnh-iwh/test-createanewdashboardwithheatmapwidget-1731699162\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"q\":\"avg:system.cpu.user{*} by {service}\",\"style\":{\"palette\":\"dog_classic\"}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"heatmap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":3378279846394032}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:42.534303+00:00\",\"modified_at\":\"2024-11-15T19:32:42.534303+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "adee0351-4afa-c9be-5325-4dd004655d8c" + "id": "dc72ebaf-13f8-b4b9-471d-05ee67d044d1" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/m55-nbe-fb2", + "path": "/api/v1/dashboard/2vd-tnh-iwh", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"m55-nbe-fb2\"}\n", + "body": "{\"deleted_dashboard_id\":\"2vd-tnh-iwh\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "738b44e6-4c11-b505-8096-618daf3d2221" + "id": "8409ec61-5c30-ffa7-1df1-d1501a9e2622" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_hostmap_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_hostmap_widget.freeze index f71f21be5f5..30ffcd361f0 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_hostmap_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_hostmap_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:24.261Z \ No newline at end of file +2024-11-15T19:32:42.832Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_hostmap_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_hostmap_widget.json index d1d9f914a9d..3c407f858d3 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_hostmap_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_hostmap_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_hostmap_widget-1731611544\",\"widgets\":[{\"definition\":{\"no_group_hosts\":true,\"no_metric_hosts\":true,\"node_type\":\"host\",\"requests\":{\"fill\":{\"q\":\"avg:system.cpu.user{*} by {host}\"}},\"style\":{\"palette\":\"green_to_orange\",\"palette_flip\":false},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"hostmap\"},\"layout\":{\"height\":22,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":null,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_hostmap_widget-1731699162\",\"widgets\":[{\"definition\":{\"no_group_hosts\":true,\"no_metric_hosts\":true,\"node_type\":\"host\",\"requests\":{\"fill\":{\"q\":\"avg:system.cpu.user{*} by {host}\"}},\"style\":{\"palette\":\"green_to_orange\",\"palette_flip\":false},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"hostmap\"},\"layout\":{\"height\":22,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"m3c-vup-t7s\",\"title\":\"Test-Create_a_new_dashboard_with_hostmap_widget-1731611544\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/m3c-vup-t7s/test-createanewdashboardwithhostmapwidget-1731611544\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"no_group_hosts\":true,\"no_metric_hosts\":true,\"node_type\":\"host\",\"requests\":{\"fill\":{\"q\":\"avg:system.cpu.user{*} by {host}\"}},\"style\":{\"palette\":\"green_to_orange\",\"palette_flip\":false},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"hostmap\"},\"layout\":{\"height\":22,\"width\":47,\"x\":0,\"y\":0},\"id\":142423722512604}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:24.459149+00:00\",\"modified_at\":\"2024-11-14T19:12:24.459149+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"cny-7s9-9di\",\"title\":\"Test-Create_a_new_dashboard_with_hostmap_widget-1731699162\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/cny-7s9-9di/test-createanewdashboardwithhostmapwidget-1731699162\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"no_group_hosts\":true,\"no_metric_hosts\":true,\"node_type\":\"host\",\"requests\":{\"fill\":{\"q\":\"avg:system.cpu.user{*} by {host}\"}},\"style\":{\"palette\":\"green_to_orange\",\"palette_flip\":false},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"hostmap\"},\"layout\":{\"height\":22,\"width\":47,\"x\":0,\"y\":0},\"id\":4242019856060698}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:43.028167+00:00\",\"modified_at\":\"2024-11-15T19:32:43.028167+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "03b2a6a5-9acd-951f-fb2b-f18bf56e4a44" + "id": "a011f84d-44ae-ec17-29d9-3203e46cc522" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/m3c-vup-t7s", + "path": "/api/v1/dashboard/cny-7s9-9di", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"m3c-vup-t7s\"}\n", + "body": "{\"deleted_dashboard_id\":\"cny-7s9-9di\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "dd65b3ff-27fd-94bf-c451-ee6a9fe13a72" + "id": "86110b56-add0-4ab7-a02a-68215bf99381" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_iframe_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_iframe_widget.freeze index d686165468d..a4ebd12e65f 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_iframe_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_iframe_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:24.735Z \ No newline at end of file +2024-11-15T19:32:43.296Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_iframe_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_iframe_widget.json index 47422fe9a02..9148cf490a7 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_iframe_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_iframe_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_iframe_widget-1731611544\",\"widgets\":[{\"definition\":{\"type\":\"iframe\",\"url\":\"https://docs.datadoghq.com/api/latest/\"},\"layout\":{\"height\":12,\"width\":12,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_iframe_widget-1731699163\",\"widgets\":[{\"definition\":{\"type\":\"iframe\",\"url\":\"https://docs.datadoghq.com/api/latest/\"},\"layout\":{\"height\":12,\"width\":12,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"az3-9m4-ywf\",\"title\":\"Test-Create_a_new_dashboard_with_iframe_widget-1731611544\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/az3-9m4-ywf/test-createanewdashboardwithiframewidget-1731611544\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"type\":\"iframe\",\"url\":\"https://docs.datadoghq.com/api/latest/\"},\"layout\":{\"height\":12,\"width\":12,\"x\":0,\"y\":0},\"id\":3286517205333846}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:24.844136+00:00\",\"modified_at\":\"2024-11-14T19:12:24.844136+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"y65-35v-xh5\",\"title\":\"Test-Create_a_new_dashboard_with_iframe_widget-1731699163\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/y65-35v-xh5/test-createanewdashboardwithiframewidget-1731699163\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"type\":\"iframe\",\"url\":\"https://docs.datadoghq.com/api/latest/\"},\"layout\":{\"height\":12,\"width\":12,\"x\":0,\"y\":0},\"id\":1537588948372026}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:43.415569+00:00\",\"modified_at\":\"2024-11-15T19:32:43.415569+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "b7386fef-68fe-83ec-8f9e-fe4fb95487b8" + "id": "1ecbc983-1f0d-9c05-81b4-1c032c2d7a62" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/az3-9m4-ywf", + "path": "/api/v1/dashboard/y65-35v-xh5", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"az3-9m4-ywf\"}\n", + "body": "{\"deleted_dashboard_id\":\"y65-35v-xh5\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "1ad3e090-7ebb-c440-a257-6f1419ab5404" + "id": "80d807d8-e53a-ea56-cf8b-b3396b319f60" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_image_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_image_widget.freeze index a2fa3554f5c..a9bd090a877 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_image_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_image_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:25.098Z \ No newline at end of file +2024-11-15T19:32:43.681Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_image_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_image_widget.json index 2c9e08a8d10..182eb29e1aa 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_image_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_image_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_image_widget-1731611545\",\"widgets\":[{\"definition\":{\"sizing\":\"cover\",\"type\":\"image\",\"url\":\"https://example.com/image.png\"},\"layout\":{\"height\":12,\"width\":12,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_image_widget-1731699163\",\"widgets\":[{\"definition\":{\"sizing\":\"cover\",\"type\":\"image\",\"url\":\"https://example.com/image.png\"},\"layout\":{\"height\":12,\"width\":12,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"kau-9fb-ghy\",\"title\":\"Test-Create_a_new_dashboard_with_image_widget-1731611545\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/kau-9fb-ghy/test-createanewdashboardwithimagewidget-1731611545\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"sizing\":\"cover\",\"type\":\"image\",\"url\":\"https://example.com/image.png\"},\"layout\":{\"height\":12,\"width\":12,\"x\":0,\"y\":0},\"id\":4997431125308733}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:26.585068+00:00\",\"modified_at\":\"2024-11-14T19:12:26.585068+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"pep-4f2-6my\",\"title\":\"Test-Create_a_new_dashboard_with_image_widget-1731699163\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/pep-4f2-6my/test-createanewdashboardwithimagewidget-1731699163\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"sizing\":\"cover\",\"type\":\"image\",\"url\":\"https://example.com/image.png\"},\"layout\":{\"height\":12,\"width\":12,\"x\":0,\"y\":0},\"id\":560642460565424}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:43.805437+00:00\",\"modified_at\":\"2024-11-15T19:32:43.805437+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "ceb566b0-c634-23d7-3f6e-70439edb3099" + "id": "7873ee3a-ed6f-1034-6d64-7886d2a7c481" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/kau-9fb-ghy", + "path": "/api/v1/dashboard/pep-4f2-6my", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"kau-9fb-ghy\"}\n", + "body": "{\"deleted_dashboard_id\":\"pep-4f2-6my\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "c8614c78-56b8-5ebd-7660-b8dfcd3008a5" + "id": "685ef47f-bf36-6a8b-c2d0-6d7eaa10e7ff" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response.freeze index 0394c4ff437..6a7b25ee77a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:26.860Z \ No newline at end of file +2024-11-15T19:32:44.075Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response.json index effa970c114..d24528675ae 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"tags\":[\"tm:foobar\"],\"title\":\"Test-Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response-1731611546\",\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"tags\":[\"tm:foobar\"],\"title\":\"Test-Create_a_new_dashboard_with_invalid_team_tags_returns_Bad_Request_response-1731699164\",\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "a92a0182-18e9-dcc3-f3d2-2048a02f51f6" + "id": "906615d1-ec9f-8c69-c45f-2a8d6c66ecac" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget.freeze index 79c6d99bbed..3634d7245fb 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:26.943Z \ No newline at end of file +2024-11-15T19:32:44.164Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget.json index 2c07e8e4bc7..38104bdd369 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget-1731611546 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget-1731699164 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"ma4-5ie-2j7\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget-1731611546 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/ma4-5ie-2j7/test-createanewdashboardwithliststreamwidget-1731611546-with-liststream-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":6991546772131646}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:27.070407+00:00\",\"modified_at\":\"2024-11-14T19:12:27.070407+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"p6y-umd-i2r\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget-1731699164 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/p6y-umd-i2r/test-createanewdashboardwithliststreamwidget-1731699164-with-liststream-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":8526780473770766}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:44.310733+00:00\",\"modified_at\":\"2024-11-15T19:32:44.310733+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "72ba63f4-6b08-65b6-a4e5-3ba06f74f572" + "id": "bf6108d2-0278-3c77-5242-4855c6762259" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/ma4-5ie-2j7", + "path": "/api/v1/dashboard/p6y-umd-i2r", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"ma4-5ie-2j7\"}\n", + "body": "{\"deleted_dashboard_id\":\"p6y-umd-i2r\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "de0b1f61-f6ab-c716-17e4-85b8392e9d05" + "id": "c27f79f5-bf2f-99bc-7113-b515aa518a7f" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC.freeze index 3c9d4d248ae..2f672f36885 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC.freeze @@ -1 +1 @@ -2024-11-14T19:12:27.325Z \ No newline at end of file +2024-11-15T19:32:44.573Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC.json index cd0fb909777..d53a03fb0b1 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC-1731611547 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"sort\":{\"column\":\"timestamp\",\"order\":\"asc\"}},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC-1731699164 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"sort\":{\"column\":\"timestamp\",\"order\":\"asc\"}},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"n3x-b6f-m4t\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC-1731611547 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/n3x-b6f-m4t/test-createanewdashboardwithliststreamwidgetwithavalidsortparameterasc-173161154\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"sort\":{\"column\":\"timestamp\",\"order\":\"asc\"}},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":7419137925938597}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:27.456034+00:00\",\"modified_at\":\"2024-11-14T19:12:27.456034+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"hmc-wyw-pru\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_ASC-1731699164 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/hmc-wyw-pru/test-createanewdashboardwithliststreamwidgetwithavalidsortparameterasc-173169916\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"sort\":{\"column\":\"timestamp\",\"order\":\"asc\"}},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":7981858941071295}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:44.713178+00:00\",\"modified_at\":\"2024-11-15T19:32:44.713178+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "17bc17e5-89a9-276b-f9a1-74588914c40b" + "id": "fc3cb4c0-02dd-c62a-ba7f-1f286122f3a7" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/n3x-b6f-m4t", + "path": "/api/v1/dashboard/hmc-wyw-pru", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"n3x-b6f-m4t\"}\n", + "body": "{\"deleted_dashboard_id\":\"hmc-wyw-pru\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "741d67d7-5cf8-b78a-490e-8305c4325895" + "id": "6797055e-2e31-b11d-33ac-5c5ff68064bb" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC.freeze index 0b1410ad375..a55ce98082f 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC.freeze @@ -1 +1 @@ -2024-11-14T19:12:27.718Z \ No newline at end of file +2024-11-15T19:32:44.969Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC.json index c611eb92893..a71bd92b26f 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC-1731611547 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"sort\":{\"column\":\"timestamp\",\"order\":\"desc\"}},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC-1731699164 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"sort\":{\"column\":\"timestamp\",\"order\":\"desc\"}},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"2sk-pz4-gv6\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC-1731611547 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/2sk-pz4-gv6/test-createanewdashboardwithliststreamwidgetwithavalidsortparameterdesc-17316115\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"sort\":{\"column\":\"timestamp\",\"order\":\"desc\"}},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":7607126425701824}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:27.856660+00:00\",\"modified_at\":\"2024-11-14T19:12:27.856660+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"8er-jb3-ctv\",\"title\":\"Test-Create_a_new_dashboard_with_list_stream_widget_with_a_valid_sort_parameter_DESC-1731699164 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/8er-jb3-ctv/test-createanewdashboardwithliststreamwidgetwithavalidsortparameterdesc-17316991\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"sort\":{\"column\":\"timestamp\",\"order\":\"desc\"}},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":6906120015083123}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:45.108245+00:00\",\"modified_at\":\"2024-11-15T19:32:45.108245+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "55338748-ec7e-c9c0-12b8-0c74dd445d5f" + "id": "f7af0e4e-f0e7-6752-e868-c14f1a1db85b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/2sk-pz4-gv6", + "path": "/api/v1/dashboard/8er-jb3-ctv", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"2sk-pz4-gv6\"}\n", + "body": "{\"deleted_dashboard_id\":\"8er-jb3-ctv\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "04f8a94c-4d65-bc9a-6c1f-6f95658b6211" + "id": "15c0162f-eb56-ed74-106d-b0def9bfb571" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget.freeze index 5cc6e477bcc..f8b63a50799 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:28.087Z \ No newline at end of file +2024-11-15T19:32:45.388Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget.json index 9aa269e7f3e..17829a01705 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget-1731611548 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"@status\",\"width\":\"compact\"},{\"field\":\"@content.prompt\",\"width\":\"auto\"},{\"field\":\"@content.response.content\",\"width\":\"auto\"},{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"@ml_app\",\"width\":\"auto\"},{\"field\":\"service\",\"width\":\"auto\"},{\"field\":\"@meta.evaluations.quality\",\"width\":\"auto\"},{\"field\":\"@meta.evaluations.security\",\"width\":\"auto\"},{\"field\":\"@duration\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"llm_observability_stream\",\"indexes\":[],\"query_string\":\"@event_type:span @parent_id:undefined\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget-1731699165 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"@status\",\"width\":\"compact\"},{\"field\":\"@content.prompt\",\"width\":\"auto\"},{\"field\":\"@content.response.content\",\"width\":\"auto\"},{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"@ml_app\",\"width\":\"auto\"},{\"field\":\"service\",\"width\":\"auto\"},{\"field\":\"@meta.evaluations.quality\",\"width\":\"auto\"},{\"field\":\"@meta.evaluations.security\",\"width\":\"auto\"},{\"field\":\"@duration\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"llm_observability_stream\",\"indexes\":[],\"query_string\":\"@event_type:span @parent_id:undefined\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"q5w-24v-wij\",\"title\":\"Test-Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget-1731611548 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/q5w-24v-wij/test-createanewdashboardwithllmobservabilitystreamliststreamwidget-1731611548-wi\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"@status\",\"width\":\"compact\"},{\"field\":\"@content.prompt\",\"width\":\"auto\"},{\"field\":\"@content.response.content\",\"width\":\"auto\"},{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"@ml_app\",\"width\":\"auto\"},{\"field\":\"service\",\"width\":\"auto\"},{\"field\":\"@meta.evaluations.quality\",\"width\":\"auto\"},{\"field\":\"@meta.evaluations.security\",\"width\":\"auto\"},{\"field\":\"@duration\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"llm_observability_stream\",\"indexes\":[],\"query_string\":\"@event_type:span @parent_id:undefined\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":4030641646825660}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:28.223657+00:00\",\"modified_at\":\"2024-11-14T19:12:28.223657+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"m3z-v96-834\",\"title\":\"Test-Create_a_new_dashboard_with_llm_observability_stream_list_stream_widget-1731699165 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/m3z-v96-834/test-createanewdashboardwithllmobservabilitystreamliststreamwidget-1731699165-wi\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"@status\",\"width\":\"compact\"},{\"field\":\"@content.prompt\",\"width\":\"auto\"},{\"field\":\"@content.response.content\",\"width\":\"auto\"},{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"@ml_app\",\"width\":\"auto\"},{\"field\":\"service\",\"width\":\"auto\"},{\"field\":\"@meta.evaluations.quality\",\"width\":\"auto\"},{\"field\":\"@meta.evaluations.security\",\"width\":\"auto\"},{\"field\":\"@duration\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"llm_observability_stream\",\"indexes\":[],\"query_string\":\"@event_type:span @parent_id:undefined\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":618569487157814}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:45.538148+00:00\",\"modified_at\":\"2024-11-15T19:32:45.538148+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "c6046316-4147-aaac-516b-a97e1ec1d7a0" + "id": "c640bd6a-d9ed-89b6-876a-d2a4b9c483df" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/q5w-24v-wij", + "path": "/api/v1/dashboard/m3z-v96-834", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"q5w-24v-wij\"}\n", + "body": "{\"deleted_dashboard_id\":\"m3z-v96-834\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "a1133db7-1541-bfab-089c-f9cbef103c2a" + "id": "ec1d9fbf-8917-5d58-e40c-42f74dbdaf6c" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_log_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_log_stream_widget.freeze index ae73074e04a..304f9b4d866 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_log_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_log_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:28.541Z \ No newline at end of file +2024-11-15T19:32:45.816Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_log_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_log_stream_widget.json index f04d096dca4..d0547d25ecd 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_log_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_log_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_log_stream_widget-1731611548\",\"widgets\":[{\"definition\":{\"columns\":[\"host\",\"service\"],\"indexes\":[\"main\"],\"message_display\":\"expanded-md\",\"query\":\"\",\"show_date_column\":true,\"show_message_column\":true,\"sort\":{\"column\":\"time\",\"order\":\"desc\"},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"log_stream\"},\"layout\":{\"height\":36,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_log_stream_widget-1731699165\",\"widgets\":[{\"definition\":{\"columns\":[\"host\",\"service\"],\"indexes\":[\"main\"],\"message_display\":\"expanded-md\",\"query\":\"\",\"show_date_column\":true,\"show_message_column\":true,\"sort\":{\"column\":\"time\",\"order\":\"desc\"},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"log_stream\"},\"layout\":{\"height\":36,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"ehu-t86-88d\",\"title\":\"Test-Create_a_new_dashboard_with_log_stream_widget-1731611548\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/ehu-t86-88d/test-createanewdashboardwithlogstreamwidget-1731611548\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"columns\":[\"host\",\"service\"],\"indexes\":[\"main\"],\"message_display\":\"expanded-md\",\"query\":\"\",\"show_date_column\":true,\"show_message_column\":true,\"sort\":{\"column\":\"time\",\"order\":\"desc\"},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"log_stream\"},\"layout\":{\"height\":36,\"width\":47,\"x\":0,\"y\":0},\"id\":3386822752996121}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:28.641489+00:00\",\"modified_at\":\"2024-11-14T19:12:28.641489+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"eb9-ta5-d6g\",\"title\":\"Test-Create_a_new_dashboard_with_log_stream_widget-1731699165\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/eb9-ta5-d6g/test-createanewdashboardwithlogstreamwidget-1731699165\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"columns\":[\"host\",\"service\"],\"indexes\":[\"main\"],\"message_display\":\"expanded-md\",\"query\":\"\",\"show_date_column\":true,\"show_message_column\":true,\"sort\":{\"column\":\"time\",\"order\":\"desc\"},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"log_stream\"},\"layout\":{\"height\":36,\"width\":47,\"x\":0,\"y\":0},\"id\":2405546418579587}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:45.939890+00:00\",\"modified_at\":\"2024-11-15T19:32:45.939890+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "efbc1dcf-6642-1023-9302-b79581d086c0" + "id": "b332f1bd-b348-5ad6-1d58-53eda9f1afb3" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/ehu-t86-88d", + "path": "/api/v1/dashboard/eb9-ta5-d6g", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"ehu-t86-88d\"}\n", + "body": "{\"deleted_dashboard_id\":\"eb9-ta5-d6g\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "17d6daae-2c61-00a8-c831-a6009c8140e9" + "id": "4d547671-4d3a-0515-17cb-e72d05a735a4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.freeze index 04536bca733..d64ee9657a5 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:29.279Z \ No newline at end of file +2024-11-15T19:32:46.627Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.json index 660a4420ac0..0466ff6b0ed 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1731611549 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1731699166 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"xht-7tn-3si\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1731611549 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/xht-7tn-3si/test-createanewdashboardwithlogspatternstreamliststreamwidget-1731611549-with-li\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":3825798675008332}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:29.422196+00:00\",\"modified_at\":\"2024-11-14T19:12:29.422196+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"hem-inu-je6\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1731699166 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/hem-inu-je6/test-createanewdashboardwithlogspatternstreamliststreamwidget-1731699166-with-li\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":4012469646916199}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:46.772627+00:00\",\"modified_at\":\"2024-11-15T19:32:46.772627+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "2ecc643f-7f75-5f9e-658a-444b0ceeac5d" + "id": "89e48bc5-2640-1ef4-9327-462de1319fdf" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/xht-7tn-3si", + "path": "/api/v1/dashboard/hem-inu-je6", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"xht-7tn-3si\"}\n", + "body": "{\"deleted_dashboard_id\":\"hem-inu-je6\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "bbfead38-8fb4-1b5c-00db-66645caf7aa4" + "id": "b6052546-b3c5-ba38-24b5-c192fda2fb63" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter.freeze index 9fc5626d3b5..e14f7424cff 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter.freeze @@ -1 +1 @@ -2024-11-14T19:12:28.873Z \ No newline at end of file +2024-11-15T19:32:46.182Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter.json index 22bf1cd9533..b7d4de38475 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter-1731611548 with query table widget and storage parameter\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"cell_display_mode\":\"bar\",\"conditional_formats\":[],\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"},\"storage\":\"online_archives\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":50,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"type\":\"query_table\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter-1731699166 with query table widget and storage parameter\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"cell_display_mode\":\"bar\",\"conditional_formats\":[],\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"},\"storage\":\"online_archives\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":50,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"type\":\"query_table\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"cum-shp-mz2\",\"title\":\"Test-Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter-1731611548 with query table widget and storage parameter\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/cum-shp-mz2/test-createanewdashboardwithlogsquerytablewidgetandstorageparameter-1731611548-w\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"cell_display_mode\":\"bar\",\"conditional_formats\":[],\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"},\"storage\":\"online_archives\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":50,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"type\":\"query_table\"},\"id\":7464174593696253}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:29.025064+00:00\",\"modified_at\":\"2024-11-14T19:12:29.025064+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"3bi-3is-gj3\",\"title\":\"Test-Create_a_new_dashboard_with_logs_query_table_widget_and_storage_parameter-1731699166 with query table widget and storage parameter\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/3bi-3is-gj3/test-createanewdashboardwithlogsquerytablewidgetandstorageparameter-1731699166-w\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"cell_display_mode\":\"bar\",\"conditional_formats\":[],\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"},\"storage\":\"online_archives\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":50,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"type\":\"query_table\"},\"id\":6318589982774362}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:46.331888+00:00\",\"modified_at\":\"2024-11-15T19:32:46.331888+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "6e2b5712-8dfc-852f-6734-bbbd054b1e58" + "id": "08c70727-f2db-79da-235c-6dcb9f323c05" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/cum-shp-mz2", + "path": "/api/v1/dashboard/3bi-3is-gj3", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"cum-shp-mz2\"}\n", + "body": "{\"deleted_dashboard_id\":\"3bi-3is-gj3\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "69bbc9fa-253f-08d5-bc3a-cc08fdfadfb3" + "id": "8af836b4-cf6f-e1f8-bf69-32986a9e2ec0" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter.freeze index b400e730ba1..84b0221f3cd 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter.freeze @@ -1 +1 @@ -2024-11-14T19:12:29.695Z \ No newline at end of file +2024-11-15T19:32:47.028Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter.json index ef9aab44aa2..18d29f58455 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter-1731611549 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"query_string\":\"\",\"storage\":\"hot\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter-1731699167 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"query_string\":\"\",\"storage\":\"hot\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"u2y-5dh-mxx\",\"title\":\"Test-Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter-1731611549 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/u2y-5dh-mxx/test-createanewdashboardwithlogsstreamliststreamwidgetandstorageparameter-173161\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"query_string\":\"\",\"storage\":\"hot\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":2341700770963801}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:29.821235+00:00\",\"modified_at\":\"2024-11-14T19:12:29.821235+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"dbj-z8f-jps\",\"title\":\"Test-Create_a_new_dashboard_with_logs_stream_list_stream_widget_and_storage_parameter-1731699167 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/dbj-z8f-jps/test-createanewdashboardwithlogsstreamliststreamwidgetandstorageparameter-173169\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_stream\",\"query_string\":\"\",\"storage\":\"hot\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":4149027757234322}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:47.158374+00:00\",\"modified_at\":\"2024-11-15T19:32:47.158374+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "040f7b07-e54d-e867-af1d-fcac77afa2c9" + "id": "aa0d9edf-f360-4891-a702-252c9873ed3d" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/u2y-5dh-mxx", + "path": "/api/v1/dashboard/dbj-z8f-jps", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"u2y-5dh-mxx\"}\n", + "body": "{\"deleted_dashboard_id\":\"dbj-z8f-jps\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "c26c3bd4-34e2-b0fb-c537-56524f162a55" + "id": "25004f6c-3b77-139c-b38f-66de09a8c6e6" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget.freeze index 0b7120dba79..f4fee5e0b25 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:30.139Z \ No newline at end of file +2024-11-15T19:32:47.436Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget.json index fe03f70d90b..d5f8727801e 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget-1731611550 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"compute\":[{\"aggregation\":\"count\",\"facet\":\"service\"}],\"data_source\":\"logs_transaction_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget-1731699167 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"compute\":[{\"aggregation\":\"count\",\"facet\":\"service\"}],\"data_source\":\"logs_transaction_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"yp5-u4f-myz\",\"title\":\"Test-Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget-1731611550 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/yp5-u4f-myz/test-createanewdashboardwithlogstransactionstreamliststreamwidget-1731611550-wit\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"compute\":[{\"aggregation\":\"count\",\"facet\":\"service\"}],\"data_source\":\"logs_transaction_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":7241154271346052}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:30.290344+00:00\",\"modified_at\":\"2024-11-14T19:12:30.290344+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"6dq-36y-p59\",\"title\":\"Test-Create_a_new_dashboard_with_logs_transaction_stream_list_stream_widget-1731699167 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/6dq-36y-p59/test-createanewdashboardwithlogstransactionstreamliststreamwidget-1731699167-wit\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"compute\":[{\"aggregation\":\"count\",\"facet\":\"service\"}],\"data_source\":\"logs_transaction_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":2144413846825527}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:47.601494+00:00\",\"modified_at\":\"2024-11-15T19:32:47.601494+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "c634d7a2-66c5-b3a4-7a19-4f26c0998dbc" + "id": "4605ebab-b926-47bb-09a4-314f46a61fb3" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/yp5-u4f-myz", + "path": "/api/v1/dashboard/6dq-36y-p59", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"yp5-u4f-myz\"}\n", + "body": "{\"deleted_dashboard_id\":\"6dq-36y-p59\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "222ab516-c42e-0efb-e72d-52887d7382c2" + "id": "f5346fa5-4bde-3c19-3ddc-d6df5d835f6c" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget.freeze index 19f51beab76..52905a48224 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:30.526Z \ No newline at end of file +2024-11-15T19:32:47.864Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget.json index 2d45b27b39f..e36680cef66 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_manage_status_widget-1731611550\",\"widgets\":[{\"definition\":{\"color_preference\":\"text\",\"count\":50,\"display_format\":\"countsAndList\",\"hide_zero_counts\":true,\"query\":\"\",\"show_last_triggered\":false,\"sort\":\"status,asc\",\"start\":0,\"summary_type\":\"monitors\",\"type\":\"manage_status\"},\"layout\":{\"height\":25,\"width\":50,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_manage_status_widget-1731699167\",\"widgets\":[{\"definition\":{\"color_preference\":\"text\",\"count\":50,\"display_format\":\"countsAndList\",\"hide_zero_counts\":true,\"query\":\"\",\"show_last_triggered\":false,\"sort\":\"status,asc\",\"start\":0,\"summary_type\":\"monitors\",\"type\":\"manage_status\"},\"layout\":{\"height\":25,\"width\":50,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"4gd-vwv-ksd\",\"title\":\"Test-Create_a_new_dashboard_with_manage_status_widget-1731611550\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/4gd-vwv-ksd/test-createanewdashboardwithmanagestatuswidget-1731611550\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"color_preference\":\"text\",\"count\":50,\"display_format\":\"countsAndList\",\"hide_zero_counts\":true,\"query\":\"\",\"show_last_triggered\":false,\"sort\":\"status,asc\",\"start\":0,\"summary_type\":\"monitors\",\"type\":\"manage_status\"},\"layout\":{\"height\":25,\"width\":50,\"x\":0,\"y\":0},\"id\":7726390517396795}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:30.649609+00:00\",\"modified_at\":\"2024-11-14T19:12:30.649609+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"5qz-2zt-tj6\",\"title\":\"Test-Create_a_new_dashboard_with_manage_status_widget-1731699167\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/5qz-2zt-tj6/test-createanewdashboardwithmanagestatuswidget-1731699167\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"color_preference\":\"text\",\"count\":50,\"display_format\":\"countsAndList\",\"hide_zero_counts\":true,\"query\":\"\",\"show_last_triggered\":false,\"sort\":\"status,asc\",\"start\":0,\"summary_type\":\"monitors\",\"type\":\"manage_status\"},\"layout\":{\"height\":25,\"width\":50,\"x\":0,\"y\":0},\"id\":7923339019354632}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:47.979194+00:00\",\"modified_at\":\"2024-11-15T19:32:47.979194+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "0f8d3f80-61f1-9157-01d1-db8241bf1af7" + "id": "02addfa6-187c-095c-04e7-bf0d761edc71" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/4gd-vwv-ksd", + "path": "/api/v1/dashboard/5qz-2zt-tj6", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"4gd-vwv-ksd\"}\n", + "body": "{\"deleted_dashboard_id\":\"5qz-2zt-tj6\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "782e9fbf-1453-fa60-b626-4913bf94ede5" + "id": "cab71198-8ced-e1b3-35b0-186ea6c14f10" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter.freeze index d693baaa3d1..b1b84b3a589 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter.freeze @@ -1 +1 @@ -2024-11-14T19:12:30.924Z \ No newline at end of file +2024-11-15T19:32:48.241Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter.json index a7bd2126504..abf09a56b56 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter-1731611550\",\"widgets\":[{\"definition\":{\"color_preference\":\"text\",\"count\":50,\"display_format\":\"countsAndList\",\"hide_zero_counts\":true,\"query\":\"\",\"show_last_triggered\":false,\"show_priority\":false,\"sort\":\"priority,asc\",\"start\":0,\"summary_type\":\"monitors\",\"type\":\"manage_status\"},\"layout\":{\"height\":25,\"width\":50,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter-1731699168\",\"widgets\":[{\"definition\":{\"color_preference\":\"text\",\"count\":50,\"display_format\":\"countsAndList\",\"hide_zero_counts\":true,\"query\":\"\",\"show_last_triggered\":false,\"show_priority\":false,\"sort\":\"priority,asc\",\"start\":0,\"summary_type\":\"monitors\",\"type\":\"manage_status\"},\"layout\":{\"height\":25,\"width\":50,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"gx6-rx5-pm6\",\"title\":\"Test-Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter-1731611550\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/gx6-rx5-pm6/test-createanewdashboardwithmanagestatuswidgetandshowpriorityparameter-173161155\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"color_preference\":\"text\",\"count\":50,\"display_format\":\"countsAndList\",\"hide_zero_counts\":true,\"query\":\"\",\"show_last_triggered\":false,\"show_priority\":false,\"sort\":\"priority,asc\",\"start\":0,\"summary_type\":\"monitors\",\"type\":\"manage_status\"},\"layout\":{\"height\":25,\"width\":50,\"x\":0,\"y\":0},\"id\":7049477000335202}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:31.037894+00:00\",\"modified_at\":\"2024-11-14T19:12:31.037894+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"u5w-9hp-tch\",\"title\":\"Test-Create_a_new_dashboard_with_manage_status_widget_and_show_priority_parameter-1731699168\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/u5w-9hp-tch/test-createanewdashboardwithmanagestatuswidgetandshowpriorityparameter-173169916\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"color_preference\":\"text\",\"count\":50,\"display_format\":\"countsAndList\",\"hide_zero_counts\":true,\"query\":\"\",\"show_last_triggered\":false,\"show_priority\":false,\"sort\":\"priority,asc\",\"start\":0,\"summary_type\":\"monitors\",\"type\":\"manage_status\"},\"layout\":{\"height\":25,\"width\":50,\"x\":0,\"y\":0},\"id\":2266858598981736}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:48.341884+00:00\",\"modified_at\":\"2024-11-15T19:32:48.341884+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "ba72895a-fb3a-034d-e6a6-e0f3486a8aa0" + "id": "3d368208-ef26-7c0e-6d59-9757e81031fe" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/gx6-rx5-pm6", + "path": "/api/v1/dashboard/u5w-9hp-tch", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"gx6-rx5-pm6\"}\n", + "body": "{\"deleted_dashboard_id\":\"u5w-9hp-tch\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "2a38b417-e2c3-d6c4-1ea9-cc8168412d68" + "id": "a17c6357-c0bd-22af-bbd6-590ab2d3ad8d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_note_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_note_widget.freeze index 898d8d7b94d..fd18f5c1839 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_note_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_note_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:31.278Z \ No newline at end of file +2024-11-15T19:32:48.573Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_note_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_note_widget.json index 79d34232392..1db64c331d1 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_note_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_note_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_note_widget-1731611551\",\"widgets\":[{\"definition\":{\"content\":\"# Example Note\",\"type\":\"note\"},\"layout\":{\"height\":24,\"width\":18,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_note_widget-1731699168\",\"widgets\":[{\"definition\":{\"content\":\"# Example Note\",\"type\":\"note\"},\"layout\":{\"height\":24,\"width\":18,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"tsm-3qy-my2\",\"title\":\"Test-Create_a_new_dashboard_with_note_widget-1731611551\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/tsm-3qy-my2/test-createanewdashboardwithnotewidget-1731611551\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"content\":\"# Example Note\",\"type\":\"note\"},\"layout\":{\"height\":24,\"width\":18,\"x\":0,\"y\":0},\"id\":1906638315550440}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:31.403064+00:00\",\"modified_at\":\"2024-11-14T19:12:31.403064+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"9e4-auv-jbr\",\"title\":\"Test-Create_a_new_dashboard_with_note_widget-1731699168\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/9e4-auv-jbr/test-createanewdashboardwithnotewidget-1731699168\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"content\":\"# Example Note\",\"type\":\"note\"},\"layout\":{\"height\":24,\"width\":18,\"x\":0,\"y\":0},\"id\":2240709340551044}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:48.693496+00:00\",\"modified_at\":\"2024-11-15T19:32:48.693496+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "e805f242-e952-c8b5-169f-511c364eaa3a" + "id": "2f5996f8-d5a0-23fb-26c7-8e74545acafb" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/tsm-3qy-my2", + "path": "/api/v1/dashboard/9e4-auv-jbr", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"tsm-3qy-my2\"}\n", + "body": "{\"deleted_dashboard_id\":\"9e4-auv-jbr\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "0c4fbc0b-ce6a-8541-8c64-acfc203e2dad" + "id": "26aef477-a2e6-d6f4-7d88-6eb9e5dac104" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.freeze index 99a183cc100..0ac11d7f94d 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:31.697Z \ No newline at end of file +2024-11-15T19:32:48.941Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.json index 85520e752c8..58a95520a8b 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"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-1731611551\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"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-1731699168\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"65d67c88-a2bc-11ef-8891-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1731611551\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":7590597140416618}]},\"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\":\"a20c7506-3e28-11ef-8b83-5264320c310a\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"a20c7506-3e28-11ef-8b83-5264320c310a\",\"attributes\":{\"name\":\"Anika Maskara\",\"email\":\"anika.maskara@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"65c564d0-a388-11ef-a7cd-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1731699168\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":5420081943814583}]},\"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\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "501df9ce-5818-14a8-bcf7-51c04b3f2383" + "id": "eddbfb86-c29f-42c0-de22-89f72e26b97e" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"description\",\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1731611551 with powerpack widget\",\"widgets\":[{\"definition\":{\"powerpack_id\":\"65d67c88-a2bc-11ef-8891-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}}]}" + "json": "{\"description\":\"description\",\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1731699168 with powerpack widget\",\"widgets\":[{\"definition\":{\"powerpack_id\":\"65c564d0-a388-11ef-a7cd-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}}]}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"268-7rr-dpj\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1731611551 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/268-7rr-dpj/test-createanewdashboardwithpowerpackwidget-1731611551-with-powerpack-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"powerpack_id\":\"65d67c88-a2bc-11ef-8891-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\":185636903135115}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:32.040409+00:00\",\"modified_at\":\"2024-11-14T19:12:32.040409+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"zb2-4ez-tuk\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1731699168 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/zb2-4ez-tuk/test-createanewdashboardwithpowerpackwidget-1731699168-with-powerpack-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"powerpack_id\":\"65c564d0-a388-11ef-a7cd-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\":648463768842724}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:49.465110+00:00\",\"modified_at\":\"2024-11-15T19:32:49.465110+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "42522787-2a69-e069-1b1a-934a947dadd4" + "id": "031194be-4f2f-2bf7-0fd6-f98c70358dcc" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/268-7rr-dpj", + "path": "/api/v1/dashboard/zb2-4ez-tuk", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"268-7rr-dpj\"}\n", + "body": "{\"deleted_dashboard_id\":\"zb2-4ez-tuk\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,13 +83,13 @@ "timeToLive": { "unlimited": true }, - "id": "47c9d927-5c22-dec6-b027-9d5898375d95" + "id": "d35d99c1-81a2-5a68-b773-a0d33035e44b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/65d67c88-a2bc-11ef-8891-da7ad0900002", + "path": "/api/v2/powerpacks/65c564d0-a388-11ef-a7cd-da7ad0900002", "keepAlive": false, "secure": true }, @@ -108,6 +108,6 @@ "timeToLive": { "unlimited": true }, - "id": "270e4c3f-3086-ca21-4137-47fb768be977" + "id": "70923b44-5356-0214-fe0e-91d99d4b2a32" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget.freeze index 54a8d2043df..db6c587397b 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:32.628Z \ No newline at end of file +2024-11-15T19:32:50.050Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget.json index 6e075479de4..ecc04435018 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_query_table_widget-1731611552\",\"widgets\":[{\"definition\":{\"has_search_bar\":\"auto\",\"requests\":[{\"formulas\":[{\"cell_display_mode\":\"bar\",\"conditional_formats\":[],\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {host}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":500,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":32,\"width\":54,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_query_table_widget-1731699170\",\"widgets\":[{\"definition\":{\"has_search_bar\":\"auto\",\"requests\":[{\"formulas\":[{\"cell_display_mode\":\"bar\",\"conditional_formats\":[],\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {host}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":500,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":32,\"width\":54,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"vx3-uy4-r8e\",\"title\":\"Test-Create_a_new_dashboard_with_query_table_widget-1731611552\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/vx3-uy4-r8e/test-createanewdashboardwithquerytablewidget-1731611552\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"has_search_bar\":\"auto\",\"requests\":[{\"formulas\":[{\"cell_display_mode\":\"bar\",\"conditional_formats\":[],\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {host}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":500,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":32,\"width\":54,\"x\":0,\"y\":0},\"id\":3858788506982676}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:32.810607+00:00\",\"modified_at\":\"2024-11-14T19:12:32.810607+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"7q6-h26-j3u\",\"title\":\"Test-Create_a_new_dashboard_with_query_table_widget-1731699170\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/7q6-h26-j3u/test-createanewdashboardwithquerytablewidget-1731699170\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"has_search_bar\":\"auto\",\"requests\":[{\"formulas\":[{\"cell_display_mode\":\"bar\",\"conditional_formats\":[],\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {host}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":500,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":32,\"width\":54,\"x\":0,\"y\":0},\"id\":6518783990420616}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:50.203807+00:00\",\"modified_at\":\"2024-11-15T19:32:50.203807+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "2b20b709-11c7-fc8a-547b-c869c96e1b5c" + "id": "f982a3ca-9d91-d46b-ec92-c2e7f22afb55" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/vx3-uy4-r8e", + "path": "/api/v1/dashboard/7q6-h26-j3u", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"vx3-uy4-r8e\"}\n", + "body": "{\"deleted_dashboard_id\":\"7q6-h26-j3u\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "a09292b9-e539-2dc1-8d99-12c27af13196" + "id": "c804cc1c-7114-914b-7bbf-eceb3bd627e6" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget_and_text_formatting.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget_and_text_formatting.freeze index c49849aab5a..956113bea8e 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget_and_text_formatting.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget_and_text_formatting.freeze @@ -1 +1 @@ -2024-11-14T19:12:33.073Z \ No newline at end of file +2024-11-15T19:32:50.487Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget_and_text_formatting.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget_and_text_formatting.json index 980796602c6..35b87c0ec05 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget_and_text_formatting.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_table_widget_and_text_formatting.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_query_table_widget_and_text_formatting-1731611553\",\"widgets\":[{\"definition\":{\"has_search_bar\":\"never\",\"requests\":[{\"formulas\":[],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:aws.stream.globalaccelerator.processed_bytes_in{*} by {aws_account,acceleratoripaddress}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:aws.stream.globalaccelerator.processed_bytes_out{*} by {aws_account,acceleratoripaddress}\"}],\"response_format\":\"scalar\",\"text_formats\":[[{\"match\":{\"type\":\"is\",\"value\":\"fruit\"},\"palette\":\"white_on_red\",\"replace\":{\"type\":\"all\",\"with\":\"vegetable\"}},{\"custom_bg_color\":\"#632ca6\",\"match\":{\"type\":\"is\",\"value\":\"animal\"},\"palette\":\"custom_bg\"},{\"match\":{\"type\":\"is\",\"value\":\"robot\"},\"palette\":\"red_on_white\"},{\"match\":{\"type\":\"is\",\"value\":\"ai\"},\"palette\":\"yellow_on_white\"}],[{\"match\":{\"type\":\"is_not\",\"value\":\"xyz\"},\"palette\":\"white_on_yellow\"}],[{\"match\":{\"type\":\"contains\",\"value\":\"test\"},\"palette\":\"white_on_green\",\"replace\":{\"type\":\"all\",\"with\":\"vegetable\"}}],[{\"match\":{\"type\":\"does_not_contain\",\"value\":\"blah\"},\"palette\":\"black_on_light_red\"}],[{\"match\":{\"type\":\"starts_with\",\"value\":\"abc\"},\"palette\":\"black_on_light_yellow\"}],[{\"match\":{\"type\":\"ends_with\",\"value\":\"xyz\"},\"palette\":\"black_on_light_green\"},{\"match\":{\"type\":\"ends_with\",\"value\":\"zzz\"},\"palette\":\"green_on_white\"},{\"custom_fg_color\":\"#632ca6\",\"match\":{\"type\":\"is\",\"value\":\"animal\"},\"palette\":\"custom_text\"}]]}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_query_table_widget_and_text_formatting-1731699170\",\"widgets\":[{\"definition\":{\"has_search_bar\":\"never\",\"requests\":[{\"formulas\":[],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:aws.stream.globalaccelerator.processed_bytes_in{*} by {aws_account,acceleratoripaddress}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:aws.stream.globalaccelerator.processed_bytes_out{*} by {aws_account,acceleratoripaddress}\"}],\"response_format\":\"scalar\",\"text_formats\":[[{\"match\":{\"type\":\"is\",\"value\":\"fruit\"},\"palette\":\"white_on_red\",\"replace\":{\"type\":\"all\",\"with\":\"vegetable\"}},{\"custom_bg_color\":\"#632ca6\",\"match\":{\"type\":\"is\",\"value\":\"animal\"},\"palette\":\"custom_bg\"},{\"match\":{\"type\":\"is\",\"value\":\"robot\"},\"palette\":\"red_on_white\"},{\"match\":{\"type\":\"is\",\"value\":\"ai\"},\"palette\":\"yellow_on_white\"}],[{\"match\":{\"type\":\"is_not\",\"value\":\"xyz\"},\"palette\":\"white_on_yellow\"}],[{\"match\":{\"type\":\"contains\",\"value\":\"test\"},\"palette\":\"white_on_green\",\"replace\":{\"type\":\"all\",\"with\":\"vegetable\"}}],[{\"match\":{\"type\":\"does_not_contain\",\"value\":\"blah\"},\"palette\":\"black_on_light_red\"}],[{\"match\":{\"type\":\"starts_with\",\"value\":\"abc\"},\"palette\":\"black_on_light_yellow\"}],[{\"match\":{\"type\":\"ends_with\",\"value\":\"xyz\"},\"palette\":\"black_on_light_green\"},{\"match\":{\"type\":\"ends_with\",\"value\":\"zzz\"},\"palette\":\"green_on_white\"},{\"custom_fg_color\":\"#632ca6\",\"match\":{\"type\":\"is\",\"value\":\"animal\"},\"palette\":\"custom_text\"}]]}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"cj4-7yg-224\",\"title\":\"Test-Create_a_new_dashboard_with_query_table_widget_and_text_formatting-1731611553\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/cj4-7yg-224/test-createanewdashboardwithquerytablewidgetandtextformatting-1731611553\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"has_search_bar\":\"never\",\"requests\":[{\"formulas\":[],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:aws.stream.globalaccelerator.processed_bytes_in{*} by {aws_account,acceleratoripaddress}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:aws.stream.globalaccelerator.processed_bytes_out{*} by {aws_account,acceleratoripaddress}\"}],\"response_format\":\"scalar\",\"text_formats\":[[{\"match\":{\"type\":\"is\",\"value\":\"fruit\"},\"palette\":\"white_on_red\",\"replace\":{\"type\":\"all\",\"with\":\"vegetable\"}},{\"custom_bg_color\":\"#632ca6\",\"match\":{\"type\":\"is\",\"value\":\"animal\"},\"palette\":\"custom_bg\"},{\"match\":{\"type\":\"is\",\"value\":\"robot\"},\"palette\":\"red_on_white\"},{\"match\":{\"type\":\"is\",\"value\":\"ai\"},\"palette\":\"yellow_on_white\"}],[{\"match\":{\"type\":\"is_not\",\"value\":\"xyz\"},\"palette\":\"white_on_yellow\"}],[{\"match\":{\"type\":\"contains\",\"value\":\"test\"},\"palette\":\"white_on_green\",\"replace\":{\"type\":\"all\",\"with\":\"vegetable\"}}],[{\"match\":{\"type\":\"does_not_contain\",\"value\":\"blah\"},\"palette\":\"black_on_light_red\"}],[{\"match\":{\"type\":\"starts_with\",\"value\":\"abc\"},\"palette\":\"black_on_light_yellow\"}],[{\"match\":{\"type\":\"ends_with\",\"value\":\"xyz\"},\"palette\":\"black_on_light_green\"},{\"match\":{\"type\":\"ends_with\",\"value\":\"zzz\"},\"palette\":\"green_on_white\"},{\"custom_fg_color\":\"#632ca6\",\"match\":{\"type\":\"is\",\"value\":\"animal\"},\"palette\":\"custom_text\"}]]}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":7865447342603067}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:33.236493+00:00\",\"modified_at\":\"2024-11-14T19:12:33.236493+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"aj4-ak4-dgu\",\"title\":\"Test-Create_a_new_dashboard_with_query_table_widget_and_text_formatting-1731699170\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/aj4-ak4-dgu/test-createanewdashboardwithquerytablewidgetandtextformatting-1731699170\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"has_search_bar\":\"never\",\"requests\":[{\"formulas\":[],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:aws.stream.globalaccelerator.processed_bytes_in{*} by {aws_account,acceleratoripaddress}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:aws.stream.globalaccelerator.processed_bytes_out{*} by {aws_account,acceleratoripaddress}\"}],\"response_format\":\"scalar\",\"text_formats\":[[{\"match\":{\"type\":\"is\",\"value\":\"fruit\"},\"palette\":\"white_on_red\",\"replace\":{\"type\":\"all\",\"with\":\"vegetable\"}},{\"custom_bg_color\":\"#632ca6\",\"match\":{\"type\":\"is\",\"value\":\"animal\"},\"palette\":\"custom_bg\"},{\"match\":{\"type\":\"is\",\"value\":\"robot\"},\"palette\":\"red_on_white\"},{\"match\":{\"type\":\"is\",\"value\":\"ai\"},\"palette\":\"yellow_on_white\"}],[{\"match\":{\"type\":\"is_not\",\"value\":\"xyz\"},\"palette\":\"white_on_yellow\"}],[{\"match\":{\"type\":\"contains\",\"value\":\"test\"},\"palette\":\"white_on_green\",\"replace\":{\"type\":\"all\",\"with\":\"vegetable\"}}],[{\"match\":{\"type\":\"does_not_contain\",\"value\":\"blah\"},\"palette\":\"black_on_light_red\"}],[{\"match\":{\"type\":\"starts_with\",\"value\":\"abc\"},\"palette\":\"black_on_light_yellow\"}],[{\"match\":{\"type\":\"ends_with\",\"value\":\"xyz\"},\"palette\":\"black_on_light_green\"},{\"match\":{\"type\":\"ends_with\",\"value\":\"zzz\"},\"palette\":\"green_on_white\"},{\"custom_fg_color\":\"#632ca6\",\"match\":{\"type\":\"is\",\"value\":\"animal\"},\"palette\":\"custom_text\"}]]}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_table\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":2029648185914619}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:50.640850+00:00\",\"modified_at\":\"2024-11-15T19:32:50.640850+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "96c12700-0734-5bac-9691-38960d3d71f4" + "id": "7667314e-485b-42d1-9e1a-636736a44a94" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/cj4-7yg-224", + "path": "/api/v1/dashboard/aj4-ak4-dgu", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"cj4-7yg-224\"}\n", + "body": "{\"deleted_dashboard_id\":\"aj4-ak4-dgu\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "f7decb80-b56a-1e6c-4a67-30552774091d" + "id": "4587f6a3-64e7-b06b-82d3-9f21260a7094" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_value_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_value_widget.freeze index 1081b6aceaa..99bf8b85bde 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_value_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_value_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:33.522Z \ No newline at end of file +2024-11-15T19:32:50.953Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_value_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_value_widget.json index 99d5ccf7e57..1d5a1f83101 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_value_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_query_value_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_query_value_widget-1731611553\",\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_query_value_widget-1731699170\",\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"s4k-uc2-3r7\",\"title\":\"Test-Create_a_new_dashboard_with_query_value_widget-1731611553\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/s4k-uc2-3r7/test-createanewdashboardwithqueryvaluewidget-1731611553\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":8754978144956095}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:33.695545+00:00\",\"modified_at\":\"2024-11-14T19:12:33.695545+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"jks-c6t-r8e\",\"title\":\"Test-Create_a_new_dashboard_with_query_value_widget-1731699170\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/jks-c6t-r8e/test-createanewdashboardwithqueryvaluewidget-1731699170\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":7789696284248060}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:51.196390+00:00\",\"modified_at\":\"2024-11-15T19:32:51.196390+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "ffe79491-6859-024e-b708-27ca053184a8" + "id": "1db9ca59-fae0-a27b-ceef-6f7ac1f7f26f" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/s4k-uc2-3r7", + "path": "/api/v1/dashboard/jks-c6t-r8e", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"s4k-uc2-3r7\"}\n", + "body": "{\"deleted_dashboard_id\":\"jks-c6t-r8e\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "ce715c16-d178-9ed2-bba2-b8e9393c12b4" + "id": "5e12eb8c-8d1d-a82a-6de2-0cb394ef5a1d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget.freeze index 6cb23c5c2f2..4cb4232c9f6 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:33.950Z \ No newline at end of file +2024-11-15T19:32:51.468Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget.json index f043494ac86..c0ae45d9668 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget-1731611553 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"rum_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget-1731699171 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"rum_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"cg8-yhk-bw6\",\"title\":\"Test-Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget-1731611553 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/cg8-yhk-bw6/test-createanewdashboardwithrumissuestreamliststreamwidget-1731611553-with-lists\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"rum_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":4087077140268311}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:34.322600+00:00\",\"modified_at\":\"2024-11-14T19:12:34.322600+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"ce9-y6g-66s\",\"title\":\"Test-Create_a_new_dashboard_with_rum_issue_stream_list_stream_widget-1731699171 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/ce9-y6g-66s/test-createanewdashboardwithrumissuestreamliststreamwidget-1731699171-with-lists\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"rum_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":6059436646329395}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:51.588133+00:00\",\"modified_at\":\"2024-11-15T19:32:51.588133+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "ac572efa-1947-e6f3-0414-8f4f9b8a55eb" + "id": "6f41befb-4d70-4dbf-2479-8f1e0a0a50db" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/cg8-yhk-bw6", + "path": "/api/v1/dashboard/ce9-y6g-66s", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"cg8-yhk-bw6\"}\n", + "body": "{\"deleted_dashboard_id\":\"ce9-y6g-66s\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "f17c9434-15be-eb91-51c8-f8c0b30ff79d" + "id": "9f24418e-f057-1917-03f9-4f77dbca0c00" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_run_workflow_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_run_workflow_widget.freeze index fc57fa46c21..19970408697 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_run_workflow_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_run_workflow_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:34.656Z \ No newline at end of file +2024-11-15T19:32:51.836Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_run_workflow_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_run_workflow_widget.json index 7d8f7618adf..21f2fed33c6 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_run_workflow_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_run_workflow_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_run_workflow_widget-1731611554\",\"widgets\":[{\"definition\":{\"inputs\":[{\"name\":\"environment\",\"value\":\"$env.value\"}],\"time\":{},\"title\":\"Run workflow title\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"run_workflow\",\"workflow_id\":\"2e055f16-8b6a-4cdd-b452-17a34c44b160\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_run_workflow_widget-1731699171\",\"widgets\":[{\"definition\":{\"inputs\":[{\"name\":\"environment\",\"value\":\"$env.value\"}],\"time\":{},\"title\":\"Run workflow title\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"run_workflow\",\"workflow_id\":\"2e055f16-8b6a-4cdd-b452-17a34c44b160\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"7jz-n57-595\",\"title\":\"Test-Create_a_new_dashboard_with_run_workflow_widget-1731611554\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/7jz-n57-595/test-createanewdashboardwithrunworkflowwidget-1731611554\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"inputs\":[{\"name\":\"environment\",\"value\":\"$env.value\"}],\"time\":{},\"title\":\"Run workflow title\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"run_workflow\",\"workflow_id\":\"2e055f16-8b6a-4cdd-b452-17a34c44b160\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":5610878758364938}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:34.770757+00:00\",\"modified_at\":\"2024-11-14T19:12:34.770757+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"iis-hmn-pzf\",\"title\":\"Test-Create_a_new_dashboard_with_run_workflow_widget-1731699171\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/iis-hmn-pzf/test-createanewdashboardwithrunworkflowwidget-1731699171\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"inputs\":[{\"name\":\"environment\",\"value\":\"$env.value\"}],\"time\":{},\"title\":\"Run workflow title\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"run_workflow\",\"workflow_id\":\"2e055f16-8b6a-4cdd-b452-17a34c44b160\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":5837412826936459}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:51.982136+00:00\",\"modified_at\":\"2024-11-15T19:32:51.982136+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "f3f6e0fd-6dd7-d1c2-bfc2-f0abce0debef" + "id": "29ba8114-6ae4-5f93-de2c-8ffd238d1980" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/7jz-n57-595", + "path": "/api/v1/dashboard/iis-hmn-pzf", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"7jz-n57-595\"}\n", + "body": "{\"deleted_dashboard_id\":\"iis-hmn-pzf\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "bb32194f-322e-7c01-b1ef-cd3d3aa3bdea" + "id": "f343ee31-3c48-2c18-2d7b-256323010fa5" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_scatterplot_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_scatterplot_widget.freeze index bbe1ad83de6..2f263e05b5c 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_scatterplot_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_scatterplot_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:35.019Z \ No newline at end of file +2024-11-15T19:32:52.260Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_scatterplot_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_scatterplot_widget.json index 21a5e23b01b..d3026872c29 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_scatterplot_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_scatterplot_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_scatterplot_widget-1731611555\",\"widgets\":[{\"definition\":{\"color_by_groups\":[],\"requests\":{\"table\":{\"formulas\":[{\"alias\":\"\",\"dimension\":\"x\",\"formula\":\"query1\"},{\"alias\":\"\",\"dimension\":\"y\",\"formula\":\"query2\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\"}},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"scatterplot\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_scatterplot_widget-1731699172\",\"widgets\":[{\"definition\":{\"color_by_groups\":[],\"requests\":{\"table\":{\"formulas\":[{\"alias\":\"\",\"dimension\":\"x\",\"formula\":\"query1\"},{\"alias\":\"\",\"dimension\":\"y\",\"formula\":\"query2\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\"}},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"scatterplot\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"s9j-nm3-tvr\",\"title\":\"Test-Create_a_new_dashboard_with_scatterplot_widget-1731611555\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/s9j-nm3-tvr/test-createanewdashboardwithscatterplotwidget-1731611555\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"color_by_groups\":[],\"requests\":{\"table\":{\"formulas\":[{\"alias\":\"\",\"dimension\":\"x\",\"formula\":\"query1\"},{\"alias\":\"\",\"dimension\":\"y\",\"formula\":\"query2\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\"}},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"scatterplot\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":3009893352352683}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:35.247972+00:00\",\"modified_at\":\"2024-11-14T19:12:35.247972+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"s39-kcu-kcv\",\"title\":\"Test-Create_a_new_dashboard_with_scatterplot_widget-1731699172\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/s39-kcu-kcv/test-createanewdashboardwithscatterplotwidget-1731699172\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"color_by_groups\":[],\"requests\":{\"table\":{\"formulas\":[{\"alias\":\"\",\"dimension\":\"x\",\"formula\":\"query1\"},{\"alias\":\"\",\"dimension\":\"y\",\"formula\":\"query2\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"},{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query2\",\"query\":\"avg:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\"}},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"scatterplot\",\"xaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"},\"yaxis\":{\"include_zero\":true,\"max\":\"auto\",\"min\":\"auto\",\"scale\":\"linear\"}},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":6421549335837738}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:52.488297+00:00\",\"modified_at\":\"2024-11-15T19:32:52.488297+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "03bb0b0d-f277-e2d0-a7d4-52089ea6b376" + "id": "4f2c4093-d27f-94a8-1f6d-1d6ef8a6ee72" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/s9j-nm3-tvr", + "path": "/api/v1/dashboard/s39-kcu-kcv", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"s9j-nm3-tvr\"}\n", + "body": "{\"deleted_dashboard_id\":\"s39-kcu-kcv\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "8436a682-1a24-8126-c5da-7e4bebe17722" + "id": "843689b7-89cd-a05d-c633-af6a7ee8dc6d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_servicemap_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_servicemap_widget.freeze index 175deba2339..3e5451ccd65 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_servicemap_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_servicemap_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:35.598Z \ No newline at end of file +2024-11-15T19:32:52.734Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_servicemap_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_servicemap_widget.json index 577339eef0c..76b147ef46f 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_servicemap_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_servicemap_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_servicemap_widget-1731611555\",\"widgets\":[{\"definition\":{\"filters\":[\"env:none\",\"environment:*\"],\"service\":\"\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"servicemap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_servicemap_widget-1731699172\",\"widgets\":[{\"definition\":{\"filters\":[\"env:none\",\"environment:*\"],\"service\":\"\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"servicemap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"g7c-rdn-m36\",\"title\":\"Test-Create_a_new_dashboard_with_servicemap_widget-1731611555\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/g7c-rdn-m36/test-createanewdashboardwithservicemapwidget-1731611555\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"filters\":[\"env:none\",\"environment:*\"],\"service\":\"\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"servicemap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":4603681015487781}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:35.752272+00:00\",\"modified_at\":\"2024-11-14T19:12:35.752272+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"npz-y6x-z4g\",\"title\":\"Test-Create_a_new_dashboard_with_servicemap_widget-1731699172\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/npz-y6x-z4g/test-createanewdashboardwithservicemapwidget-1731699172\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"filters\":[\"env:none\",\"environment:*\"],\"service\":\"\",\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"servicemap\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":4704608837901441}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:52.841936+00:00\",\"modified_at\":\"2024-11-15T19:32:52.841936+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "b82b2ec1-7f61-e933-e275-d5b9025e51ff" + "id": "bc013d24-dba9-bde7-70f0-f32fc3f13fbc" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/g7c-rdn-m36", + "path": "/api/v1/dashboard/npz-y6x-z4g", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"g7c-rdn-m36\"}\n", + "body": "{\"deleted_dashboard_id\":\"npz-y6x-z4g\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "852d05db-b8ec-904d-3cbc-8730ad4920f2" + "id": "b9a8b122-7ddf-5b86-b6d6-c1873111642d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget.freeze index 4f102fc766b..5c138f8c55b 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:36.037Z \ No newline at end of file +2024-11-15T19:32:53.101Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget.json index a91870e2775..2e14b7a6311 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"name\": \"Test-Create_a_new_dashboard_with_slo_list_widget-1731611556\", \"query\": {\"denominator\": \"sum:httpservice.hits{!code:3xx}.as_count()\", \"numerator\": \"sum:httpservice.hits{code:2xx}.as_count()\"}, \"thresholds\": [{\"target\": 95.0, \"timeframe\": \"7d\", \"warning\": 98.0}], \"type\": \"metric\"}" + "json": "{\"name\": \"Test-Create_a_new_dashboard_with_slo_list_widget-1731699173\", \"query\": {\"denominator\": \"sum:httpservice.hits{!code:3xx}.as_count()\", \"numerator\": \"sum:httpservice.hits{code:2xx}.as_count()\"}, \"thresholds\": [{\"target\": 95.0, \"timeframe\": \"7d\", \"warning\": 98.0}], \"type\": \"metric\"}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":[{\"id\":\"883996caaca65291adf88e32705cbe67\",\"name\":\"Test-Create_a_new_dashboard_with_slo_list_widget-1731611556\",\"tags\":[],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":95.0,\"target_display\":\"95.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":95,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"creator\":{\"name\":\"Anika Maskara\",\"handle\":\"anika.maskara@datadoghq.com\",\"email\":\"anika.maskara@datadoghq.com\"},\"created_at\":1731611556,\"modified_at\":1731611556}],\"error\":null}\n", + "body": "{\"data\":[{\"id\":\"89fa8ea5e6045df7b43f58ab5a9887cc\",\"name\":\"Test-Create_a_new_dashboard_with_slo_list_widget-1731699173\",\"tags\":[],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":95.0,\"target_display\":\"95.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":95,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"},\"created_at\":1731699173,\"modified_at\":1731699173}],\"error\":null}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "482f5535-2239-5a5a-ebbd-1b7efb1ba6e0" + "id": "1a71260e-bd78-790a-fa56-4b13ceacae71" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_slo_list_widget-1731611556\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"limit\":75,\"query_string\":\"env:prod AND service:my-app\"},\"request_type\":\"slo_list\"}],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo_list\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_slo_list_widget-1731699173\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"limit\":75,\"query_string\":\"env:prod AND service:my-app\"},\"request_type\":\"slo_list\"}],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo_list\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"iwm-46e-6pb\",\"title\":\"Test-Create_a_new_dashboard_with_slo_list_widget-1731611556\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/iwm-46e-6pb/test-createanewdashboardwithslolistwidget-1731611556\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"limit\":75,\"query_string\":\"env:prod AND service:my-app\"},\"request_type\":\"slo_list\"}],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo_list\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0},\"id\":3285014530749905}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:36.417146+00:00\",\"modified_at\":\"2024-11-14T19:12:36.417146+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"rnh-pf5-uu6\",\"title\":\"Test-Create_a_new_dashboard_with_slo_list_widget-1731699173\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/rnh-pf5-uu6/test-createanewdashboardwithslolistwidget-1731699173\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"limit\":75,\"query_string\":\"env:prod AND service:my-app\"},\"request_type\":\"slo_list\"}],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo_list\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0},\"id\":8288298613606134}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:53.410595+00:00\",\"modified_at\":\"2024-11-15T19:32:53.410595+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "28af8c64-0977-94c4-a99b-e202a4d8993f" + "id": "d0f8f57b-d80d-988d-83b6-4c46517f1f95" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/iwm-46e-6pb", + "path": "/api/v1/dashboard/rnh-pf5-uu6", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"iwm-46e-6pb\"}\n", + "body": "{\"deleted_dashboard_id\":\"rnh-pf5-uu6\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "96d8fa83-5fe6-c86f-1bcf-067735df2794" + "id": "3f4172b4-6fb1-a7b9-7f83-b20c7db9ed4a" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/slo/883996caaca65291adf88e32705cbe67", + "path": "/api/v1/slo/89fa8ea5e6045df7b43f58ab5a9887cc", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":[\"883996caaca65291adf88e32705cbe67\"],\"error\":null}\n", + "body": "{\"data\":[\"89fa8ea5e6045df7b43f58ab5a9887cc\"],\"error\":null}\n", "headers": { "Content-Type": [ "application/json" @@ -109,6 +109,6 @@ "timeToLive": { "unlimited": true }, - "id": "7790e6bd-3ecc-8644-863a-cecb3794e2ce" + "id": "a564ffb9-a46d-f351-d982-a5e0dcaa55ec" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget_with_sort.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget_with_sort.freeze index 916fb6b70c6..48201fa8b91 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget_with_sort.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget_with_sort.freeze @@ -1 +1 @@ -2024-11-14T19:12:36.994Z \ No newline at end of file +2024-11-15T19:32:53.875Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget_with_sort.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget_with_sort.json index de309bce135..baef2466a30 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget_with_sort.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_list_widget_with_sort.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"name\": \"Test-Create_a_new_dashboard_with_slo_list_widget_with_sort-1731611556\", \"query\": {\"denominator\": \"sum:httpservice.hits{!code:3xx}.as_count()\", \"numerator\": \"sum:httpservice.hits{code:2xx}.as_count()\"}, \"thresholds\": [{\"target\": 95.0, \"timeframe\": \"7d\", \"warning\": 98.0}], \"type\": \"metric\"}" + "json": "{\"name\": \"Test-Create_a_new_dashboard_with_slo_list_widget_with_sort-1731699173\", \"query\": {\"denominator\": \"sum:httpservice.hits{!code:3xx}.as_count()\", \"numerator\": \"sum:httpservice.hits{code:2xx}.as_count()\"}, \"thresholds\": [{\"target\": 95.0, \"timeframe\": \"7d\", \"warning\": 98.0}], \"type\": \"metric\"}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":[{\"id\":\"beb306f6ef6a51398811e8d638e443d9\",\"name\":\"Test-Create_a_new_dashboard_with_slo_list_widget_with_sort-1731611556\",\"tags\":[],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":95.0,\"target_display\":\"95.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":95,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"creator\":{\"name\":\"Anika Maskara\",\"handle\":\"anika.maskara@datadoghq.com\",\"email\":\"anika.maskara@datadoghq.com\"},\"created_at\":1731611557,\"modified_at\":1731611557}],\"error\":null}\n", + "body": "{\"data\":[{\"id\":\"7ae31bf46704510e973d8bf6a1c37430\",\"name\":\"Test-Create_a_new_dashboard_with_slo_list_widget_with_sort-1731699173\",\"tags\":[],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":95.0,\"target_display\":\"95.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":95,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"},\"created_at\":1731699174,\"modified_at\":1731699174}],\"error\":null}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "8ff34090-1e5b-0291-11e5-d4cd94dc4e49" + "id": "18cf78e9-3fb5-dfec-cdd3-4c610a25c94c" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_slo_list_widget_with_sort-1731611556\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"limit\":75,\"query_string\":\"env:prod AND service:my-app\",\"sort\":[{\"column\":\"status.sli\",\"order\":\"asc\"}]},\"request_type\":\"slo_list\"}],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo_list\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_slo_list_widget_with_sort-1731699173\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"limit\":75,\"query_string\":\"env:prod AND service:my-app\",\"sort\":[{\"column\":\"status.sli\",\"order\":\"asc\"}]},\"request_type\":\"slo_list\"}],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo_list\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"8dz-sjg-vcn\",\"title\":\"Test-Create_a_new_dashboard_with_slo_list_widget_with_sort-1731611556\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/8dz-sjg-vcn/test-createanewdashboardwithslolistwidgetwithsort-1731611556\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"limit\":75,\"query_string\":\"env:prod AND service:my-app\",\"sort\":[{\"column\":\"status.sli\",\"order\":\"asc\"}]},\"request_type\":\"slo_list\"}],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo_list\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0},\"id\":8215880919668555}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:37.270942+00:00\",\"modified_at\":\"2024-11-14T19:12:37.270942+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"s9d-ebt-cfz\",\"title\":\"Test-Create_a_new_dashboard_with_slo_list_widget_with_sort-1731699173\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/s9d-ebt-cfz/test-createanewdashboardwithslolistwidgetwithsort-1731699173\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"limit\":75,\"query_string\":\"env:prod AND service:my-app\",\"sort\":[{\"column\":\"status.sli\",\"order\":\"asc\"}]},\"request_type\":\"slo_list\"}],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo_list\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0},\"id\":2594196925720924}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:54.206516+00:00\",\"modified_at\":\"2024-11-15T19:32:54.206516+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "3568cfff-236a-ecbe-d878-29c9163df73b" + "id": "3afdb158-9afe-ccb5-b83c-f38548a0e984" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/8dz-sjg-vcn", + "path": "/api/v1/dashboard/s9d-ebt-cfz", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"8dz-sjg-vcn\"}\n", + "body": "{\"deleted_dashboard_id\":\"s9d-ebt-cfz\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "6667aa99-ccfc-4768-36e1-f487680d905d" + "id": "8e7ca57f-e8b0-5e45-f7b6-44128184d4f0" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/slo/beb306f6ef6a51398811e8d638e443d9", + "path": "/api/v1/slo/7ae31bf46704510e973d8bf6a1c37430", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":[\"beb306f6ef6a51398811e8d638e443d9\"],\"error\":null}\n", + "body": "{\"data\":[\"7ae31bf46704510e973d8bf6a1c37430\"],\"error\":null}\n", "headers": { "Content-Type": [ "application/json" @@ -109,6 +109,6 @@ "timeToLive": { "unlimited": true }, - "id": "301fd99f-aeb6-6524-f8b5-715b68f4a585" + "id": "b6d4dea3-f435-f2da-cc85-694f327a7b01" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_widget.freeze index af7a5bfbb64..46a85d52371 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:37.759Z \ No newline at end of file +2024-11-15T19:32:54.721Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_widget.json index 5307eb429c0..e028162c9ba 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_slo_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"name\": \"Test-Create_a_new_dashboard_with_slo_widget-1731611557\", \"query\": {\"denominator\": \"sum:httpservice.hits{!code:3xx}.as_count()\", \"numerator\": \"sum:httpservice.hits{code:2xx}.as_count()\"}, \"thresholds\": [{\"target\": 95.0, \"timeframe\": \"7d\", \"warning\": 98.0}], \"type\": \"metric\"}" + "json": "{\"name\": \"Test-Create_a_new_dashboard_with_slo_widget-1731699174\", \"query\": {\"denominator\": \"sum:httpservice.hits{!code:3xx}.as_count()\", \"numerator\": \"sum:httpservice.hits{code:2xx}.as_count()\"}, \"thresholds\": [{\"target\": 95.0, \"timeframe\": \"7d\", \"warning\": 98.0}], \"type\": \"metric\"}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":[{\"id\":\"dd4731783bfb5c97b01e19a5c3224429\",\"name\":\"Test-Create_a_new_dashboard_with_slo_widget-1731611557\",\"tags\":[],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":95.0,\"target_display\":\"95.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":95,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"creator\":{\"name\":\"Anika Maskara\",\"handle\":\"anika.maskara@datadoghq.com\",\"email\":\"anika.maskara@datadoghq.com\"},\"created_at\":1731611557,\"modified_at\":1731611557}],\"error\":null}\n", + "body": "{\"data\":[{\"id\":\"ff0d47f8ee755a4abc061fe92e9978f5\",\"name\":\"Test-Create_a_new_dashboard_with_slo_widget-1731699174\",\"tags\":[],\"monitor_tags\":[],\"thresholds\":[{\"timeframe\":\"7d\",\"target\":95.0,\"target_display\":\"95.\",\"warning\":98.0,\"warning_display\":\"98.\"}],\"type\":\"metric\",\"type_id\":1,\"description\":\"\",\"timeframe\":\"7d\",\"warning_threshold\":98,\"target_threshold\":95,\"query\":{\"denominator\":\"sum:httpservice.hits{!code:3xx}.as_count()\",\"numerator\":\"sum:httpservice.hits{code:2xx}.as_count()\"},\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"},\"created_at\":1731699174,\"modified_at\":1731699174}],\"error\":null}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "10d70912-7c8c-f1ff-b27c-c55efd2127f8" + "id": "2978617b-8767-6b9b-a9ff-5142f9133fc5" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_slo_widget-1731611557\",\"widgets\":[{\"definition\":{\"additional_query_filters\":\"!host:excluded_host\",\"global_time_target\":\"0\",\"show_error_budget\":true,\"slo_id\":\"dd4731783bfb5c97b01e19a5c3224429\",\"time_windows\":[\"7d\"],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo\",\"view_mode\":\"overall\",\"view_type\":\"detail\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_slo_widget-1731699174\",\"widgets\":[{\"definition\":{\"additional_query_filters\":\"!host:excluded_host\",\"global_time_target\":\"0\",\"show_error_budget\":true,\"slo_id\":\"ff0d47f8ee755a4abc061fe92e9978f5\",\"time_windows\":[\"7d\"],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo\",\"view_mode\":\"overall\",\"view_type\":\"detail\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"xaz-u6q-et4\",\"title\":\"Test-Create_a_new_dashboard_with_slo_widget-1731611557\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/xaz-u6q-et4/test-createanewdashboardwithslowidget-1731611557\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"additional_query_filters\":\"!host:excluded_host\",\"global_time_target\":\"0\",\"show_error_budget\":true,\"slo_id\":\"dd4731783bfb5c97b01e19a5c3224429\",\"time_windows\":[\"7d\"],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo\",\"view_mode\":\"overall\",\"view_type\":\"detail\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0},\"id\":7303989423042166}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:38.037003+00:00\",\"modified_at\":\"2024-11-14T19:12:38.037003+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"87d-8cv-ee8\",\"title\":\"Test-Create_a_new_dashboard_with_slo_widget-1731699174\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/87d-8cv-ee8/test-createanewdashboardwithslowidget-1731699174\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"additional_query_filters\":\"!host:excluded_host\",\"global_time_target\":\"0\",\"show_error_budget\":true,\"slo_id\":\"ff0d47f8ee755a4abc061fe92e9978f5\",\"time_windows\":[\"7d\"],\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"slo\",\"view_mode\":\"overall\",\"view_type\":\"detail\"},\"layout\":{\"height\":21,\"width\":60,\"x\":0,\"y\":0},\"id\":7311206439565839}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:54.989103+00:00\",\"modified_at\":\"2024-11-15T19:32:54.989103+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "85df7e46-f528-8afb-3e8d-3ab0f13f7b41" + "id": "7e817c57-9744-2873-f0b0-6f8cdec70141" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/xaz-u6q-et4", + "path": "/api/v1/dashboard/87d-8cv-ee8", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"xaz-u6q-et4\"}\n", + "body": "{\"deleted_dashboard_id\":\"87d-8cv-ee8\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "41b98ab4-9da1-241d-eb6d-d50eae38723e" + "id": "a9be03dd-4232-2be2-d69b-d1880ed0c1df" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/slo/dd4731783bfb5c97b01e19a5c3224429", + "path": "/api/v1/slo/ff0d47f8ee755a4abc061fe92e9978f5", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":[\"dd4731783bfb5c97b01e19a5c3224429\"],\"error\":null}\n", + "body": "{\"data\":[\"ff0d47f8ee755a4abc061fe92e9978f5\"],\"error\":null}\n", "headers": { "Content-Type": [ "application/json" @@ -109,6 +109,6 @@ "timeToLive": { "unlimited": true }, - "id": "666d2a65-c4a6-613c-5b17-b054ee5292ff" + "id": "4d984793-38e8-ee6d-e727-f3a29b4e73ac" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_split_graph_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_split_graph_widget.freeze index f0705f03a6e..89b9b6cd0cf 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_split_graph_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_split_graph_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:38.603Z \ No newline at end of file +2024-11-15T19:32:55.621Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_split_graph_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_split_graph_widget.json index f31897427be..d304511175a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_split_graph_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_split_graph_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"ordered\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_split_graph_widget-1731611558\",\"widgets\":[{\"definition\":{\"has_uniform_y_axes\":true,\"size\":\"md\",\"source_widget_definition\":{\"requests\":[{\"display_type\":\"line\",\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"timeseries\"},\"split_config\":{\"limit\":24,\"sort\":{\"compute\":{\"aggregation\":\"sum\",\"metric\":\"system.cpu.user\"},\"order\":\"desc\"},\"split_dimensions\":[{\"one_graph_per\":\"service\"}],\"static_splits\":[[{\"tag_key\":\"service\",\"tag_values\":[\"cassandra\"]},{\"tag_key\":\"datacenter\",\"tag_values\":[]}],[{\"tag_key\":\"demo\",\"tag_values\":[\"env\"]}]]},\"title\":\"\",\"type\":\"split_group\"},\"layout\":{\"height\":8,\"width\":12,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"ordered\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_split_graph_widget-1731699175\",\"widgets\":[{\"definition\":{\"has_uniform_y_axes\":true,\"size\":\"md\",\"source_widget_definition\":{\"requests\":[{\"display_type\":\"line\",\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"timeseries\"},\"split_config\":{\"limit\":24,\"sort\":{\"compute\":{\"aggregation\":\"sum\",\"metric\":\"system.cpu.user\"},\"order\":\"desc\"},\"split_dimensions\":[{\"one_graph_per\":\"service\"}],\"static_splits\":[[{\"tag_key\":\"service\",\"tag_values\":[\"cassandra\"]},{\"tag_key\":\"datacenter\",\"tag_values\":[]}],[{\"tag_key\":\"demo\",\"tag_values\":[\"env\"]}]]},\"title\":\"\",\"type\":\"split_group\"},\"layout\":{\"height\":8,\"width\":12,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"482-izf-9gi\",\"title\":\"Test-Create_a_new_dashboard_with_split_graph_widget-1731611558\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/482-izf-9gi/test-createanewdashboardwithsplitgraphwidget-1731611558\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"has_uniform_y_axes\":true,\"size\":\"md\",\"source_widget_definition\":{\"requests\":[{\"display_type\":\"line\",\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"timeseries\"},\"split_config\":{\"limit\":24,\"sort\":{\"compute\":{\"aggregation\":\"sum\",\"metric\":\"system.cpu.user\"},\"order\":\"desc\"},\"split_dimensions\":[{\"one_graph_per\":\"service\"}],\"static_splits\":[[{\"tag_key\":\"service\",\"tag_values\":[\"cassandra\"]},{\"tag_key\":\"datacenter\",\"tag_values\":[]}],[{\"tag_key\":\"demo\",\"tag_values\":[\"env\"]}]]},\"title\":\"\",\"type\":\"split_group\"},\"layout\":{\"height\":8,\"width\":12,\"x\":0,\"y\":0},\"id\":5338128994941864}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:39.293000+00:00\",\"modified_at\":\"2024-11-14T19:12:39.293000+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"xcs-593-5gu\",\"title\":\"Test-Create_a_new_dashboard_with_split_graph_widget-1731699175\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/xcs-593-5gu/test-createanewdashboardwithsplitgraphwidget-1731699175\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"has_uniform_y_axes\":true,\"size\":\"md\",\"source_widget_definition\":{\"requests\":[{\"display_type\":\"line\",\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"timeseries\"},\"split_config\":{\"limit\":24,\"sort\":{\"compute\":{\"aggregation\":\"sum\",\"metric\":\"system.cpu.user\"},\"order\":\"desc\"},\"split_dimensions\":[{\"one_graph_per\":\"service\"}],\"static_splits\":[[{\"tag_key\":\"service\",\"tag_values\":[\"cassandra\"]},{\"tag_key\":\"datacenter\",\"tag_values\":[]}],[{\"tag_key\":\"demo\",\"tag_values\":[\"env\"]}]]},\"title\":\"\",\"type\":\"split_group\"},\"layout\":{\"height\":8,\"width\":12,\"x\":0,\"y\":0},\"id\":8349230773327441}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:56.317258+00:00\",\"modified_at\":\"2024-11-15T19:32:56.317258+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "44a09868-07f1-3eb1-ae48-0d480e917904" + "id": "e3ee3591-5a66-62aa-b553-61d72f7fe546" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/482-izf-9gi", + "path": "/api/v1/dashboard/xcs-593-5gu", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"482-izf-9gi\"}\n", + "body": "{\"deleted_dashboard_id\":\"xcs-593-5gu\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "e2794797-df95-8e10-39df-706a88d504e3" + "id": "61b9c9c1-8746-6c62-6505-d4ffd13e5464" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_sunburst_widget_and_metrics_data.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_sunburst_widget_and_metrics_data.freeze index 07d57eec7fd..f82c625fa4e 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_sunburst_widget_and_metrics_data.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_sunburst_widget_and_metrics_data.freeze @@ -1 +1 @@ -2024-11-14T19:12:39.604Z \ No newline at end of file +2024-11-15T19:32:56.605Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_sunburst_widget_and_metrics_data.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_sunburst_widget_and_metrics_data.json index 8fefb109574..35fcab875a1 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_sunburst_widget_and_metrics_data.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_sunburst_widget_and_metrics_data.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_sunburst_widget_and_metrics_data-1731611559\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"sum\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\",\"style\":{\"palette\":\"dog_classic\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"sunburst\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_sunburst_widget_and_metrics_data-1731699176\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"sum\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\",\"style\":{\"palette\":\"dog_classic\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"sunburst\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"w74-sg2-g2b\",\"title\":\"Test-Create_a_new_dashboard_with_sunburst_widget_and_metrics_data-1731611559\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/w74-sg2-g2b/test-createanewdashboardwithsunburstwidgetandmetricsdata-1731611559\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"sum\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\",\"style\":{\"palette\":\"dog_classic\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"sunburst\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":4368317924299162}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:39.757201+00:00\",\"modified_at\":\"2024-11-14T19:12:39.757201+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"qfx-a3h-kme\",\"title\":\"Test-Create_a_new_dashboard_with_sunburst_widget_and_metrics_data-1731699176\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/qfx-a3h-kme/test-createanewdashboardwithsunburstwidgetandmetricsdata-1731699176\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"sum\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"sum:system.mem.used{*} by {service}\"}],\"response_format\":\"scalar\",\"style\":{\"palette\":\"dog_classic\"}}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"sunburst\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":7225852611844225}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:56.779070+00:00\",\"modified_at\":\"2024-11-15T19:32:56.779070+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "9291a9b9-fc58-8c7b-8a13-d24c429c7042" + "id": "5242c20d-4dcf-b403-8992-5b4dfc6dfc03" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/w74-sg2-g2b", + "path": "/api/v1/dashboard/qfx-a3h-kme", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"w74-sg2-g2b\"}\n", + "body": "{\"deleted_dashboard_id\":\"qfx-a3h-kme\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "813aed92-bf62-5240-ba4c-e17ab29a2205" + "id": "ac30c054-53e2-f38d-dfc7-337a85b359f4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_team_tags_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_team_tags_returns_OK_response.freeze index 16d647ef7be..a85903d2bbf 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_team_tags_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_team_tags_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:40.053Z \ No newline at end of file +2024-11-15T19:32:57.038Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_team_tags_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_team_tags_returns_OK_response.json index 13dd229a55a..428068cb435 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_team_tags_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_team_tags_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"tags\":[\"team:foobar\"],\"title\":\"Test-Create_a_new_dashboard_with_team_tags_returns_OK_response-1731611560\",\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" + "json": "{\"layout_type\":\"ordered\",\"tags\":[\"team:foobar\"],\"title\":\"Test-Create_a_new_dashboard_with_team_tags_returns_OK_response-1731699177\",\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"7r9-76m-7cg\",\"title\":\"Test-Create_a_new_dashboard_with_team_tags_returns_OK_response-1731611560\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/7r9-76m-7cg/test-createanewdashboardwithteamtagsreturnsokresponse-1731611560\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":513356787555040}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:40.213397+00:00\",\"modified_at\":\"2024-11-14T19:12:40.213397+00:00\",\"tags\":[\"team:foobar\"],\"restricted_roles\":[]}\n", + "body": "{\"id\":\"zb6-66m-ntf\",\"title\":\"Test-Create_a_new_dashboard_with_team_tags_returns_OK_response-1731699177\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/zb6-66m-ntf/test-createanewdashboardwithteamtagsreturnsokresponse-1731699177\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"change_type\":\"absolute\",\"compare_to\":\"hour_before\",\"formulas\":[{\"formula\":\"hour_before(query1)\"},{\"formula\":\"query1\"}],\"increase_good\":true,\"order_by\":\"change\",\"order_dir\":\"desc\",\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"logs\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"\"}}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"change\"},\"layout\":{\"height\":4,\"width\":4,\"x\":0,\"y\":0},\"id\":5234430955769094}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:57.190291+00:00\",\"modified_at\":\"2024-11-15T19:32:57.190291+00:00\",\"tags\":[\"team:foobar\"],\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "13480fcd-b030-e6ba-5b18-0a77e237b75b" + "id": "5aaf80dc-ac4e-9c8c-d07f-e6b3ae0a47ff" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/7r9-76m-7cg", + "path": "/api/v1/dashboard/zb6-66m-ntf", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"7r9-76m-7cg\"}\n", + "body": "{\"deleted_dashboard_id\":\"zb6-66m-ntf\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "a8da5358-dc0c-abaa-6db4-2c74eae9f0de" + "id": "09ea3a18-6007-5e12-6a47-a3c592c3741d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_and_default_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_and_default_returns_Bad_Request_response.freeze index 67e2a075f6f..1061c8c9742 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_and_default_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_and_default_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:40.459Z \ No newline at end of file +2024-11-15T19:32:57.452Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_returns_OK_response.freeze index 9c512ec8ffe..ed54be33bba 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:40.550Z \ No newline at end of file +2024-11-15T19:32:57.541Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_returns_OK_response.json index 5836c7e2ad3..63a4f75a3db 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"yf6-dzr-q5c\",\"title\":\"\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/yf6-dzr-q5c/\",\"is_read_only\":false,\"template_variables\":[{\"available_values\":[\"my-host\",\"host1\",\"host2\"],\"defaults\":[\"my-host\"],\"name\":\"host1\",\"prefix\":\"host\"}],\"widgets\":[{\"definition\":{\"requests\":{\"fill\":{\"q\":\"avg:system.cpu.user{*}\"}},\"type\":\"hostmap\"},\"id\":1555947222782912}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:40.753747+00:00\",\"modified_at\":\"2024-11-14T19:12:40.753747+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"49a-9qv-6v9\",\"title\":\"\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/49a-9qv-6v9/\",\"is_read_only\":false,\"template_variables\":[{\"available_values\":[\"my-host\",\"host1\",\"host2\"],\"defaults\":[\"my-host\"],\"name\":\"host1\",\"prefix\":\"host\"}],\"widgets\":[{\"definition\":{\"requests\":{\"fill\":{\"q\":\"avg:system.cpu.user{*}\"}},\"type\":\"hostmap\"},\"id\":6949738169108876}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:57.743500+00:00\",\"modified_at\":\"2024-11-15T19:32:57.743500+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -33,12 +33,12 @@ "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/yf6-dzr-q5c", + "path": "/api/v1/dashboard/49a-9qv-6v9", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"yf6-dzr-q5c\"}\n", + "body": "{\"deleted_dashboard_id\":\"49a-9qv-6v9\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "428c52d4-616a-daf8-0be7-50fe4d478daf" + "id": "46e1abe5-7d49-95dd-26df-6ee309b460bd" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_whose_value_has_no_length_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_whose_value_has_no_length_returns_Bad_Request_response.freeze index 895b181b5cd..051dbae9e1c 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_whose_value_has_no_length_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_defaults_whose_value_has_no_length_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:41.067Z \ No newline at end of file +2024-11-15T19:32:57.985Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_and_value_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_and_value_returns_Bad_Request_response.freeze index d766055334c..300364a2208 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_and_value_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_and_value_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:41.157Z \ No newline at end of file +2024-11-15T19:32:58.080Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_returns_OK_response.freeze index ead7a798e68..f42654b7fad 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:41.245Z \ No newline at end of file +2024-11-15T19:32:58.168Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_returns_OK_response.json index cb723f68609..f602471438c 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_template_variable_presets_using_values_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"aea-ma4-izr\",\"title\":\"\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/aea-ma4-izr/\",\"is_read_only\":false,\"template_variables\":[{\"available_values\":[\"my-host\",\"host1\",\"host2\"],\"defaults\":[\"my-host\"],\"name\":\"host1\",\"prefix\":\"host\"}],\"widgets\":[{\"definition\":{\"requests\":{\"fill\":{\"q\":\"avg:system.cpu.user{*}\"}},\"type\":\"hostmap\"},\"id\":725916093061701}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:41.457782+00:00\",\"modified_at\":\"2024-11-14T19:12:41.457782+00:00\",\"template_variable_presets\":[{\"name\":\"my saved view\",\"template_variables\":[{\"name\":\"datacenter\",\"values\":[\"*\",\"my-host\"]}]}],\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"87t-neh-qip\",\"title\":\"\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/87t-neh-qip/\",\"is_read_only\":false,\"template_variables\":[{\"available_values\":[\"my-host\",\"host1\",\"host2\"],\"defaults\":[\"my-host\"],\"name\":\"host1\",\"prefix\":\"host\"}],\"widgets\":[{\"definition\":{\"requests\":{\"fill\":{\"q\":\"avg:system.cpu.user{*}\"}},\"type\":\"hostmap\"},\"id\":8760637497021649}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:58.513090+00:00\",\"modified_at\":\"2024-11-15T19:32:58.513090+00:00\",\"template_variable_presets\":[{\"name\":\"my saved view\",\"template_variables\":[{\"name\":\"datacenter\",\"values\":[\"*\",\"my-host\"]}]}],\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -33,12 +33,12 @@ "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/aea-ma4-izr", + "path": "/api/v1/dashboard/87t-neh-qip", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"aea-ma4-izr\"}\n", + "body": "{\"deleted_dashboard_id\":\"87t-neh-qip\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "b1063982-a1f5-d124-d852-91b87d6aa5fe" + "id": "3405c30c-bd95-c536-c9df-b50140f2c5c6" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes.freeze index 294f8718a04..bd4dcf38cfd 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes.freeze @@ -1 +1 @@ -2024-11-14T19:12:41.727Z \ No newline at end of file +2024-11-15T19:32:58.884Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes.json index 71b0e2d41b9..83c99f6fc11 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes-1731611561 with formula style\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\",\"style\":{\"palette\":\"classic\",\"palette_index\":4}}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"styled timeseries\",\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes-1731699178 with formula style\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\",\"style\":{\"palette\":\"classic\",\"palette_index\":4}}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"styled timeseries\",\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"4pu-5hi-9ap\",\"title\":\"Test-Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes-1731611561 with formula style\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/4pu-5hi-9ap/test-createanewdashboardwithtimeserieswidgetandformulastyleattributes-1731611561\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\",\"style\":{\"palette\":\"classic\",\"palette_index\":4}}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"styled timeseries\",\"type\":\"timeseries\"},\"id\":3400368429094420}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:41.887469+00:00\",\"modified_at\":\"2024-11-14T19:12:41.887469+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"z42-55x-nbm\",\"title\":\"Test-Create_a_new_dashboard_with_timeseries_widget_and_formula_style_attributes-1731699178 with formula style\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/z42-55x-nbm/test-createanewdashboardwithtimeserieswidgetandformulastyleattributes-1731699178\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\",\"style\":{\"palette\":\"classic\",\"palette_index\":4}}],\"queries\":[{\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*}\"}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"styled timeseries\",\"type\":\"timeseries\"},\"id\":5160122298563606}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:59.036995+00:00\",\"modified_at\":\"2024-11-15T19:32:59.036995+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "d2bb34df-b81c-047a-e305-056d05107607" + "id": "117a80dd-3cfd-6215-5cb9-90f8814c136a" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/4pu-5hi-9ap", + "path": "/api/v1/dashboard/z42-55x-nbm", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"4pu-5hi-9ap\"}\n", + "body": "{\"deleted_dashboard_id\":\"z42-55x-nbm\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "32a27cb9-5e19-013a-3de1-36cd9e4c817e" + "id": "731266a0-5e5f-3c6f-b09e-c1df728e39f5" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes.freeze index a0268693b71..dc2fbdc90ed 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes.freeze @@ -1 +1 @@ -2024-11-14T19:12:42.123Z \ No newline at end of file +2024-11-15T19:32:59.286Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes.json index 9d25120b214..94b8758564b 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes-1731611562 with timeseries widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"bars\",\"on_right_yaxis\":false,\"q\":\"sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"warm\"}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes-1731699179 with timeseries widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"bars\",\"on_right_yaxis\":false,\"q\":\"sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"warm\"}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"d2u-a79-uqv\",\"title\":\"Test-Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes-1731611562 with timeseries widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/d2u-a79-uqv/test-createanewdashboardwithtimeserieswidgetcontainingstyleattributes-1731611562\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"bars\",\"on_right_yaxis\":false,\"q\":\"sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"warm\"}}],\"type\":\"timeseries\"},\"id\":123635508219251}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:42.289738+00:00\",\"modified_at\":\"2024-11-14T19:12:42.289738+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"3g2-7q5-mxv\",\"title\":\"Test-Create_a_new_dashboard_with_timeseries_widget_containing_style_attributes-1731699179 with timeseries widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/3g2-7q5-mxv/test-createanewdashboardwithtimeserieswidgetcontainingstyleattributes-1731699179\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"display_type\":\"bars\",\"on_right_yaxis\":false,\"q\":\"sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"warm\"}}],\"type\":\"timeseries\"},\"id\":6683223163247608}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:59.447813+00:00\",\"modified_at\":\"2024-11-15T19:32:59.447813+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "23d4d945-8046-a95f-a7fe-655835bd92c0" + "id": "46cd29f6-9e3c-1d34-b7d6-b0d57bd935d2" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/d2u-a79-uqv", + "path": "/api/v1/dashboard/3g2-7q5-mxv", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"d2u-a79-uqv\"}\n", + "body": "{\"deleted_dashboard_id\":\"3g2-7q5-mxv\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "b88c9d16-d51a-27a9-2268-7abdc30bd1db" + "id": "9b6a7b0c-6fcb-7ed4-8ca2-0f162d4ea0d4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_toplist_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_toplist_widget.freeze index 31018147d6b..85c3e93496e 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_toplist_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_toplist_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:42.537Z \ No newline at end of file +2024-11-15T19:32:59.704Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_toplist_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_toplist_widget.json index 889597ce077..d210bd8de0c 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_toplist_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_toplist_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_toplist_widget-1731611562\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"style\":{\"display\":{\"legend\":\"inline\",\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_toplist_widget-1731699179\",\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"style\":{\"display\":{\"legend\":\"inline\",\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"ffe-udq-bak\",\"title\":\"Test-Create_a_new_dashboard_with_toplist_widget-1731611562\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/ffe-udq-bak/test-createanewdashboardwithtoplistwidget-1731611562\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"style\":{\"display\":{\"legend\":\"inline\",\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":3080030583008842}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:42.698270+00:00\",\"modified_at\":\"2024-11-14T19:12:42.698270+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"jwf-ikb-jaw\",\"title\":\"Test-Create_a_new_dashboard_with_toplist_widget-1731699179\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/jwf-ikb-jaw/test-createanewdashboardwithtoplistwidget-1731699179\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"avg\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"avg:system.cpu.user{*} by {service}\"}],\"response_format\":\"scalar\",\"sort\":{\"count\":10,\"order_by\":[{\"index\":0,\"order\":\"desc\",\"type\":\"formula\"}]}}],\"style\":{\"display\":{\"legend\":\"inline\",\"type\":\"stacked\"},\"palette\":\"dog_classic\",\"scaling\":\"relative\"},\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"toplist\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":8328791355254092}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:32:59.881856+00:00\",\"modified_at\":\"2024-11-15T19:32:59.881856+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "a75d943d-c18d-7dea-7a05-2fc56a969911" + "id": "30356c26-2b82-73c9-5260-40a300585fc3" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/ffe-udq-bak", + "path": "/api/v1/dashboard/jwf-ikb-jaw", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"ffe-udq-bak\"}\n", + "body": "{\"deleted_dashboard_id\":\"jwf-ikb-jaw\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "eff31f14-d2ac-51bf-5274-61d2ca30d1bc" + "id": "d51d12c0-d704-4937-df62-cf8745719a5c" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_topology_map_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_topology_map_widget.freeze index ad5fd650d3f..75f9065825d 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_topology_map_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_topology_map_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:42.948Z \ No newline at end of file +2024-11-15T19:33:00.134Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_topology_map_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_topology_map_widget.json index b651be9435d..5d4238e4de0 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_topology_map_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_topology_map_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_topology_map_widget-1731611562\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"service_map\",\"filters\":[\"env:none\",\"environment:*\"],\"service\":\"\"},\"request_type\":\"topology\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"topology_map\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_topology_map_widget-1731699180\",\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"service_map\",\"filters\":[\"env:none\",\"environment:*\"],\"service\":\"\"},\"request_type\":\"topology\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"topology_map\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"4nx-4x7-4ft\",\"title\":\"Test-Create_a_new_dashboard_with_topology_map_widget-1731611562\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/4nx-4x7-4ft/test-createanewdashboardwithtopologymapwidget-1731611562\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"service_map\",\"filters\":[\"env:none\",\"environment:*\"],\"service\":\"\"},\"request_type\":\"topology\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"topology_map\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":4417217639321993}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:43.065479+00:00\",\"modified_at\":\"2024-11-14T19:12:43.065479+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"9fp-eg8-uae\",\"title\":\"Test-Create_a_new_dashboard_with_topology_map_widget-1731699180\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/9fp-eg8-uae/test-createanewdashboardwithtopologymapwidget-1731699180\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"service_map\",\"filters\":[\"env:none\",\"environment:*\"],\"service\":\"\"},\"request_type\":\"topology\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"topology_map\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":606036044054377}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:33:00.244891+00:00\",\"modified_at\":\"2024-11-15T19:33:00.244891+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "0cadda3c-3871-399c-9041-63d203bd786b" + "id": "05449535-0472-a316-0863-0f2afc9a0133" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/4nx-4x7-4ft", + "path": "/api/v1/dashboard/9fp-eg8-uae", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"4nx-4x7-4ft\"}\n", + "body": "{\"deleted_dashboard_id\":\"9fp-eg8-uae\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "ea6638b8-f0c2-b53e-9ca6-a6c22b45485a" + "id": "fabc692f-3ab5-ba37-0375-9e04e278c3f1" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_service_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_service_widget.freeze index 6b659be6443..76a81f7d234 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_service_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_service_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:43.342Z \ No newline at end of file +2024-11-15T19:33:00.514Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_service_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_service_widget.json index 150d119a580..03f0a175a97 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_service_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_service_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_trace_service_widget-1731611563\",\"widgets\":[{\"definition\":{\"display_format\":\"two_column\",\"env\":\"none\",\"service\":\"\",\"show_breakdown\":true,\"show_distribution\":true,\"show_errors\":true,\"show_hits\":true,\"show_latency\":true,\"show_resource_list\":false,\"size_format\":\"medium\",\"span_name\":\"\",\"time\":{},\"title\":\"Service Summary\",\"type\":\"trace_service\"},\"layout\":{\"height\":72,\"width\":72,\"x\":0,\"y\":0}}]}" + "json": "{\"description\":\"\",\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_trace_service_widget-1731699180\",\"widgets\":[{\"definition\":{\"display_format\":\"two_column\",\"env\":\"none\",\"service\":\"\",\"show_breakdown\":true,\"show_distribution\":true,\"show_errors\":true,\"show_hits\":true,\"show_latency\":true,\"show_resource_list\":false,\"size_format\":\"medium\",\"span_name\":\"\",\"time\":{},\"title\":\"Service Summary\",\"type\":\"trace_service\"},\"layout\":{\"height\":72,\"width\":72,\"x\":0,\"y\":0}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"82r-6xq-vn3\",\"title\":\"Test-Create_a_new_dashboard_with_trace_service_widget-1731611563\",\"description\":\"\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"free\",\"url\":\"/dashboard/82r-6xq-vn3/test-createanewdashboardwithtraceservicewidget-1731611563\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"display_format\":\"two_column\",\"env\":\"none\",\"service\":\"\",\"show_breakdown\":true,\"show_distribution\":true,\"show_errors\":true,\"show_hits\":true,\"show_latency\":true,\"show_resource_list\":false,\"size_format\":\"medium\",\"span_name\":\"\",\"time\":{},\"title\":\"Service Summary\",\"type\":\"trace_service\"},\"layout\":{\"height\":72,\"width\":72,\"x\":0,\"y\":0},\"id\":8083039739576862}],\"notify_list\":[],\"created_at\":\"2024-11-14T19:12:43.452285+00:00\",\"modified_at\":\"2024-11-14T19:12:43.452285+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"8rp-yjv-2c7\",\"title\":\"Test-Create_a_new_dashboard_with_trace_service_widget-1731699180\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/8rp-yjv-2c7/test-createanewdashboardwithtraceservicewidget-1731699180\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"display_format\":\"two_column\",\"env\":\"none\",\"service\":\"\",\"show_breakdown\":true,\"show_distribution\":true,\"show_errors\":true,\"show_hits\":true,\"show_latency\":true,\"show_resource_list\":false,\"size_format\":\"medium\",\"span_name\":\"\",\"time\":{},\"title\":\"Service Summary\",\"type\":\"trace_service\"},\"layout\":{\"height\":72,\"width\":72,\"x\":0,\"y\":0},\"id\":1971574953690767}],\"notify_list\":[],\"created_at\":\"2024-11-15T19:33:00.618626+00:00\",\"modified_at\":\"2024-11-15T19:33:00.618626+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "95df53b0-a842-8d43-e105-03466caae9b9" + "id": "804a27fe-beee-3c52-8895-ed6406c101be" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/82r-6xq-vn3", + "path": "/api/v1/dashboard/8rp-yjv-2c7", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"82r-6xq-vn3\"}\n", + "body": "{\"deleted_dashboard_id\":\"8rp-yjv-2c7\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "82b873c9-0584-353a-9969-aa57aeb78738" + "id": "084524cf-dbba-5955-3c6a-c1e32bdb29c5" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_stream_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_stream_widget.freeze index 403f798bb02..bd99a2d0619 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_stream_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_stream_widget.freeze @@ -1 +1 @@ -2024-11-14T19:12:43.703Z \ No newline at end of file +2024-11-15T19:33:00.871Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_stream_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_stream_widget.json index 35773964d52..6a35ecd32ac 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_stream_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_trace_stream_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_trace_stream_widget-1731611563 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"service\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"trace_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_trace_stream_widget-1731699180 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"service\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"trace_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"wnc-xse-sns\",\"title\":\"Test-Create_a_new_dashboard_with_trace_stream_widget-1731611563 with list_stream widget\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/wnc-xse-sns/test-createanewdashboardwithtracestreamwidget-1731611563-with-liststream-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"service\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"trace_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":6150580172370879}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:43.829004+00:00\",\"modified_at\":\"2024-11-14T19:12:43.829004+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"8hi-5bw-sya\",\"title\":\"Test-Create_a_new_dashboard_with_trace_stream_widget-1731699180 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/8hi-5bw-sya/test-createanewdashboardwithtracestreamwidget-1731699180-with-liststream-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"service\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"trace_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":4795393510685480}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:01.001890+00:00\",\"modified_at\":\"2024-11-15T19:33:01.001890+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "47212ea0-a175-abc0-eaa1-67af254f8474" + "id": "27b9d802-2b4b-fb60-d78c-35f7130d78f5" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/wnc-xse-sns", + "path": "/api/v1/dashboard/8hi-5bw-sya", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"wnc-xse-sns\"}\n", + "body": "{\"deleted_dashboard_id\":\"8hi-5bw-sya\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "59c23ac4-f20e-07da-1247-7e0f9f86db40" + "id": "8f095424-ccc0-d87f-aa46-434d50a8f92b" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_pipelines_data_source.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_pipelines_data_source.freeze index 836b6bdd4cd..acc6b9445ff 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_pipelines_data_source.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_pipelines_data_source.freeze @@ -1 +1 @@ -2024-11-14T19:12:44.087Z \ No newline at end of file +2024-11-15T19:33:01.264Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_pipelines_data_source.json b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_pipelines_data_source.json index 97198d49cff..2b9c89d6713 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_pipelines_data_source.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_pipelines_data_source.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_ci_pipelines_data_source-1731611564 with ci_pipelines datasource\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_ci_pipelines_data_source-1731699181 with ci_pipelines datasource\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"pjm-jv3-48u\",\"title\":\"Test-Create_a_new_timeseries_widget_with_ci_pipelines_data_source-1731611564 with ci_pipelines datasource\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/pjm-jv3-48u/test-createanewtimeserieswidgetwithcipipelinesdatasource-1731611564-with-cipipel\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"},\"id\":2715700701433922}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:44.239849+00:00\",\"modified_at\":\"2024-11-14T19:12:44.239849+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"c2y-k8z-ghy\",\"title\":\"Test-Create_a_new_timeseries_widget_with_ci_pipelines_data_source-1731699181 with ci_pipelines datasource\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/c2y-k8z-ghy/test-createanewtimeserieswidgetwithcipipelinesdatasource-1731699181-with-cipipel\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"},\"id\":7421904402454882}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:01.435760+00:00\",\"modified_at\":\"2024-11-15T19:33:01.435760+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "6f28b506-0b69-e98a-0343-0bf23b349e12" + "id": "4921b694-3fed-dd1e-558d-3673acac4af7" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/pjm-jv3-48u", + "path": "/api/v1/dashboard/c2y-k8z-ghy", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"pjm-jv3-48u\"}\n", + "body": "{\"deleted_dashboard_id\":\"c2y-k8z-ghy\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "eef8bcb8-8646-47ed-634a-144d51b6bc19" + "id": "2f1ba076-889e-1a0a-bbd8-b780e66ed573" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_tests_data_source.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_tests_data_source.freeze index 07996dab86e..6c2c78659f1 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_tests_data_source.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_tests_data_source.freeze @@ -1 +1 @@ -2024-11-14T19:12:44.499Z \ No newline at end of file +2024-11-15T19:33:01.698Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_tests_data_source.json b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_tests_data_source.json index 439aa064d36..432c370ac62 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_tests_data_source.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_ci_tests_data_source.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_ci_tests_data_source-1731611564 with ci_tests datasource\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"ci_tests\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"test_level:test\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_ci_tests_data_source-1731699181 with ci_tests datasource\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"ci_tests\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"test_level:test\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"cdv-aqf-wud\",\"title\":\"Test-Create_a_new_timeseries_widget_with_ci_tests_data_source-1731611564 with ci_tests datasource\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/cdv-aqf-wud/test-createanewtimeserieswidgetwithcitestsdatasource-1731611564-with-citests-dat\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"ci_tests\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"test_level:test\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"},\"id\":6269280786174487}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:44.657788+00:00\",\"modified_at\":\"2024-11-14T19:12:44.657788+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"j89-gve-ggt\",\"title\":\"Test-Create_a_new_timeseries_widget_with_ci_tests_data_source-1731699181 with ci_tests datasource\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/j89-gve-ggt/test-createanewtimeserieswidgetwithcitestsdatasource-1731699181-with-citests-dat\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"ci_tests\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"test_level:test\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"},\"id\":6228011042051238}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:01.854077+00:00\",\"modified_at\":\"2024-11-15T19:33:01.854077+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "8586d851-a59b-5b24-179d-2799fd02bcc4" + "id": "dc6add39-028d-d4d3-f6d2-b06dd94dd697" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/cdv-aqf-wud", + "path": "/api/v1/dashboard/j89-gve-ggt", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"cdv-aqf-wud\"}\n", + "body": "{\"deleted_dashboard_id\":\"j89-gve-ggt\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "aa0f13de-1b1c-7590-0d21-97c9868a6b3d" + "id": "559da6e6-8800-9af9-8ef7-2e18e50701cd" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_incident_analytics_data_source.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_incident_analytics_data_source.freeze index 65755df7692..62d6285a0e4 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_incident_analytics_data_source.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_incident_analytics_data_source.freeze @@ -1 +1 @@ -2024-11-14T19:12:44.903Z \ No newline at end of file +2024-11-15T19:33:02.114Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_incident_analytics_data_source.json b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_incident_analytics_data_source.json index dd7e5e7ac67..ad8aad0b200 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_incident_analytics_data_source.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_incident_analytics_data_source.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_incident_analytics_data_source-1731611564 with incident_analytics datasource\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"incident_analytics\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"test_level:test\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_incident_analytics_data_source-1731699182 with incident_analytics datasource\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"incident_analytics\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"test_level:test\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"d25-w5x-ehk\",\"title\":\"Test-Create_a_new_timeseries_widget_with_incident_analytics_data_source-1731611564 with incident_analytics datasource\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/d25-w5x-ehk/test-createanewtimeserieswidgetwithincidentanalyticsdatasource-1731611564-with-i\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"incident_analytics\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"test_level:test\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"},\"id\":4201081844412552}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:45.054939+00:00\",\"modified_at\":\"2024-11-14T19:12:45.054939+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"acy-6e4-hcx\",\"title\":\"Test-Create_a_new_timeseries_widget_with_incident_analytics_data_source-1731699182 with incident_analytics datasource\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/acy-6e4-hcx/test-createanewtimeserieswidgetwithincidentanalyticsdatasource-1731699182-with-i\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\"},\"data_source\":\"incident_analytics\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"test_level:test\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{},\"title\":\"\",\"type\":\"timeseries\"},\"id\":1892327793861749}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:02.279466+00:00\",\"modified_at\":\"2024-11-15T19:33:02.279466+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "d5be1148-f043-9d05-6699-fe95ee8c1c35" + "id": "2c8e3b64-c24d-8c8f-185e-774b7ede62b8" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/d25-w5x-ehk", + "path": "/api/v1/dashboard/acy-6e4-hcx", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"d25-w5x-ehk\"}\n", + "body": "{\"deleted_dashboard_id\":\"acy-6e4-hcx\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "988eecbb-fb2e-5282-88ea-df043176a984" + "id": "b0bcd4e4-79d5-0aa4-d03b-ce30305c4e80" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_legacy_live_span_time_format.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_legacy_live_span_time_format.freeze index 7315f4dc8b0..c8e222ab205 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_legacy_live_span_time_format.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_legacy_live_span_time_format.freeze @@ -1 +1 @@ -2024-11-14T19:12:45.283Z \ No newline at end of file +2024-11-15T19:33:02.539Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_legacy_live_span_time_format.json b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_legacy_live_span_time_format.json index 2b15af776cf..3a61f0995d0 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_legacy_live_span_time_format.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_legacy_live_span_time_format.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_legacy_live_span_time_format-1731611565 with legacy live span time\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"live_span\":\"5m\"},\"title\":\"\",\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_legacy_live_span_time_format-1731699182 with legacy live span time\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"live_span\":\"5m\"},\"title\":\"\",\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"nsa-nv8-m5q\",\"title\":\"Test-Create_a_new_timeseries_widget_with_legacy_live_span_time_format-1731611565 with legacy live span time\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/nsa-nv8-m5q/test-createanewtimeserieswidgetwithlegacylivespantimeformat-1731611565-with-lega\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"live_span\":\"5m\"},\"title\":\"\",\"type\":\"timeseries\"},\"id\":4418624509298347}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:45.445247+00:00\",\"modified_at\":\"2024-11-14T19:12:45.445247+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"3zr-n9a-dfd\",\"title\":\"Test-Create_a_new_timeseries_widget_with_legacy_live_span_time_format-1731699182 with legacy live span time\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/3zr-n9a-dfd/test-createanewtimeserieswidgetwithlegacylivespantimeformat-1731699182-with-lega\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"live_span\":\"5m\"},\"title\":\"\",\"type\":\"timeseries\"},\"id\":5376392318113781}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:02.697929+00:00\",\"modified_at\":\"2024-11-15T19:33:02.697929+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "66a0ec24-2899-7933-004e-2c8ab8bbdab1" + "id": "a6fd82da-c6a3-c543-2e93-da5bcdce17fa" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/nsa-nv8-m5q", + "path": "/api/v1/dashboard/3zr-n9a-dfd", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"nsa-nv8-m5q\"}\n", + "body": "{\"deleted_dashboard_id\":\"3zr-n9a-dfd\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "7876f1a4-d0d6-0c7e-1f01-ed85f767157d" + "id": "a6c4aaad-8c42-4e78-4894-b0edb52912d0" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_fixed_span_time_format.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_fixed_span_time_format.freeze index b51338e8f50..740efedb273 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_fixed_span_time_format.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_fixed_span_time_format.freeze @@ -1 +1 @@ -2024-11-14T19:12:45.751Z \ No newline at end of file +2024-11-15T19:33:02.942Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_fixed_span_time_format.json b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_fixed_span_time_format.json index 1759ca628ca..620fe3a252a 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_fixed_span_time_format.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_fixed_span_time_format.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_new_fixed_span_time_format-1731611565 with new fixed span time\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"from\":1712080128,\"to\":1712083128,\"type\":\"fixed\"},\"title\":\"\",\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_new_fixed_span_time_format-1731699182 with new fixed span time\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"from\":1712080128,\"to\":1712083128,\"type\":\"fixed\"},\"title\":\"\",\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"aka-wb3-49f\",\"title\":\"Test-Create_a_new_timeseries_widget_with_new_fixed_span_time_format-1731611565 with new fixed span time\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/aka-wb3-49f/test-createanewtimeserieswidgetwithnewfixedspantimeformat-1731611565-with-new-fi\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"from\":1712080128,\"to\":1712083128,\"type\":\"fixed\"},\"title\":\"\",\"type\":\"timeseries\"},\"id\":5500662317894512}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:45.921766+00:00\",\"modified_at\":\"2024-11-14T19:12:45.921766+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"xfq-c2m-cqi\",\"title\":\"Test-Create_a_new_timeseries_widget_with_new_fixed_span_time_format-1731699182 with new fixed span time\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/xfq-c2m-cqi/test-createanewtimeserieswidgetwithnewfixedspantimeformat-1731699182-with-new-fi\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"from\":1712080128,\"to\":1712083128,\"type\":\"fixed\"},\"title\":\"\",\"type\":\"timeseries\"},\"id\":7353899445937131}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:03.107998+00:00\",\"modified_at\":\"2024-11-15T19:33:03.107998+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "a2f1f348-b601-2ba8-fdde-25c5b3811e1e" + "id": "e656c937-37c6-2e0e-800b-6d8cb3cec2a1" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/aka-wb3-49f", + "path": "/api/v1/dashboard/xfq-c2m-cqi", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"aka-wb3-49f\"}\n", + "body": "{\"deleted_dashboard_id\":\"xfq-c2m-cqi\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "35a2eb8b-f451-fd9b-dc1c-359a18951e1c" + "id": "0dfc01d6-44b4-b515-b4c5-029d7381fcab" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_live_span_time_format.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_live_span_time_format.freeze index 955af2958e3..b05fa906e0e 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_live_span_time_format.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_live_span_time_format.freeze @@ -1 +1 @@ -2024-11-14T19:12:46.156Z \ No newline at end of file +2024-11-15T19:33:03.421Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_live_span_time_format.json b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_live_span_time_format.json index 00bf0847023..a4cbb03f161 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_live_span_time_format.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_timeseries_widget_with_new_live_span_time_format.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_new_live_span_time_format-1731611566 with new live span time\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"type\":\"live\",\"unit\":\"minute\",\"value\":8},\"title\":\"\",\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_new_live_span_time_format-1731699183 with new live span time\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"type\":\"live\",\"unit\":\"minute\",\"value\":8},\"title\":\"\",\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"vtj-mcf-jsm\",\"title\":\"Test-Create_a_new_timeseries_widget_with_new_live_span_time_format-1731611566 with new live span time\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/vtj-mcf-jsm/test-createanewtimeserieswidgetwithnewlivespantimeformat-1731611566-with-new-liv\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"type\":\"live\",\"unit\":\"minute\",\"value\":8},\"title\":\"\",\"type\":\"timeseries\"},\"id\":5724867622312294}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:46.310420+00:00\",\"modified_at\":\"2024-11-14T19:12:46.310420+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"vtq-7wk-ezs\",\"title\":\"Test-Create_a_new_timeseries_widget_with_new_live_span_time_format-1731699183 with new live span time\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/vtq-7wk-ezs/test-createanewtimeserieswidgetwithnewlivespantimeformat-1731699183-with-new-liv\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"type\":\"live\",\"unit\":\"minute\",\"value\":8},\"title\":\"\",\"type\":\"timeseries\"},\"id\":5791200763250393}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:03.610036+00:00\",\"modified_at\":\"2024-11-15T19:33:03.610036+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "2018dbcc-02e2-a9eb-6e91-aaf956830ac8" + "id": "2a1fc119-c94d-ed04-9468-baa88b2c1f09" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/vtj-mcf-jsm", + "path": "/api/v1/dashboard/vtq-7wk-ezs", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"vtj-mcf-jsm\"}\n", + "body": "{\"deleted_dashboard_id\":\"vtq-7wk-ezs\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "8f7e9d55-e6d1-9364-9085-425584152cbc" + "id": "16caaef9-9c2f-dc46-4c9b-f77055fb204d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_Dashboard_Not_Found_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_Dashboard_Not_Found_response.freeze index 69b301ba042..ac6221cc7b0 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_Dashboard_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_Dashboard_Not_Found_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:46.557Z \ No newline at end of file +2024-11-15T19:33:03.867Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_OK_response.freeze index da3a8ab12d1..0d215f5af47 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:46.664Z \ No newline at end of file +2024-11-15T19:33:03.971Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_OK_response.json index 9b45b053169..e27f0f057e8 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Create_a_shared_dashboard_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_shared_dashboard_returns_OK_response-1731611566 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_shared_dashboard_returns_OK_response-1731699183 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"zc8-ujq-5pw\",\"title\":\"Test-Create_a_shared_dashboard_returns_OK_response-1731611566 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/zc8-ujq-5pw/test-createashareddashboardreturnsokresponse-1731611566-with-profile-metrics-que\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":8629710172038882}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:46.843636+00:00\",\"modified_at\":\"2024-11-14T19:12:46.843636+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"g3v-56r-qqm\",\"title\":\"Test-Create_a_shared_dashboard_returns_OK_response-1731699183 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/g3v-56r-qqm/test-createashareddashboardreturnsokresponse-1731699183-with-profile-metrics-que\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":7951506467220611}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:04.124805+00:00\",\"modified_at\":\"2024-11-15T19:33:04.124805+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "2b701a2e-b614-9a72-ee13-c54c26248035" + "id": "a60fe35c-d006-17e9-eb07-12fe3cb05210" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"dashboard_id\":\"zc8-ujq-5pw\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_type\":\"open\"}" + "json": "{\"dashboard_id\":\"g3v-56r-qqm\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_type\":\"open\"}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"author\":{\"handle\":\"anika.maskara@datadoghq.com\",\"name\":\"Anika Maskara\"},\"dashboard_id\":\"zc8-ujq-5pw\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Create_a_shared_dashboard_returns_OK_response-1731611566 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-cdab0ba2d895a0652a2125ec4addf7a4\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-cdab0ba2d895a0652a2125ec4addf7a4\",\"created\":\"2024-11-14T19:12:47.159926+00:00\",\"share_type\":\"open\",\"share_list\":null,\"session_duration_in_days\":null,\"invitees\":[]}\n", + "body": "{\"author\":{\"handle\":\"frog@datadoghq.com\",\"name\":null},\"dashboard_id\":\"g3v-56r-qqm\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Create_a_shared_dashboard_returns_OK_response-1731699183 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-4893b23e8e8483063cfae1c21abb8de1\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-4893b23e8e8483063cfae1c21abb8de1\",\"created\":\"2024-11-15T19:33:04.453114+00:00\",\"share_type\":\"open\",\"share_list\":null,\"session_duration_in_days\":null,\"invitees\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "31c4d072-1909-81a8-73b5-57c90d3fdb26" + "id": "11417549-3ac7-60f8-812e-e8e8d49c4466" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-cdab0ba2d895a0652a2125ec4addf7a4", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-4893b23e8e8483063cfae1c21abb8de1", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-cdab0ba2d895a0652a2125ec4addf7a4\"}\n", + "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-4893b23e8e8483063cfae1c21abb8de1\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "0d61e5d0-e7c8-82a7-0c1c-d12f7aecdafc" + "id": "7c913f47-06e3-a1ce-c162-59218157de0e" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/zc8-ujq-5pw", + "path": "/api/v1/dashboard/g3v-56r-qqm", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"zc8-ujq-5pw\"}\n", + "body": "{\"deleted_dashboard_id\":\"g3v-56r-qqm\"}\n", "headers": { "Content-Type": [ "application/json" @@ -109,6 +109,6 @@ "timeToLive": { "unlimited": true }, - "id": "27ad3a08-2a41-35ea-518a-78048639e6db" + "id": "eba8bac8-0d73-3b5a-688b-d69fa9f498c0" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Delete_a_dashboard_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Delete_a_dashboard_returns_OK_response.freeze index d80bc1bcd29..e3796b0ab28 100644 --- a/src/test/resources/cassettes/features/v1/Delete_a_dashboard_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Delete_a_dashboard_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:47.633Z \ No newline at end of file +2024-11-15T19:33:04.960Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Delete_a_dashboard_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Delete_a_dashboard_returns_OK_response.json index 39726805bc1..4908a34a275 100644 --- a/src/test/resources/cassettes/features/v1/Delete_a_dashboard_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Delete_a_dashboard_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Delete_a_dashboard_returns_OK_response-1731611567 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Delete_a_dashboard_returns_OK_response-1731699184 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"7g3-mu4-zqy\",\"title\":\"Test-Delete_a_dashboard_returns_OK_response-1731611567 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/7g3-mu4-zqy/test-deleteadashboardreturnsokresponse-1731611567-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":3061455461089207}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:47.802885+00:00\",\"modified_at\":\"2024-11-14T19:12:47.802885+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"hai-uhn-87g\",\"title\":\"Test-Delete_a_dashboard_returns_OK_response-1731699184 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/hai-uhn-87g/test-deleteadashboardreturnsokresponse-1731699184-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":1882306032459411}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:05.172609+00:00\",\"modified_at\":\"2024-11-15T19:33:05.172609+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "ad592bd4-ce5e-7fbb-c20f-a61a88f2557d" + "id": "b2413518-e830-564b-4c8b-bd7b1947ed6d" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/7g3-mu4-zqy", + "path": "/api/v1/dashboard/hai-uhn-87g", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"7g3-mu4-zqy\"}\n", + "body": "{\"deleted_dashboard_id\":\"hai-uhn-87g\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,18 +53,18 @@ "timeToLive": { "unlimited": true }, - "id": "cccc130c-f138-8c12-d0f5-417af71f72d1" + "id": "e428a1ff-a53f-3067-a5c8-a292308b6e38" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/7g3-mu4-zqy", + "path": "/api/v1/dashboard/hai-uhn-87g", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[\"Dashboard with ID 7g3-mu4-zqy not found\"]}", + "body": "{\"errors\":[\"Dashboard with ID hai-uhn-87g not found\"]}", "headers": { "Content-Type": [ "application/json" @@ -79,6 +79,6 @@ "timeToLive": { "unlimited": true }, - "id": "cccc130c-f138-8c12-d0f5-417af71f72d2" + "id": "e428a1ff-a53f-3067-a5c8-a292308b6e39" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Delete_dashboards_returns_No_Content_response.freeze b/src/test/resources/cassettes/features/v1/Delete_dashboards_returns_No_Content_response.freeze index 2478cb8050f..2749a38eae1 100644 --- a/src/test/resources/cassettes/features/v1/Delete_dashboards_returns_No_Content_response.freeze +++ b/src/test/resources/cassettes/features/v1/Delete_dashboards_returns_No_Content_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:48.160Z \ No newline at end of file +2024-11-15T19:33:05.518Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Delete_dashboards_returns_No_Content_response.json b/src/test/resources/cassettes/features/v1/Delete_dashboards_returns_No_Content_response.json index fc0b8147af4..a1d20d03408 100644 --- a/src/test/resources/cassettes/features/v1/Delete_dashboards_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v1/Delete_dashboards_returns_No_Content_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Delete_dashboards_returns_No_Content_response-1731611568 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Delete_dashboards_returns_No_Content_response-1731699185 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"7r3-8uu-hh9\",\"title\":\"Test-Delete_dashboards_returns_No_Content_response-1731611568 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/7r3-8uu-hh9/test-deletedashboardsreturnsnocontentresponse-1731611568-with-profile-metrics-qu\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":8097659346546797}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:48.318901+00:00\",\"modified_at\":\"2024-11-14T19:12:48.318901+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"jp2-chp-z7f\",\"title\":\"Test-Delete_dashboards_returns_No_Content_response-1731699185 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/jp2-chp-z7f/test-deletedashboardsreturnsnocontentresponse-1731699185-with-profile-metrics-qu\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":7971677393607038}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:05.683192+00:00\",\"modified_at\":\"2024-11-15T19:33:05.683192+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "2c64f345-110a-97b6-9498-8c65f8d6e4aa" + "id": "937db7ed-d0dd-d6f2-b618-fe62ecf42c04" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":[{\"id\":\"7r3-8uu-hh9\",\"type\":\"dashboard\"}]}" + "json": "{\"data\":[{\"id\":\"jp2-chp-z7f\",\"type\":\"dashboard\"}]}" }, "headers": {}, "method": "DELETE", @@ -56,18 +56,18 @@ "timeToLive": { "unlimited": true }, - "id": "6c4aa8ff-168d-393d-f5fb-a070993dd1e6" + "id": "61d9d9e9-6041-d6ac-177c-5439271b786c" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/7r3-8uu-hh9", + "path": "/api/v1/dashboard/jp2-chp-z7f", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[\"Dashboard with ID 7r3-8uu-hh9 not found\"]}", + "body": "{\"errors\":[\"Dashboard with ID jp2-chp-z7f not found\"]}", "headers": { "Content-Type": [ "application/json" @@ -82,6 +82,6 @@ "timeToLive": { "unlimited": true }, - "id": "cf656b6e-e1e6-ab3a-4274-feffefbc778c" + "id": "b4fd9743-942d-ffd3-bbff-28abb2cf0165" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Get_a_dashboard_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Get_a_dashboard_returns_OK_response.freeze index 094aed4527f..5275fa54633 100644 --- a/src/test/resources/cassettes/features/v1/Get_a_dashboard_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Get_a_dashboard_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:48.640Z \ No newline at end of file +2024-11-15T19:33:06.052Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Get_a_dashboard_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Get_a_dashboard_returns_OK_response.json index a84a9332bc8..bf2d4190098 100644 --- a/src/test/resources/cassettes/features/v1/Get_a_dashboard_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Get_a_dashboard_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1731611568 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"8u7-9gr-rx9\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1731611568 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/8u7-9gr-rx9/test-getadashboardreturnsokresponse-1731611568-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":942871578443424}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:48.809197+00:00\",\"modified_at\":\"2024-11-14T19:12:48.809197+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"448-ktj-ezs\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/448-ktj-ezs/test-getadashboardreturnsokresponse-1731699186-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":7381515167611300}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:06.217022+00:00\",\"modified_at\":\"2024-11-15T19:33:06.217022+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "abf64c35-4579-7714-c484-477564ef9ef0" + "id": "60b90682-dba1-4f06-0482-fb72d684d963" }, { "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v1/dashboard/8u7-9gr-rx9", + "path": "/api/v1/dashboard/448-ktj-ezs", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"id\":\"8u7-9gr-rx9\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1731611568 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/8u7-9gr-rx9/test-getadashboardreturnsokresponse-1731611568-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":942871578443424}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:48.809197+00:00\",\"modified_at\":\"2024-11-14T19:12:48.809197+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"448-ktj-ezs\",\"title\":\"Test-Get_a_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/448-ktj-ezs/test-getadashboardreturnsokresponse-1731699186-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":7381515167611300}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:06.217022+00:00\",\"modified_at\":\"2024-11-15T19:33:06.217022+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -53,18 +53,18 @@ "timeToLive": { "unlimited": true }, - "id": "35ccbead-8813-5912-6eed-34b43ef97aa0" + "id": "c6022fb2-8ef5-de3d-99e8-6dda46df81ad" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/8u7-9gr-rx9", + "path": "/api/v1/dashboard/448-ktj-ezs", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"8u7-9gr-rx9\"}\n", + "body": "{\"deleted_dashboard_id\":\"448-ktj-ezs\"}\n", "headers": { "Content-Type": [ "application/json" @@ -79,6 +79,6 @@ "timeToLive": { "unlimited": true }, - "id": "3f04caa2-e09e-de5e-08d3-52f5669bcd9d" + "id": "44950b15-015d-11dc-0d5b-c922726630f8" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Get_a_shared_dashboard_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Get_a_shared_dashboard_returns_OK_response.freeze index ab68b32b6c2..64d7c4de059 100644 --- a/src/test/resources/cassettes/features/v1/Get_a_shared_dashboard_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Get_a_shared_dashboard_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:49.266Z \ No newline at end of file +2024-11-15T19:33:06.595Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Get_a_shared_dashboard_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Get_a_shared_dashboard_returns_OK_response.json index 11986e97f96..ef57c8523bc 100644 --- a/src/test/resources/cassettes/features/v1/Get_a_shared_dashboard_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Get_a_shared_dashboard_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Get_a_shared_dashboard_returns_OK_response-1731611569 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Get_a_shared_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"zwb-m89-nt7\",\"title\":\"Test-Get_a_shared_dashboard_returns_OK_response-1731611569 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/zwb-m89-nt7/test-getashareddashboardreturnsokresponse-1731611569-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":6181630513564549}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:49.453819+00:00\",\"modified_at\":\"2024-11-14T19:12:49.453819+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"8ev-xtr-upp\",\"title\":\"Test-Get_a_shared_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/8ev-xtr-upp/test-getashareddashboardreturnsokresponse-1731699186-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":80087833264827}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:06.747717+00:00\",\"modified_at\":\"2024-11-15T19:33:06.747717+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "59cf4599-855c-7712-4fc3-7afffbae57bd" + "id": "e20ff66d-7479-3a08-d40b-9ec324270cd3" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"dashboard_id\":\"zwb-m89-nt7\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_list\":[\"testgetashareddashboardreturnsokresponse1731611569@datadoghq.com\"],\"share_type\":\"invite\"}" + "json": "{\"dashboard_id\":\"8ev-xtr-upp\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_list\":[\"testgetashareddashboardreturnsokresponse1731699186@datadoghq.com\"],\"share_type\":\"invite\"}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"author\":{\"handle\":\"anika.maskara@datadoghq.com\",\"name\":\"Anika Maskara\"},\"dashboard_id\":\"zwb-m89-nt7\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Get_a_shared_dashboard_returns_OK_response-1731611569 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-3e108b2f5d0480a793b34eb0c8719db1\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-3e108b2f5d0480a793b34eb0c8719db1\",\"created\":\"2024-11-14T19:12:49.788461+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testgetashareddashboardreturnsokresponse1731611569@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testgetashareddashboardreturnsokresponse1731611569@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-14T19:12:49.820935+00:00\"}]}\n", + "body": "{\"author\":{\"handle\":\"frog@datadoghq.com\",\"name\":null},\"dashboard_id\":\"8ev-xtr-upp\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Get_a_shared_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-a0de932128a4590dd2936030efe4536f\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-a0de932128a4590dd2936030efe4536f\",\"created\":\"2024-11-15T19:33:07.079213+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testgetashareddashboardreturnsokresponse1731699186@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testgetashareddashboardreturnsokresponse1731699186@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-15T19:33:07.104751+00:00\"}]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "bbb58eb9-5bc6-e56a-94c7-3633860e6c7d" + "id": "96a98db7-7f0c-4114-eddc-b910bbca5957" }, { "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-3e108b2f5d0480a793b34eb0c8719db1", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-a0de932128a4590dd2936030efe4536f", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"author\":{\"handle\":\"anika.maskara@datadoghq.com\",\"name\":\"Anika Maskara\"},\"dashboard_id\":\"zwb-m89-nt7\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Get_a_shared_dashboard_returns_OK_response-1731611569 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-3e108b2f5d0480a793b34eb0c8719db1\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-3e108b2f5d0480a793b34eb0c8719db1\",\"created\":\"2024-11-14T19:12:49.788461+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testgetashareddashboardreturnsokresponse1731611569@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testgetashareddashboardreturnsokresponse1731611569@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-14T19:12:49.820935+00:00\"}]}\n", + "body": "{\"author\":{\"handle\":\"frog@datadoghq.com\",\"name\":null},\"dashboard_id\":\"8ev-xtr-upp\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Get_a_shared_dashboard_returns_OK_response-1731699186 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-a0de932128a4590dd2936030efe4536f\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-a0de932128a4590dd2936030efe4536f\",\"created\":\"2024-11-15T19:33:07.079213+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testgetashareddashboardreturnsokresponse1731699186@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testgetashareddashboardreturnsokresponse1731699186@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-15T19:33:07.104751+00:00\"}]}\n", "headers": { "Content-Type": [ "application/json" @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "df42059a-990a-978c-4645-818706503cf8" + "id": "b6285854-080b-e471-cff8-508374b3985b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-3e108b2f5d0480a793b34eb0c8719db1", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-a0de932128a4590dd2936030efe4536f", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-3e108b2f5d0480a793b34eb0c8719db1\"}\n", + "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-a0de932128a4590dd2936030efe4536f\"}\n", "headers": { "Content-Type": [ "application/json" @@ -109,18 +109,18 @@ "timeToLive": { "unlimited": true }, - "id": "efe4bc30-66d9-dc05-0223-ad493396702c" + "id": "2f77d4bd-ca1d-c4ef-ac4c-afe271b559c4" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/zwb-m89-nt7", + "path": "/api/v1/dashboard/8ev-xtr-upp", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"zwb-m89-nt7\"}\n", + "body": "{\"deleted_dashboard_id\":\"8ev-xtr-upp\"}\n", "headers": { "Content-Type": [ "application/json" @@ -135,6 +135,6 @@ "timeToLive": { "unlimited": true }, - "id": "4ad2802e-7859-23a9-3fbd-9d216a5cceb4" + "id": "457d29df-9206-3fc4-cf7c-5162f219fc1f" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Get_all_invitations_for_a_shared_dashboard_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Get_all_invitations_for_a_shared_dashboard_returns_OK_response.freeze index d48ca7e2065..376ab4d26e7 100644 --- a/src/test/resources/cassettes/features/v1/Get_all_invitations_for_a_shared_dashboard_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Get_all_invitations_for_a_shared_dashboard_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:50.331Z \ No newline at end of file +2024-11-15T19:33:07.625Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Get_all_invitations_for_a_shared_dashboard_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Get_all_invitations_for_a_shared_dashboard_returns_OK_response.json index f1064a30f2b..d206f023627 100644 --- a/src/test/resources/cassettes/features/v1/Get_all_invitations_for_a_shared_dashboard_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Get_all_invitations_for_a_shared_dashboard_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Get_all_invitations_for_a_shared_dashboard_returns_OK_response-1731611570 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Get_all_invitations_for_a_shared_dashboard_returns_OK_response-1731699187 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"fkc-v6q-qze\",\"title\":\"Test-Get_all_invitations_for_a_shared_dashboard_returns_OK_response-1731611570 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/fkc-v6q-qze/test-getallinvitationsforashareddashboardreturnsokresponse-1731611570-with-profi\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":366760305923022}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:50.495987+00:00\",\"modified_at\":\"2024-11-14T19:12:50.495987+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"qnh-gkv-jbc\",\"title\":\"Test-Get_all_invitations_for_a_shared_dashboard_returns_OK_response-1731699187 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/qnh-gkv-jbc/test-getallinvitationsforashareddashboardreturnsokresponse-1731699187-with-profi\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":6861880551996269}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:07.779258+00:00\",\"modified_at\":\"2024-11-15T19:33:07.779258+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "b0a1394d-e279-2250-84dc-6c8e3874e970" + "id": "22573679-bc14-6553-cd2e-73024423f59c" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"dashboard_id\":\"fkc-v6q-qze\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_list\":[\"testgetallinvitationsforashareddashboardreturnsokresponse1731611570@datadoghq.com\"],\"share_type\":\"invite\"}" + "json": "{\"dashboard_id\":\"qnh-gkv-jbc\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_list\":[\"testgetallinvitationsforashareddashboardreturnsokresponse1731699187@datadoghq.com\"],\"share_type\":\"invite\"}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"author\":{\"handle\":\"anika.maskara@datadoghq.com\",\"name\":\"Anika Maskara\"},\"dashboard_id\":\"fkc-v6q-qze\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Get_all_invitations_for_a_shared_dashboard_returns_OK_response-1731611570 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-91e2d2e8c19d6a2b80d2b4a75d7303da\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-91e2d2e8c19d6a2b80d2b4a75d7303da\",\"created\":\"2024-11-14T19:12:50.829214+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testgetallinvitationsforashareddashboardreturnsokresponse1731611570@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testgetallinvitationsforashareddashboardreturnsokresponse1731611570@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-14T19:12:50.855355+00:00\"}]}\n", + "body": "{\"author\":{\"handle\":\"frog@datadoghq.com\",\"name\":null},\"dashboard_id\":\"qnh-gkv-jbc\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Get_all_invitations_for_a_shared_dashboard_returns_OK_response-1731699187 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-d7c9444d4bf13c445437741538d0ad29\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-d7c9444d4bf13c445437741538d0ad29\",\"created\":\"2024-11-15T19:33:08.095976+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testgetallinvitationsforashareddashboardreturnsokresponse1731699187@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testgetallinvitationsforashareddashboardreturnsokresponse1731699187@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-15T19:33:08.120637+00:00\"}]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "b9df4c01-f5d6-1577-70a2-520e2eaff670" + "id": "1535e195-6ce0-7eaf-9b5f-e75d494fb2c4" }, { "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-91e2d2e8c19d6a2b80d2b4a75d7303da/invitation", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-d7c9444d4bf13c445437741538d0ad29/invitation", "keepAlive": false, "secure": true }, @@ -83,18 +83,18 @@ "timeToLive": { "unlimited": true }, - "id": "f2eed465-9bcf-da11-6966-a25895e84a46" + "id": "80512653-699f-5075-5f30-5e69ffa3206a" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-91e2d2e8c19d6a2b80d2b4a75d7303da", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-d7c9444d4bf13c445437741538d0ad29", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-91e2d2e8c19d6a2b80d2b4a75d7303da\"}\n", + "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-d7c9444d4bf13c445437741538d0ad29\"}\n", "headers": { "Content-Type": [ "application/json" @@ -109,18 +109,18 @@ "timeToLive": { "unlimited": true }, - "id": "1e57fa9a-208e-132e-bd40-9cd0bd27527f" + "id": "9486ea7d-50d2-9d2d-ab04-f3334ab9af9a" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/fkc-v6q-qze", + "path": "/api/v1/dashboard/qnh-gkv-jbc", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"fkc-v6q-qze\"}\n", + "body": "{\"deleted_dashboard_id\":\"qnh-gkv-jbc\"}\n", "headers": { "Content-Type": [ "application/json" @@ -135,6 +135,6 @@ "timeToLive": { "unlimited": true }, - "id": "d9813273-3824-1d24-197f-3292b143286d" + "id": "410f35fb-a9ba-fe63-ec0d-bb7afc64c700" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Restore_deleted_dashboards_returns_No_Content_response.freeze b/src/test/resources/cassettes/features/v1/Restore_deleted_dashboards_returns_No_Content_response.freeze index 782c991a59b..0e7b81a08b2 100644 --- a/src/test/resources/cassettes/features/v1/Restore_deleted_dashboards_returns_No_Content_response.freeze +++ b/src/test/resources/cassettes/features/v1/Restore_deleted_dashboards_returns_No_Content_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:51.450Z \ No newline at end of file +2024-11-15T19:33:08.646Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Restore_deleted_dashboards_returns_No_Content_response.json b/src/test/resources/cassettes/features/v1/Restore_deleted_dashboards_returns_No_Content_response.json index 438ad8ef958..67363309b34 100644 --- a/src/test/resources/cassettes/features/v1/Restore_deleted_dashboards_returns_No_Content_response.json +++ b/src/test/resources/cassettes/features/v1/Restore_deleted_dashboards_returns_No_Content_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Restore_deleted_dashboards_returns_No_Content_response-1731611571 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Restore_deleted_dashboards_returns_No_Content_response-1731699188 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"vmk-awa-gje\",\"title\":\"Test-Restore_deleted_dashboards_returns_No_Content_response-1731611571 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/vmk-awa-gje/test-restoredeleteddashboardsreturnsnocontentresponse-1731611571-with-profile-me\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":1217565763013822}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:51.626570+00:00\",\"modified_at\":\"2024-11-14T19:12:51.626570+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"xsv-pnb-qcn\",\"title\":\"Test-Restore_deleted_dashboards_returns_No_Content_response-1731699188 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/xsv-pnb-qcn/test-restoredeleteddashboardsreturnsnocontentresponse-1731699188-with-profile-me\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":5612613024221520}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:08.803192+00:00\",\"modified_at\":\"2024-11-15T19:33:08.803192+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "b5c54424-8296-fd8a-a4c2-5973c994a193" + "id": "ad153346-3fab-b5ac-52ac-de233a5df49d" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/vmk-awa-gje", + "path": "/api/v1/dashboard/xsv-pnb-qcn", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"vmk-awa-gje\"}\n", + "body": "{\"deleted_dashboard_id\":\"xsv-pnb-qcn\"}\n", "headers": { "Content-Type": [ "application/json" @@ -53,13 +53,13 @@ "timeToLive": { "unlimited": true }, - "id": "dd5cd080-321c-8b4d-aa3f-0e2d900a4314" + "id": "1c344d72-9d2e-a68d-2f17-5680e8c6782b" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":[{\"id\":\"vmk-awa-gje\",\"type\":\"dashboard\"}]}" + "json": "{\"data\":[{\"id\":\"xsv-pnb-qcn\",\"type\":\"dashboard\"}]}" }, "headers": {}, "method": "PATCH", @@ -82,18 +82,18 @@ "timeToLive": { "unlimited": true }, - "id": "4396aece-ca77-542f-2052-a6d37ec3974b" + "id": "569922d4-86f6-d5fc-4001-8b527d62849b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/vmk-awa-gje", + "path": "/api/v1/dashboard/xsv-pnb-qcn", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"vmk-awa-gje\"}\n", + "body": "{\"deleted_dashboard_id\":\"xsv-pnb-qcn\"}\n", "headers": { "Content-Type": [ "application/json" @@ -108,6 +108,6 @@ "timeToLive": { "unlimited": true }, - "id": "dd5cd080-321c-8b4d-aa3f-0e2d900a4315" + "id": "1c344d72-9d2e-a68d-2f17-5680e8c6782c" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Send_shared_dashboard_invitation_email_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Send_shared_dashboard_invitation_email_returns_OK_response.freeze index b52234e3c48..df6df60a531 100644 --- a/src/test/resources/cassettes/features/v1/Send_shared_dashboard_invitation_email_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Send_shared_dashboard_invitation_email_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:52.187Z \ No newline at end of file +2024-11-15T19:33:09.343Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Send_shared_dashboard_invitation_email_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Send_shared_dashboard_invitation_email_returns_OK_response.json index 406f21a4be7..e580ad37f8f 100644 --- a/src/test/resources/cassettes/features/v1/Send_shared_dashboard_invitation_email_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Send_shared_dashboard_invitation_email_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Send_shared_dashboard_invitation_email_returns_OK_response-1731611572 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Send_shared_dashboard_invitation_email_returns_OK_response-1731699189 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"gut-f87-dcm\",\"title\":\"Test-Send_shared_dashboard_invitation_email_returns_OK_response-1731611572 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/gut-f87-dcm/test-sendshareddashboardinvitationemailreturnsokresponse-1731611572-with-profile\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":4948380477762847}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:52.340660+00:00\",\"modified_at\":\"2024-11-14T19:12:52.340660+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"yri-q6w-8gq\",\"title\":\"Test-Send_shared_dashboard_invitation_email_returns_OK_response-1731699189 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/yri-q6w-8gq/test-sendshareddashboardinvitationemailreturnsokresponse-1731699189-with-profile\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":4582147876316754}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:09.509544+00:00\",\"modified_at\":\"2024-11-15T19:33:09.509544+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "f8457264-2314-678a-f951-a03db913981b" + "id": "530d6884-7628-6fda-93a4-24325b31632a" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"dashboard_id\":\"gut-f87-dcm\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_list\":[\"testsendshareddashboardinvitationemailreturnsokresponse1731611572@datadoghq.com\"],\"share_type\":\"invite\"}" + "json": "{\"dashboard_id\":\"yri-q6w-8gq\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_list\":[\"testsendshareddashboardinvitationemailreturnsokresponse1731699189@datadoghq.com\"],\"share_type\":\"invite\"}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"author\":{\"handle\":\"anika.maskara@datadoghq.com\",\"name\":\"Anika Maskara\"},\"dashboard_id\":\"gut-f87-dcm\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Send_shared_dashboard_invitation_email_returns_OK_response-1731611572 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-1bf4797be5e9c081bbc244a7bf86bf9c\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-1bf4797be5e9c081bbc244a7bf86bf9c\",\"created\":\"2024-11-14T19:12:52.652942+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testsendshareddashboardinvitationemailreturnsokresponse1731611572@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testsendshareddashboardinvitationemailreturnsokresponse1731611572@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-14T19:12:52.686291+00:00\"}]}\n", + "body": "{\"author\":{\"handle\":\"frog@datadoghq.com\",\"name\":null},\"dashboard_id\":\"yri-q6w-8gq\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Send_shared_dashboard_invitation_email_returns_OK_response-1731699189 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-6b737747459631d184ade0ca119a8c2b\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-6b737747459631d184ade0ca119a8c2b\",\"created\":\"2024-11-15T19:33:09.910074+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testsendshareddashboardinvitationemailreturnsokresponse1731699189@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testsendshareddashboardinvitationemailreturnsokresponse1731699189@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-15T19:33:09.933255+00:00\"}]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,22 +57,22 @@ "timeToLive": { "unlimited": true }, - "id": "908b9413-983c-8749-44ab-e00613c6c094" + "id": "03d0efdc-f6bc-cbdf-b4b8-d2eab7531e58" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"email\":\"testsendshareddashboardinvitationemailreturnsokresponse1731611572@datadoghq.com\"},\"type\":\"public_dashboard_invitation\"}}" + "json": "{\"data\":{\"attributes\":{\"email\":\"testsendshareddashboardinvitationemailreturnsokresponse1731699189@datadoghq.com\"},\"type\":\"public_dashboard_invitation\"}}" }, "headers": {}, "method": "POST", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-1bf4797be5e9c081bbc244a7bf86bf9c/invitation", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-6b737747459631d184ade0ca119a8c2b/invitation", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"public_dashboard_invitation\",\"attributes\":{\"email\":\"testsendshareddashboardinvitationemailreturnsokresponse1731611572@datadoghq.com\",\"share_token\":\"fasjyydbcgwwc2uc-1bf4797be5e9c081bbc244a7bf86bf9c\",\"created_at\":\"2024-11-14T19:12:52.852357+00:00\",\"invitation_expiry\":\"2024-11-14T20:12:52.847878+00:00\",\"has_session\":false,\"session_expiry\":null}}}\n", + "body": "{\"data\":{\"type\":\"public_dashboard_invitation\",\"attributes\":{\"email\":\"testsendshareddashboardinvitationemailreturnsokresponse1731699189@datadoghq.com\",\"share_token\":\"fasjyydbcgwwc2uc-6b737747459631d184ade0ca119a8c2b\",\"created_at\":\"2024-11-15T19:33:10.103186+00:00\",\"invitation_expiry\":\"2024-11-15T20:33:10.101261+00:00\",\"has_session\":false,\"session_expiry\":null}}}\n", "headers": { "Content-Type": [ "application/json" @@ -87,17 +87,17 @@ "timeToLive": { "unlimited": true }, - "id": "5cba2e75-3407-94ef-2379-80a13f23b3ff" + "id": "77528647-5281-51b2-e97b-3238d774a7c5" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"email\":\"testsendshareddashboardinvitationemailreturnsokresponse1731611572@datadoghq.com\"},\"type\":\"public_dashboard_invitation\"}}" + "json": "{\"data\":{\"attributes\":{\"email\":\"testsendshareddashboardinvitationemailreturnsokresponse1731699189@datadoghq.com\"},\"type\":\"public_dashboard_invitation\"}}" }, "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-1bf4797be5e9c081bbc244a7bf86bf9c/invitation", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-6b737747459631d184ade0ca119a8c2b/invitation", "keepAlive": false, "secure": true }, @@ -116,18 +116,18 @@ "timeToLive": { "unlimited": true }, - "id": "91c8312d-8d46-b8fe-44ae-beb0a69d7e50" + "id": "447270bf-5a81-c4d7-c1a6-2c7d5596ad2e" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-1bf4797be5e9c081bbc244a7bf86bf9c", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-6b737747459631d184ade0ca119a8c2b", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-1bf4797be5e9c081bbc244a7bf86bf9c\"}\n", + "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-6b737747459631d184ade0ca119a8c2b\"}\n", "headers": { "Content-Type": [ "application/json" @@ -142,18 +142,18 @@ "timeToLive": { "unlimited": true }, - "id": "a0ba5a4a-ac15-3631-12d7-5a1c2b49a308" + "id": "e10c664a-70d7-1d89-9843-4ba8563499cc" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/gut-f87-dcm", + "path": "/api/v1/dashboard/yri-q6w-8gq", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"gut-f87-dcm\"}\n", + "body": "{\"deleted_dashboard_id\":\"yri-q6w-8gq\"}\n", "headers": { "Content-Type": [ "application/json" @@ -168,6 +168,6 @@ "timeToLive": { "unlimited": true }, - "id": "098dea3f-5294-73a6-24f1-8019a1c5a2db" + "id": "23480e0a-0d87-cdca-3542-7bfc15d865bc" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Update_a_dashboard_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Update_a_dashboard_returns_OK_response.freeze index 9b016bffb8e..f43e4e4365a 100644 --- a/src/test/resources/cassettes/features/v1/Update_a_dashboard_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Update_a_dashboard_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:53.526Z \ No newline at end of file +2024-11-15T19:33:10.845Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Update_a_dashboard_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Update_a_dashboard_returns_OK_response.json index ae7a056f802..c97d5a8d01d 100644 --- a/src/test/resources/cassettes/features/v1/Update_a_dashboard_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Update_a_dashboard_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Update_a_dashboard_returns_OK_response-1731611573 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Update_a_dashboard_returns_OK_response-1731699190 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"5xn-4yt-3vj\",\"title\":\"Test-Update_a_dashboard_returns_OK_response-1731611573 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/5xn-4yt-3vj/test-updateadashboardreturnsokresponse-1731611573-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":326375296924581}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:53.681001+00:00\",\"modified_at\":\"2024-11-14T19:12:53.681001+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"p63-b2n-sjg\",\"title\":\"Test-Update_a_dashboard_returns_OK_response-1731699190 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/p63-b2n-sjg/test-updateadashboardreturnsokresponse-1731699190-with-profile-metrics-query\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":5657970793131714}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:11.001823+00:00\",\"modified_at\":\"2024-11-15T19:33:11.001823+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,22 +27,22 @@ "timeToLive": { "unlimited": true }, - "id": "0054f893-5a1c-3138-fb21-d17139aa1dd1" + "id": "00dba924-598e-7486-cbdc-7b49c1a35eb7" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"Updated description\",\"layout_type\":\"ordered\",\"title\":\"Test-Update_a_dashboard_returns_OK_response-1731611573 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"description\":\"Updated description\",\"layout_type\":\"ordered\",\"title\":\"Test-Update_a_dashboard_returns_OK_response-1731699190 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "PUT", - "path": "/api/v1/dashboard/5xn-4yt-3vj", + "path": "/api/v1/dashboard/p63-b2n-sjg", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"id\":\"5xn-4yt-3vj\",\"title\":\"Test-Update_a_dashboard_returns_OK_response-1731611573 with list_stream widget\",\"description\":\"Updated description\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/5xn-4yt-3vj/test-updateadashboardreturnsokresponse-1731611573-with-liststream-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":2243312871402041}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:53.681001+00:00\",\"modified_at\":\"2024-11-14T19:12:53.919704+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"p63-b2n-sjg\",\"title\":\"Test-Update_a_dashboard_returns_OK_response-1731699190 with list_stream widget\",\"description\":\"Updated description\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/p63-b2n-sjg/test-updateadashboardreturnsokresponse-1731699190-with-liststream-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":2673972776725197}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:11.001823+00:00\",\"modified_at\":\"2024-11-15T19:33:11.244365+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "452e4779-a7bf-8eb3-e2af-8a9d9c84b255" + "id": "5b90e621-c475-f26d-2466-24bf58ec3d80" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/5xn-4yt-3vj", + "path": "/api/v1/dashboard/p63-b2n-sjg", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"5xn-4yt-3vj\"}\n", + "body": "{\"deleted_dashboard_id\":\"p63-b2n-sjg\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,6 +83,6 @@ "timeToLive": { "unlimited": true }, - "id": "b5e79832-b296-b65e-5e2c-652a5b4ee80d" + "id": "ccab9a7f-90bd-1fef-509f-1466e00012a8" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Update_a_dashboard_with_tags_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Update_a_dashboard_with_tags_returns_OK_response.freeze index a9783311d3e..27435ebcfe4 100644 --- a/src/test/resources/cassettes/features/v1/Update_a_dashboard_with_tags_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Update_a_dashboard_with_tags_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:54.203Z \ No newline at end of file +2024-11-15T19:33:11.536Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Update_a_dashboard_with_tags_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Update_a_dashboard_with_tags_returns_OK_response.json index abb6c1c747a..82efe1979e8 100644 --- a/src/test/resources/cassettes/features/v1/Update_a_dashboard_with_tags_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Update_a_dashboard_with_tags_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Update_a_dashboard_with_tags_returns_OK_response-1731611574 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Update_a_dashboard_with_tags_returns_OK_response-1731699191 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"czi-xdb-s6p\",\"title\":\"Test-Update_a_dashboard_with_tags_returns_OK_response-1731611574 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/czi-xdb-s6p/test-updateadashboardwithtagsreturnsokresponse-1731611574-with-profile-metrics-q\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":3237823039056245}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:54.366180+00:00\",\"modified_at\":\"2024-11-14T19:12:54.366180+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"dpm-665-j6y\",\"title\":\"Test-Update_a_dashboard_with_tags_returns_OK_response-1731699191 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/dpm-665-j6y/test-updateadashboardwithtagsreturnsokresponse-1731699191-with-profile-metrics-q\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":7755905539203163}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:11.685174+00:00\",\"modified_at\":\"2024-11-15T19:33:11.685174+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,22 +27,22 @@ "timeToLive": { "unlimited": true }, - "id": "46b1c0e6-490a-cfad-748a-1a8d05f55837" + "id": "b1722205-b255-f243-5270-d39e8fd9e580" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"Updated description\",\"layout_type\":\"ordered\",\"tags\":[\"team:foo\",\"team:bar\"],\"title\":\"Test-Update_a_dashboard_with_tags_returns_OK_response-1731611574 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" + "json": "{\"description\":\"Updated description\",\"layout_type\":\"ordered\",\"tags\":[\"team:foo\",\"team:bar\"],\"title\":\"Test-Update_a_dashboard_with_tags_returns_OK_response-1731699191 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}" }, "headers": {}, "method": "PUT", - "path": "/api/v1/dashboard/czi-xdb-s6p", + "path": "/api/v1/dashboard/dpm-665-j6y", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"id\":\"czi-xdb-s6p\",\"title\":\"Test-Update_a_dashboard_with_tags_returns_OK_response-1731611574 with list_stream widget\",\"description\":\"Updated description\",\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/czi-xdb-s6p/test-updateadashboardwithtagsreturnsokresponse-1731611574-with-liststream-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":21493426206915}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:54.366180+00:00\",\"modified_at\":\"2024-11-14T19:12:54.607510+00:00\",\"tags\":[\"team:foo\",\"team:bar\"],\"restricted_roles\":[]}\n", + "body": "{\"id\":\"dpm-665-j6y\",\"title\":\"Test-Update_a_dashboard_with_tags_returns_OK_response-1731699191 with list_stream widget\",\"description\":\"Updated description\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/dpm-665-j6y/test-updateadashboardwithtagsreturnsokresponse-1731699191-with-liststream-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"apm_issue_stream\",\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":4561855444879229}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:11.685174+00:00\",\"modified_at\":\"2024-11-15T19:33:11.905971+00:00\",\"tags\":[\"team:foo\",\"team:bar\"],\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "f2224dc5-2b69-9533-b4f9-3c337b57bee7" + "id": "87d01e62-4528-d002-beda-526eb52c0ab2" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/czi-xdb-s6p", + "path": "/api/v1/dashboard/dpm-665-j6y", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"czi-xdb-s6p\"}\n", + "body": "{\"deleted_dashboard_id\":\"dpm-665-j6y\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,6 +83,6 @@ "timeToLive": { "unlimited": true }, - "id": "f6290b33-16b1-f7da-0ffe-c56ed2fffa3e" + "id": "5b12884e-c71b-e640-b2eb-37a16d7a9026" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Update_a_shared_dashboard_returns_OK_response.freeze b/src/test/resources/cassettes/features/v1/Update_a_shared_dashboard_returns_OK_response.freeze index 54de005803c..97694f3053a 100644 --- a/src/test/resources/cassettes/features/v1/Update_a_shared_dashboard_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v1/Update_a_shared_dashboard_returns_OK_response.freeze @@ -1 +1 @@ -2024-11-14T19:12:54.907Z \ No newline at end of file +2024-11-15T19:33:12.179Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Update_a_shared_dashboard_returns_OK_response.json b/src/test/resources/cassettes/features/v1/Update_a_shared_dashboard_returns_OK_response.json index 06c7f880044..f6027e1c092 100644 --- a/src/test/resources/cassettes/features/v1/Update_a_shared_dashboard_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v1/Update_a_shared_dashboard_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Update_a_shared_dashboard_returns_OK_response-1731611574 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" + "json": "{\"layout_type\":\"ordered\",\"title\":\"Test-Update_a_shared_dashboard_returns_OK_response-1731699192 with Profile Metrics Query\",\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"}}]}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"88w-xn2-mij\",\"title\":\"Test-Update_a_shared_dashboard_returns_OK_response-1731611574 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"anika.maskara@datadoghq.com\",\"author_name\":\"Anika Maskara\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/88w-xn2-mij/test-updateashareddashboardreturnsokresponse-1731611574-with-profile-metrics-que\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":6560132249388355}],\"notify_list\":null,\"created_at\":\"2024-11-14T19:12:55.067902+00:00\",\"modified_at\":\"2024-11-14T19:12:55.067902+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"7gy-n9j-kdz\",\"title\":\"Test-Update_a_shared_dashboard_returns_OK_response-1731699192 with Profile Metrics Query\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/7gy-n9j-kdz/test-updateashareddashboardreturnsokresponse-1731699192-with-profile-metrics-que\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"profile_metrics_query\":{\"compute\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\"},\"group_by\":[{\"facet\":\"service\",\"limit\":10,\"sort\":{\"aggregation\":\"sum\",\"facet\":\"@prof_core_cpu_cores\",\"order\":\"desc\"}}],\"search\":{\"query\":\"runtime:jvm\"}}}],\"type\":\"timeseries\"},\"id\":1917183550061512}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:12.333485+00:00\",\"modified_at\":\"2024-11-15T19:33:12.333485+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "d8e21ef6-c6ec-5a30-e3c8-c17176c21fed" + "id": "4c9199a1-1951-d434-e96e-592aa6f18172" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"dashboard_id\":\"88w-xn2-mij\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_list\":[\"testupdateashareddashboardreturnsokresponse1731611574@datadoghq.com\"],\"share_type\":\"invite\"}" + "json": "{\"dashboard_id\":\"7gy-n9j-kdz\",\"dashboard_type\":\"custom_timeboard\",\"global_time\":{\"live_span\":\"1h\"},\"share_list\":[\"testupdateashareddashboardreturnsokresponse1731699192@datadoghq.com\"],\"share_type\":\"invite\"}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"author\":{\"handle\":\"anika.maskara@datadoghq.com\",\"name\":\"Anika Maskara\"},\"dashboard_id\":\"88w-xn2-mij\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Update_a_shared_dashboard_returns_OK_response-1731611574 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-671f5753eee0a2a6b3fd80019ccbf1ec\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-671f5753eee0a2a6b3fd80019ccbf1ec\",\"created\":\"2024-11-14T19:12:55.398738+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testupdateashareddashboardreturnsokresponse1731611574@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testupdateashareddashboardreturnsokresponse1731611574@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-14T19:12:55.430476+00:00\"}]}\n", + "body": "{\"author\":{\"handle\":\"frog@datadoghq.com\",\"name\":null},\"dashboard_id\":\"7gy-n9j-kdz\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Update_a_shared_dashboard_returns_OK_response-1731699192 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"1h\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-601fe99239741e02ee84c1852ce59a37\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-601fe99239741e02ee84c1852ce59a37\",\"created\":\"2024-11-15T19:33:12.669592+00:00\",\"share_type\":\"invite\",\"share_list\":[\"testupdateashareddashboardreturnsokresponse1731699192@datadoghq.com\"],\"session_duration_in_days\":30,\"invitees\":[{\"email\":\"testupdateashareddashboardreturnsokresponse1731699192@datadoghq.com\",\"access_expiration\":null,\"last_accessed\":null,\"created_at\":\"2024-11-15T19:33:12.692355+00:00\"}]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,7 +57,7 @@ "timeToLive": { "unlimited": true }, - "id": "d7b7c3ed-5ab9-9a52-7f6b-b367a143a4ed" + "id": "27bb1f3d-a571-c7e0-a858-b2c1eccafc53" }, { "httpRequest": { @@ -67,12 +67,12 @@ }, "headers": {}, "method": "PUT", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-671f5753eee0a2a6b3fd80019ccbf1ec", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-601fe99239741e02ee84c1852ce59a37", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"author\":{\"handle\":\"anika.maskara@datadoghq.com\",\"name\":\"Anika Maskara\"},\"dashboard_id\":\"88w-xn2-mij\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Update_a_shared_dashboard_returns_OK_response-1731611574 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"15m\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-671f5753eee0a2a6b3fd80019ccbf1ec\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-671f5753eee0a2a6b3fd80019ccbf1ec\",\"created\":\"2024-11-14T19:12:55.398738+00:00\",\"share_type\":\"open\",\"share_list\":[],\"session_duration_in_days\":null,\"invitees\":[]}\n", + "body": "{\"author\":{\"handle\":\"frog@datadoghq.com\",\"name\":null},\"dashboard_id\":\"7gy-n9j-kdz\",\"dashboard_type\":\"custom_timeboard\",\"status\":\"active\",\"title\":\"Test-Update_a_shared_dashboard_returns_OK_response-1731699192 with Profile Metrics Query\",\"viewing_preferences\":{},\"expiration\":null,\"last_accessed\":null,\"global_time_selectable_enabled\":false,\"global_time\":{\"live_span\":\"15m\"},\"selectable_template_vars\":null,\"token\":\"fasjyydbcgwwc2uc-601fe99239741e02ee84c1852ce59a37\",\"public_url\":\"https://p.datadoghq.com/sb/fasjyydbcgwwc2uc-601fe99239741e02ee84c1852ce59a37\",\"created\":\"2024-11-15T19:33:12.669592+00:00\",\"share_type\":\"open\",\"share_list\":[],\"session_duration_in_days\":null,\"invitees\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -87,18 +87,18 @@ "timeToLive": { "unlimited": true }, - "id": "275e3b9c-7dd0-bad1-8f2b-86b8859f2a61" + "id": "4037edd0-7832-40c2-259e-ac33f6a5e9f9" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-671f5753eee0a2a6b3fd80019ccbf1ec", + "path": "/api/v1/dashboard/public/fasjyydbcgwwc2uc-601fe99239741e02ee84c1852ce59a37", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-671f5753eee0a2a6b3fd80019ccbf1ec\"}\n", + "body": "{\"deleted_public_dashboard_token\":\"fasjyydbcgwwc2uc-601fe99239741e02ee84c1852ce59a37\"}\n", "headers": { "Content-Type": [ "application/json" @@ -113,18 +113,18 @@ "timeToLive": { "unlimited": true }, - "id": "2fcaf4a4-9eb2-1ff2-0b10-00d22e9997d1" + "id": "8edd507c-f699-2b14-61b9-08a21e5780b3" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/88w-xn2-mij", + "path": "/api/v1/dashboard/7gy-n9j-kdz", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"88w-xn2-mij\"}\n", + "body": "{\"deleted_dashboard_id\":\"7gy-n9j-kdz\"}\n", "headers": { "Content-Type": [ "application/json" @@ -139,6 +139,6 @@ "timeToLive": { "unlimited": true }, - "id": "0a62cc69-d520-0c96-4842-e7db234a8e08" + "id": "014afb1c-bbca-d37b-a921-de3124b7db5a" } ] \ No newline at end of file