diff --git a/datadog/cassettes/TestAccDatadogDashboardQueryTable.freeze b/datadog/cassettes/TestAccDatadogDashboardQueryTable.freeze index ab4e11bd89..3c3d5e174a 100644 --- a/datadog/cassettes/TestAccDatadogDashboardQueryTable.freeze +++ b/datadog/cassettes/TestAccDatadogDashboardQueryTable.freeze @@ -1 +1 @@ -2020-10-12T09:17:33.888248+02:00 \ No newline at end of file +2020-10-15T14:21:31.028762-04:00 \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogDashboardQueryTable.yaml b/datadog/cassettes/TestAccDatadogDashboardQueryTable.yaml index a63a1f092e..004bee3cd6 100644 --- a/datadog/cassettes/TestAccDatadogDashboardQueryTable.yaml +++ b/datadog/cassettes/TestAccDatadogDashboardQueryTable.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTable-local-1602487053","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"aggregator":"max","alias":"cpu user","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":90},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_red","value":90}],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}"},{"aggregator":"last","alias":"system load","conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"custom_bg","value":50}],"q":"avg:system.load.1{*} by {service, team}"}],"time":{"live_span":"1d"},"title":"system.cpu.user, system.load.1","title_align":"right","title_size":"16","type":"query_table"}},{"definition":{"requests":[{"apm_stats_query":{"env":"env","name":"name","primary_tag":"tag:*","row_type":"resource","service":"service"}}],"type":"query_table"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTable-local-1602786091","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":90},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_red","value":90}],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}"},{"aggregator":"last","alias":"system load","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"custom_bg","value":50}],"q":"avg:system.load.1{*} by {service, team}"}],"time":{"live_span":"1d"},"title":"system.cpu.user, system.load.1","title_align":"right","title_size":"16","type":"query_table"}},{"definition":{"has_search_bar":"never","requests":[{"apm_stats_query":{"env":"env","name":"name","primary_tag":"tag:*","row_type":"resource","service":"service"}}],"type":"query_table"}}]} form: {} headers: Accept: @@ -14,22 +14,22 @@ interactions: - CreateDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "2195334385253989489" + - "8843510942614974047" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" + - "2757071113410176673" url: https://api.datadoghq.com/api/v1/dashboard method: POST response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jaq-57v-pi9","title":"tf-TestAccDatadogDashboardQueryTable-local-1602487053","url":"/dashboard/jaq-57v-pi9/tf-testaccdatadogdashboardquerytable-local-1602487053","created_at":"2020-10-12T07:20:21.451708+00:00","modified_at":"2020-10-12T07:20:21.451708+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j7x-25j-wj3","title":"tf-TestAccDatadogDashboardQueryTable-local-1602786091","url":"/dashboard/j7x-25j-wj3/tf-testaccdatadogdashboardquerytable-local-1602786091","created_at":"2020-10-15T18:21:36.816738+00:00","modified_at":"2020-10-15T18:21:36.816738+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":6071734702250297},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":5205812491750227}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":8751202385358272},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":276930378807556}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -40,13 +40,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:21 GMT + - Thu, 15 Oct 2020 18:21:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:21 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -55,9 +55,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KdWc5RppKH51u1oZ6tf2ghJTVEevh006eS91RDKZLGoax50FN2VjMvek2ayUmkXw + - mkUBxR9AT7fES9d8jomGHhjQo+QS6q6R/gxmujd5IzTAGUw8Yw9FrdECMNXXfuHz X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -73,22 +73,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "100068647091223697" + - "5211676617346388204" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" - url: https://api.datadoghq.com/api/v1/dashboard/jaq-57v-pi9 + - "2757071113410176673" + url: https://api.datadoghq.com/api/v1/dashboard/j7x-25j-wj3 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jaq-57v-pi9","title":"tf-TestAccDatadogDashboardQueryTable-local-1602487053","url":"/dashboard/jaq-57v-pi9/tf-testaccdatadogdashboardquerytable-local-1602487053","created_at":"2020-10-12T07:20:21.451708+00:00","modified_at":"2020-10-12T07:20:21.451708+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j7x-25j-wj3","title":"tf-TestAccDatadogDashboardQueryTable-local-1602786091","url":"/dashboard/j7x-25j-wj3/tf-testaccdatadogdashboardquerytable-local-1602786091","created_at":"2020-10-15T18:21:36.816738+00:00","modified_at":"2020-10-15T18:21:36.816738+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":6071734702250297},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":5205812491750227}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":8751202385358272},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":276930378807556}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -99,13 +99,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:21 GMT + - Thu, 15 Oct 2020 18:21:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:21 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -114,9 +114,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - a52+bkva5fMDFMmi2v17bUHPljQFhzXPnsLiGGP3HLm+LCaJfIpSjqgfWqa8LIOd + - 1rlggRfE73pEFFllgZfChM1RZODDnKFUyVMEk3an2/a5+lJByU7Porp1iIMqRaO7 X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -132,22 +132,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "6325108270823678435" + - "515332947942667129" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" - url: https://api.datadoghq.com/api/v1/dashboard/jaq-57v-pi9 + - "2757071113410176673" + url: https://api.datadoghq.com/api/v1/dashboard/j7x-25j-wj3 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jaq-57v-pi9","title":"tf-TestAccDatadogDashboardQueryTable-local-1602487053","url":"/dashboard/jaq-57v-pi9/tf-testaccdatadogdashboardquerytable-local-1602487053","created_at":"2020-10-12T07:20:21.451708+00:00","modified_at":"2020-10-12T07:20:21.451708+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j7x-25j-wj3","title":"tf-TestAccDatadogDashboardQueryTable-local-1602786091","url":"/dashboard/j7x-25j-wj3/tf-testaccdatadogdashboardquerytable-local-1602786091","created_at":"2020-10-15T18:21:36.816738+00:00","modified_at":"2020-10-15T18:21:36.816738+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":6071734702250297},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":5205812491750227}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":8751202385358272},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":276930378807556}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -158,13 +158,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:22 GMT + - Thu, 15 Oct 2020 18:21:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:22 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -173,9 +173,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 1rlggRfE73pEFFllgZfChM1RZODDnKFUyVMEk3an2/a5+lJByU7Porp1iIMqRaO7 + - VbuXVkM6abYwIF9A0EUx/hxlOb2fUYUuj3PZZOBGVUtLSPf9Jpa+BbRUppU4yJ6y X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -191,22 +191,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "2830549052697029586" + - "6467294312181559267" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" - url: https://api.datadoghq.com/api/v1/dashboard/jaq-57v-pi9 + - "2757071113410176673" + url: https://api.datadoghq.com/api/v1/dashboard/j7x-25j-wj3 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jaq-57v-pi9","title":"tf-TestAccDatadogDashboardQueryTable-local-1602487053","url":"/dashboard/jaq-57v-pi9/tf-testaccdatadogdashboardquerytable-local-1602487053","created_at":"2020-10-12T07:20:21.451708+00:00","modified_at":"2020-10-12T07:20:21.451708+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j7x-25j-wj3","title":"tf-TestAccDatadogDashboardQueryTable-local-1602786091","url":"/dashboard/j7x-25j-wj3/tf-testaccdatadogdashboardquerytable-local-1602786091","created_at":"2020-10-15T18:21:36.816738+00:00","modified_at":"2020-10-15T18:21:36.816738+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":6071734702250297},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":5205812491750227}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":8751202385358272},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":276930378807556}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -217,13 +217,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:27 GMT + - Thu, 15 Oct 2020 18:21:41 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:27 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:41 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -232,9 +232,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - yoF4117GjRVNjK5D+NnV1a4ZZK03NlG9+xqwkNudRekVNp0HsN72cHzXM+2uFPHI + - rbGMi63XY6ETkPw9boG8yUDqogZ/1IN0Hh4Igu952urF41BH1CFuhykimklaERoh X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -250,22 +250,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "2569443485448790717" + - "8856937387060033505" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" - url: https://api.datadoghq.com/api/v1/dashboard/jaq-57v-pi9 + - "2757071113410176673" + url: https://api.datadoghq.com/api/v1/dashboard/j7x-25j-wj3 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jaq-57v-pi9","title":"tf-TestAccDatadogDashboardQueryTable-local-1602487053","url":"/dashboard/jaq-57v-pi9/tf-testaccdatadogdashboardquerytable-local-1602487053","created_at":"2020-10-12T07:20:21.451708+00:00","modified_at":"2020-10-12T07:20:21.451708+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j7x-25j-wj3","title":"tf-TestAccDatadogDashboardQueryTable-local-1602786091","url":"/dashboard/j7x-25j-wj3/tf-testaccdatadogdashboardquerytable-local-1602786091","created_at":"2020-10-15T18:21:36.816738+00:00","modified_at":"2020-10-15T18:21:36.816738+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":6071734702250297},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":5205812491750227}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":8751202385358272},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":276930378807556}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -276,13 +276,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:27 GMT + - Thu, 15 Oct 2020 18:21:41 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:27 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:41 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -291,9 +291,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xRBFY2Rp8NHDG9Rp4RaGjcqlKnbzhHpETMjn37ZNtmzdKqGU6DeuhyyL4o7jfpVZ + - 5Vp6Lwv2kl5vwmtrK8x4SHT87up1E/Mb5wu+zWq1n+sTPuGmJfRlxsKBupN/GCCj X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -309,22 +309,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "6226729311949296443" + - "275073108351835172" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" - url: https://api.datadoghq.com/api/v1/dashboard/jaq-57v-pi9 + - "2757071113410176673" + url: https://api.datadoghq.com/api/v1/dashboard/j7x-25j-wj3 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jaq-57v-pi9","title":"tf-TestAccDatadogDashboardQueryTable-local-1602487053","url":"/dashboard/jaq-57v-pi9/tf-testaccdatadogdashboardquerytable-local-1602487053","created_at":"2020-10-12T07:20:21.451708+00:00","modified_at":"2020-10-12T07:20:21.451708+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j7x-25j-wj3","title":"tf-TestAccDatadogDashboardQueryTable-local-1602786091","url":"/dashboard/j7x-25j-wj3/tf-testaccdatadogdashboardquerytable-local-1602786091","created_at":"2020-10-15T18:21:36.816738+00:00","modified_at":"2020-10-15T18:21:36.816738+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":6071734702250297},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":5205812491750227}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":8751202385358272},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":276930378807556}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -335,13 +335,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:34 GMT + - Thu, 15 Oct 2020 18:21:46 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:34 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:46 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -350,9 +350,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2WpVLT6XfnIg4Icl10Bkfr2LmWju5l1mcL3EeaTPuJ+k4vOzKW0gcbyPFosLZlNj + - H6mGk0NVWFFYd9VUP8vVAv2c5S84SY5SnfwDRAyGeGOpnNeKpu2AiMB1a9R6+y9D X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -368,22 +368,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "1624798749199765433" + - "4052200961124102951" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" - url: https://api.datadoghq.com/api/v1/dashboard/jaq-57v-pi9 + - "2757071113410176673" + url: https://api.datadoghq.com/api/v1/dashboard/j7x-25j-wj3 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jaq-57v-pi9","title":"tf-TestAccDatadogDashboardQueryTable-local-1602487053","url":"/dashboard/jaq-57v-pi9/tf-testaccdatadogdashboardquerytable-local-1602487053","created_at":"2020-10-12T07:20:21.451708+00:00","modified_at":"2020-10-12T07:20:21.451708+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j7x-25j-wj3","title":"tf-TestAccDatadogDashboardQueryTable-local-1602786091","url":"/dashboard/j7x-25j-wj3/tf-testaccdatadogdashboardquerytable-local-1602786091","created_at":"2020-10-15T18:21:36.816738+00:00","modified_at":"2020-10-15T18:21:36.816738+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":6071734702250297},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":5205812491750227}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":8751202385358272},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":276930378807556}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -394,13 +394,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:34 GMT + - Thu, 15 Oct 2020 18:21:46 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:34 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:46 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -409,9 +409,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 35J49GdWRZ44BXWQv5M8k5DMOKDsnUL/+b8VnKl01OT828ngNdfZvXJ9jRXKLHFA + - LYsZ0Yx6eBAuyo7daRCU44YMxz7whaow2DP3vSdsKGIEYbXvJNYBjlZ+OHX/fFOc X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -427,17 +427,17 @@ interactions: - DeleteDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "6295656829492727687" + - "7945885088545798970" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" - url: https://api.datadoghq.com/api/v1/dashboard/jaq-57v-pi9 + - "2757071113410176673" + url: https://api.datadoghq.com/api/v1/dashboard/j7x-25j-wj3 method: DELETE response: - body: '{"deleted_dashboard_id":"jaq-57v-pi9"}' + body: '{"deleted_dashboard_id":"j7x-25j-wj3"}' headers: Cache-Control: - no-cache @@ -448,13 +448,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:21:26 GMT + - Thu, 15 Oct 2020 18:22:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:36 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:48 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -463,9 +463,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0e2Tq/aa08wSuRoWDdF6eCwF8GPYPPLmf3Lxvgc5OscTNyr8D4p+ksnId5WnGnR4 + - +TTazL1HF8qoxYARkG/60PGoq8sbkYkmqeurNry46zV0aHqBZfUrKqxtiyo42NRf X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -481,17 +481,17 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5863155626145423443" + - "445778194814490081" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3971649243354870137" - url: https://api.datadoghq.com/api/v1/dashboard/jaq-57v-pi9 + - "2757071113410176673" + url: https://api.datadoghq.com/api/v1/dashboard/j7x-25j-wj3 method: GET response: - body: '{"errors": ["Dashboard with ID jaq-57v-pi9 not found"]}' + body: '{"errors": ["Dashboard with ID j7x-25j-wj3 not found"]}' headers: Cache-Control: - no-cache @@ -502,7 +502,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:21:27 GMT + - Thu, 15 Oct 2020 18:22:35 GMT Dd-Pool: - dogweb Pragma: @@ -514,7 +514,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.freeze b/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.freeze index 1ae56904d9..7989d88f09 100644 --- a/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.freeze +++ b/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.freeze @@ -1 +1 @@ -2020-10-12T09:17:33.889361+02:00 \ No newline at end of file +2020-10-15T14:21:31.031775-04:00 \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.yaml b/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.yaml index 0bddefb9ee..3699faaa81 100644 --- a/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.yaml +++ b/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"aggregator":"max","alias":"cpu user","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":90},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_red","value":90}],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}"},{"aggregator":"last","alias":"system load","conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"custom_bg","value":50}],"q":"avg:system.load.1{*} by {service, team}"}],"time":{"live_span":"1d"},"title":"system.cpu.user, system.load.1","title_align":"right","title_size":"16","type":"query_table"}},{"definition":{"requests":[{"apm_stats_query":{"env":"env","name":"name","primary_tag":"tag:*","row_type":"resource","service":"service"}}],"type":"query_table"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":90},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_red","value":90}],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}"},{"aggregator":"last","alias":"system load","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"custom_bg","value":50}],"q":"avg:system.load.1{*} by {service, team}"}],"time":{"live_span":"1d"},"title":"system.cpu.user, system.load.1","title_align":"right","title_size":"16","type":"query_table"}},{"definition":{"has_search_bar":"never","requests":[{"apm_stats_query":{"env":"env","name":"name","primary_tag":"tag:*","row_type":"resource","service":"service"}}],"type":"query_table"}}]} form: {} headers: Accept: @@ -14,22 +14,22 @@ interactions: - CreateDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "2940097254199261000" + - "1462482893982734529" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" + - "3004979843622797191" url: https://api.datadoghq.com/api/v1/dashboard method: POST response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -40,13 +40,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:17 GMT + - Thu, 15 Oct 2020 18:21:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:17 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -55,9 +55,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - WrTDvawKJxc/3XHcVO+oe9kLOi9bBLB0fyesfpZ4AlLEoPVyUvH7rJdlyTxrqyNg + - ZTMib3S/rZeXw/RhaeaehRILC7QJAaERfyf3m4/am8FN44e9rxbkPcmk4YzKBISj X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -73,22 +73,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "4338048042077674775" + - "691922981500932101" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -99,13 +99,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:17 GMT + - Thu, 15 Oct 2020 18:21:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:17 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -114,9 +114,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vJlCdCjZjHKDWCQaZXaKHjefwu7Jotxr42UmWttwNlCEvibEd08wFg9UscwYl4z7 + - UPwGSEkEo+aTtV9/qlvsM9xVIKq1xypRG0bv22kO1eeJfu8bY+H+f1xOa3JlvZhZ X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -132,22 +132,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5839856237794695092" + - "2799303037424746352" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -158,13 +158,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:23 GMT + - Thu, 15 Oct 2020 18:21:41 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:23 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:41 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -173,9 +173,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 91aMs4Xd/NaPhGMoIvSvdd0mjw6sy0ZqzVUdTt9hqt35qwhu0snxCQESFXt90Pzi + - fOvn++WNyeGiJqGJ1RGVl2OtzlCSW+9FmhW07NDhLHuS9Ypy2JL89j65gnqIRQTf X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -191,22 +191,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "8859247649963698714" + - "8227105537912841507" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -217,13 +217,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:23 GMT + - Thu, 15 Oct 2020 18:21:41 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:23 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:41 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -232,9 +232,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YUzGVvPO6U9s4YDcAehC8chdShvAB/4ui8eck/ZCafPignncGB/BO6U/rVr9hrIe + - QgQu/iPnCQXRgWPQKBm0M4xipFcbwl50MnRHSjKNayyZv/6KjuJNpOhY5+udaeL8 X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -250,22 +250,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "3592503116696152722" + - "8446665358658186443" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -276,13 +276,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:27 GMT + - Thu, 15 Oct 2020 18:21:44 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:27 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:44 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -291,9 +291,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ViVCPXX6Ly37Yq2uFkha4NuJPBq3hQNknFQSAg7/RbVncSIYTDoKelvl87NEURiA + - RquGBod+QwJwo5jKyeuGJHvfWvWfZ0hMpUnxtqqEEEpqySzsuyt8sx6iN5riB0bK X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -309,22 +309,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "2685571491440160403" + - "1409492636287828016" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -335,13 +335,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:28 GMT + - Thu, 15 Oct 2020 18:21:45 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:28 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:45 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -350,9 +350,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 8uM7lo6fgdRC0R8G89u29ss3GmR5rKsxJfYvyjSE9oa+oPL40dVup+1mn/0Ku0bY + - M5AkO8bVyO5yuX6OQA9nCjANXZokYPd2NqFZwMNyvfQQbQnBskFTa6rdUllh6BsX X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -368,22 +368,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "3412253171356153180" + - "4944926025995978835" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -394,13 +394,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:28 GMT + - Thu, 15 Oct 2020 18:21:45 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:28 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:45 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -409,9 +409,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - hkXZRrnCTh2pkyHJgLo1+B5+sLp+RYzQrqT867R6UzDvqVGo8Av8yUCpaA0POidP + - IcBiRsjZgsw3C3GYI9UqZdfE26Zt8mXBfnPp610FoUCOarhFSAw0deJpN5v2N8Dj X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -427,22 +427,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5644446159375314746" + - "5794830294848197981" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -453,13 +453,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:30 GMT + - Thu, 15 Oct 2020 18:21:46 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:30 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:46 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -468,9 +468,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - lgQawiZEOFHj/SKplEcqOwzaMI6OQtdSQ9dotiTxYUar2ksXhijPkw9yrBoSKHNa + - GNNaCEaWbc3UTUClxoMWS01sWxumNliK7MHAxNSLzSt+cr/umvBLJdbOFDCcNeME X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -486,22 +486,22 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "1889677498370988678" + - "8116744633370279075" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"we8-6pf-pqf","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602487053","url":"/dashboard/we8-6pf-pqf/tf-testaccdatadogdashboardquerytableimport-local-1602487053","created_at":"2020-10-12T07:20:17.572954+00:00","modified_at":"2020-10-12T07:20:17.572954+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test - Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","time":{"live_span":"1d"},"requests":[{"aggregator":"max","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} + Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8pt-ujd-3n5","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1602786091","url":"/dashboard/8pt-ujd-3n5/tf-testaccdatadogdashboardquerytableimport-local-1602786091","created_at":"2020-10-15T18:21:36.823975+00:00","modified_at":"2020-10-15T18:21:36.823975+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test + Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} - by {service, team}","aggregator":"last","conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system - load"}],"type":"query_table"},"id":3609490728849853},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table"},"id":123575171417745}],"layout_type":"ordered"}' + by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system + load"}],"type":"query_table"},"id":2786183534961881},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":4200684252816484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -512,13 +512,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:20:30 GMT + - Thu, 15 Oct 2020 18:21:46 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:30 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:46 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -527,9 +527,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - n9uz1T+WujhmfsGndIdy1tCYb5bh9AzSyYOT5TTjJX23RGEavHxGqcz400IC+bY1 + - IcBiRsjZgsw3C3GYI9UqZdfE26Zt8mXBfnPp610FoUCOarhFSAw0deJpN5v2N8Dj X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -545,17 +545,17 @@ interactions: - DeleteDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "6014424534200892486" + - "5351815298052176611" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: DELETE response: - body: '{"deleted_dashboard_id":"we8-6pf-pqf"}' + body: '{"deleted_dashboard_id":"8pt-ujd-3n5"}' headers: Cache-Control: - no-cache @@ -566,13 +566,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:21:24 GMT + - Thu, 15 Oct 2020 18:22:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 19-Oct-2020 07:20:33 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 22-Oct-2020 18:21:48 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -581,9 +581,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LSvqfCNKuJQN5oAMgicB0LCJSMqBhaMaYHfLaKzBumKF+HG8Kk13DRv43BL/WWBk + - lFrksZMz0TAfmkfXqA+joIhqff9XI0eK5d8n7wOVd6ze5TT6MYngm1maZRo2uB6a X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -599,17 +599,17 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.13.1; os darwin; arch amd64) X-Datadog-Parent-Id: - - "635739928545451595" + - "3081583752826478923" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2658114364260827045" - url: https://api.datadoghq.com/api/v1/dashboard/we8-6pf-pqf + - "3004979843622797191" + url: https://api.datadoghq.com/api/v1/dashboard/8pt-ujd-3n5 method: GET response: - body: '{"errors": ["Dashboard with ID we8-6pf-pqf not found"]}' + body: '{"errors": ["Dashboard with ID 8pt-ujd-3n5 not found"]}' headers: Cache-Control: - no-cache @@ -620,7 +620,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 12 Oct 2020 07:21:25 GMT + - Thu, 15 Oct 2020 18:22:35 GMT Dd-Pool: - dogweb Pragma: @@ -632,7 +632,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3178388" + - "35.3200870" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index 9f2f4dac6a..b4f78fba00 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -3356,6 +3356,10 @@ func getQueryTableDefinitionSchema() map[string]*schema.Schema { Schema: getWidgetCustomLinkSchema(), }, }, + "has_search_bar": { + Type: schema.TypeString, + Optional: true, + }, } } func buildDatadogQueryTableDefinition(terraformDefinition map[string]interface{}) *datadogV1.TableWidgetDefinition { @@ -3379,6 +3383,9 @@ func buildDatadogQueryTableDefinition(terraformDefinition map[string]interface{} if v, ok := terraformDefinition["custom_link"].([]interface{}); ok && len(v) > 0 { datadogDefinition.SetCustomLinks(*buildDatadogWidgetCustomLinks(&v)) } + if v, ok := terraformDefinition["has_search_bar"].(string); ok && len(v) != 0 { + datadogDefinition.SetHasSearchBar(datadogV1.TableWidgetHasSearchBar(v)) + } return datadogDefinition } func buildTerraformQueryTableDefinition(datadogDefinition datadogV1.TableWidgetDefinition) map[string]interface{} { @@ -3401,6 +3408,9 @@ func buildTerraformQueryTableDefinition(datadogDefinition datadogV1.TableWidgetD if v, ok := datadogDefinition.GetCustomLinksOk(); ok { terraformDefinition["custom_link"] = buildTerraformWidgetCustomLinks(v) } + if v, ok := datadogDefinition.GetHasSearchBarOk(); ok { + terraformDefinition["has_search_bar"] = *v + } return terraformDefinition } @@ -3438,6 +3448,11 @@ func getQueryTableRequestSchema() map[string]*schema.Schema { Type: schema.TypeString, Optional: true, }, + "cell_display_mode": { + Type: schema.TypeList, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + }, } } func buildDatadogQueryTableRequests(terraformRequests *[]interface{}) *[]datadogV1.TableWidgetRequest { @@ -3484,6 +3499,13 @@ func buildDatadogQueryTableRequests(terraformRequests *[]interface{}) *[]datadog if v, ok := terraformRequest["order"].(string); ok && len(v) != 0 { datadogQueryTableRequest.SetOrder(datadogV1.WidgetSort(v)) } + if v, ok := terraformRequest["cell_display_mode"].([]interface{}); ok && len(v) != 0 { + datadogCellDisplayMode := make([]datadogV1.TableWidgetCellDisplayMode, len(v)) + for i, cellDisplayMode := range v { + datadogCellDisplayMode[i] = datadogV1.TableWidgetCellDisplayMode(cellDisplayMode.(string)) + } + datadogQueryTableRequest.CellDisplayMode = &datadogCellDisplayMode + } datadogRequests[i] = *datadogQueryTableRequest } return &datadogRequests @@ -3531,6 +3553,13 @@ func buildTerraformQueryTableRequests(datadogQueryTableRequests *[]datadogV1.Tab if v, ok := datadogRequest.GetOrderOk(); ok { terraformRequest["order"] = *v } + if v, ok := datadogRequest.GetCellDisplayModeOk(); ok { + terraformCellDisplayMode := make([]datadogV1.TableWidgetCellDisplayMode, len(*v)) + for i, cellDisplayMode := range *v { + terraformCellDisplayMode[i] = cellDisplayMode + } + terraformRequest["cell_display_mode"] = terraformCellDisplayMode + } terraformRequests[i] = terraformRequest } return &terraformRequests diff --git a/datadog/resource_datadog_dashboard_query_table_test.go b/datadog/resource_datadog_dashboard_query_table_test.go index 8653f8fc1d..3582bbb8cc 100644 --- a/datadog/resource_datadog_dashboard_query_table_test.go +++ b/datadog/resource_datadog_dashboard_query_table_test.go @@ -108,6 +108,7 @@ resource "datadog_dashboard" "query_table_dashboard" { alias = "cpu user" limit = 25 order = "desc" + cell_display_mode = ["number"] } request { q = "avg:system.load.1{*} by {service, team}" @@ -118,11 +119,13 @@ resource "datadog_dashboard" "query_table_dashboard" { comparator = ">" } alias = "system load" + cell_display_mode = ["number"] } custom_link { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + has_search_bar = "auto" } } @@ -137,6 +140,7 @@ resource "datadog_dashboard" "query_table_dashboard" { row_type = "resource" } } + has_search_bar = "never" } } } @@ -193,6 +197,10 @@ var datadogDashboardQueryTableAsserts = []string{ "widget.0.query_table_definition.0.custom_link.# = 1", "widget.0.query_table_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.query_table_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.query_table_definition.0.request.0.cell_display_mode.0 = number", + "widget.0.query_table_definition.0.request.1.cell_display_mode.0 = number", + "widget.0.query_table_definition.0.has_search_bar = auto", + "widget.1.query_table_definition.0.has_search_bar = never", } func TestAccDatadogDashboardQueryTable(t *testing.T) { diff --git a/docs/resources/dashboard.md b/docs/resources/dashboard.md index 8e404b894a..ac3e3a0274 100644 --- a/docs/resources/dashboard.md +++ b/docs/resources/dashboard.md @@ -818,11 +818,13 @@ Nested `widget` blocks have the following structure: - `aggregator`: (Optional) The aggregator to use for time aggregation. One of `avg`, `min`, `max`, `sum`, `last`. - `limit`: (Required) The number of lines to show in the table. - `order`: (Optional) The sort order for the rows. One of `desc` or `asc`. + - `cell_display_mode`: (Optional) A list of display modes for each table cell. List items one of "number", "bar". - `title`: (Optional) The title of the widget. - `title_size`: (Optional) The size of the widget's title. Default is 16. - `title_align`: (Optional) The alignment of the widget's title. One of "left", "center", or "right". - `time`: (Optional) Nested block describing the timeframe to use when displaying the widget. The structure of this block is described [below](dashboard.html#nested-widget-time-blocks). - `custom_link`: (Optional) Nested block describing a custom link. The structure of this block is described [below](dashboard.html#nested-widget-custom_link-blocks). + - `has_search_bar`: (Optional) Controls the display of the search bar. One of "auto", "always", "never". - `scatterplot_definition`: The definition for a Scatterplot widget. Exactly one nested block is allowed with the following structure: - `request`: (Required) Nested block describing the request to use when displaying the widget. Exactly one request block is allowed with the following structure: - `x`: (Optional) The query used for the X-Axis. Exactly one nested block is allowed with the following structure: - `q`: (Required) The metric query to use in the widget. - `aggregator`: (Optional) Aggregator used for the request. One of "avg", "min", "max", "sum", "last".