diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index 5de07131d3..d7d45ecd61 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -4827,7 +4827,7 @@ func getTableWidgetTextFormatReplaceSchema() map[string]*schema.Schema { Required: true, }, "substring": { - Description: "Text that will be replaced.", + Description: "Text that will be replaced. Must be used with type `substring`.", Type: schema.TypeString, Optional: true, }, diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats.freeze index 75177566b0..1a9db8d56c 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats.freeze @@ -1 +1 @@ -2024-09-26T13:30:05.203831-04:00 \ No newline at end of file +2024-10-03T10:24:53.730398-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats.yaml index 895cd35e92..7fe1fe1da0 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"description":"Created using the Datadog provider in Terraform","id":"","layout_type":"ordered","notify_list":[],"tags":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727371805","widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","layout_type":"ordered","notify_list":[],"tags":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727965493","widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"}}]} form: {} headers: Accept: @@ -32,13 +32,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"75s-s5m-uat","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727371805","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/75s-s5m-uat/tf-testaccdatadogdashboardquerytablewithtextformats-local-1727371805","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":2381522262780434}],"notify_list":[],"created_at":"2024-09-26T17:30:07.742946+00:00","modified_at":"2024-09-26T17:30:07.742946+00:00","template_variable_presets":[],"tags":[]} + {"id":"9r6-ipc-jz3","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727965493","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/9r6-ipc-jz3/tf-testaccdatadogdashboardquerytablewithtextformats-local-1727965493","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":3745615959553530}],"notify_list":[],"created_at":"2024-10-03T14:24:56.762159+00:00","modified_at":"2024-10-03T14:24:56.762159+00:00","template_variable_presets":[],"tags":[]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 423.314542ms + duration: 263.838584ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/75s-s5m-uat + url: https://api.datadoghq.com/api/v1/dashboard/9r6-ipc-jz3 method: GET response: proto: HTTP/1.1 @@ -67,13 +67,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"75s-s5m-uat","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727371805","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/75s-s5m-uat/tf-testaccdatadogdashboardquerytablewithtextformats-local-1727371805","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":2381522262780434}],"notify_list":[],"created_at":"2024-09-26T17:30:07.742946+00:00","modified_at":"2024-09-26T17:30:07.742946+00:00","template_variable_presets":[],"tags":[]} + {"id":"9r6-ipc-jz3","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727965493","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/9r6-ipc-jz3/tf-testaccdatadogdashboardquerytablewithtextformats-local-1727965493","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":3745615959553530}],"notify_list":[],"created_at":"2024-10-03T14:24:56.762159+00:00","modified_at":"2024-10-03T14:24:56.762159+00:00","template_variable_presets":[],"tags":[]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 164.432833ms + duration: 98.213666ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/75s-s5m-uat + url: https://api.datadoghq.com/api/v1/dashboard/9r6-ipc-jz3 method: GET response: proto: HTTP/1.1 @@ -102,13 +102,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"75s-s5m-uat","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727371805","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/75s-s5m-uat/tf-testaccdatadogdashboardquerytablewithtextformats-local-1727371805","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":2381522262780434}],"notify_list":[],"created_at":"2024-09-26T17:30:07.742946+00:00","modified_at":"2024-09-26T17:30:07.742946+00:00","template_variable_presets":[],"tags":[]} + {"id":"9r6-ipc-jz3","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727965493","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/9r6-ipc-jz3/tf-testaccdatadogdashboardquerytablewithtextformats-local-1727965493","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":3745615959553530}],"notify_list":[],"created_at":"2024-10-03T14:24:56.762159+00:00","modified_at":"2024-10-03T14:24:56.762159+00:00","template_variable_presets":[],"tags":[]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 116.99675ms + duration: 81.12275ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/75s-s5m-uat + url: https://api.datadoghq.com/api/v1/dashboard/9r6-ipc-jz3 method: GET response: proto: HTTP/1.1 @@ -137,13 +137,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"75s-s5m-uat","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727371805","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/75s-s5m-uat/tf-testaccdatadogdashboardquerytablewithtextformats-local-1727371805","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":2381522262780434}],"notify_list":[],"created_at":"2024-09-26T17:30:07.742946+00:00","modified_at":"2024-09-26T17:30:07.742946+00:00","template_variable_presets":[],"tags":[]} + {"id":"9r6-ipc-jz3","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats-local-1727965493","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/9r6-ipc-jz3/tf-testaccdatadogdashboardquerytablewithtextformats-local-1727965493","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":3745615959553530}],"notify_list":[],"created_at":"2024-10-03T14:24:56.762159+00:00","modified_at":"2024-10-03T14:24:56.762159+00:00","template_variable_presets":[],"tags":[]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 110.517625ms + duration: 85.740333ms - id: 4 request: proto: HTTP/1.1 @@ -160,7 +160,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/75s-s5m-uat + url: https://api.datadoghq.com/api/v1/dashboard/9r6-ipc-jz3 method: DELETE response: proto: HTTP/1.1 @@ -172,13 +172,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"deleted_dashboard_id":"75s-s5m-uat"} + {"deleted_dashboard_id":"9r6-ipc-jz3"} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 159.869166ms + duration: 144.309541ms - id: 5 request: proto: HTTP/1.1 @@ -195,7 +195,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/75s-s5m-uat + url: https://api.datadoghq.com/api/v1/dashboard/9r6-ipc-jz3 method: GET response: proto: HTTP/1.1 @@ -206,10 +206,10 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"errors":["Dashboard with ID 75s-s5m-uat not found"]}' + body: '{"errors":["Dashboard with ID 9r6-ipc-jz3 not found"]}' headers: Content-Type: - application/json status: 404 Not Found code: 404 - duration: 100.581833ms + duration: 70.260458ms diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats_import.freeze index d7b82ec7a6..56a8081975 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats_import.freeze @@ -1 +1 @@ -2024-09-26T13:30:05.203725-04:00 \ No newline at end of file +2024-10-03T10:24:53.730387-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats_import.yaml index 00658bb359..af6e817cf1 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTableWithTextFormats_import.yaml @@ -13,7 +13,7 @@ interactions: remote_addr: "" request_uri: "" body: | - {"description":"Created using the Datadog provider in Terraform","id":"","layout_type":"ordered","notify_list":[],"tags":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727371805","widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","layout_type":"ordered","notify_list":[],"tags":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727965493","widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"}}]} form: {} headers: Accept: @@ -32,13 +32,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"ijr-ehf-eef","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727371805","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/ijr-ehf-eef/tf-testaccdatadogdashboardquerytablewithtextformatsimport-local-1727371805","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":7070044228734734}],"notify_list":[],"created_at":"2024-09-26T17:30:07.761091+00:00","modified_at":"2024-09-26T17:30:07.761091+00:00","template_variable_presets":[],"tags":[]} + {"id":"4h4-p9d-iej","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727965493","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/4h4-p9d-iej/tf-testaccdatadogdashboardquerytablewithtextformatsimport-local-1727965493","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":1028124560894413}],"notify_list":[],"created_at":"2024-10-03T14:24:56.747277+00:00","modified_at":"2024-10-03T14:24:56.747277+00:00","template_variable_presets":[],"tags":[]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 438.691ms + duration: 241.355083ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/ijr-ehf-eef + url: https://api.datadoghq.com/api/v1/dashboard/4h4-p9d-iej method: GET response: proto: HTTP/1.1 @@ -67,13 +67,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"ijr-ehf-eef","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727371805","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/ijr-ehf-eef/tf-testaccdatadogdashboardquerytablewithtextformatsimport-local-1727371805","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":7070044228734734}],"notify_list":[],"created_at":"2024-09-26T17:30:07.761091+00:00","modified_at":"2024-09-26T17:30:07.761091+00:00","template_variable_presets":[],"tags":[]} + {"id":"4h4-p9d-iej","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727965493","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/4h4-p9d-iej/tf-testaccdatadogdashboardquerytablewithtextformatsimport-local-1727965493","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":1028124560894413}],"notify_list":[],"created_at":"2024-10-03T14:24:56.747277+00:00","modified_at":"2024-10-03T14:24:56.747277+00:00","template_variable_presets":[],"tags":[]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 116.647ms + duration: 89.8825ms - id: 2 request: proto: HTTP/1.1 @@ -90,7 +90,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/ijr-ehf-eef + url: https://api.datadoghq.com/api/v1/dashboard/4h4-p9d-iej method: GET response: proto: HTTP/1.1 @@ -102,13 +102,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"ijr-ehf-eef","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727371805","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/ijr-ehf-eef/tf-testaccdatadogdashboardquerytablewithtextformatsimport-local-1727371805","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":7070044228734734}],"notify_list":[],"created_at":"2024-09-26T17:30:07.761091+00:00","modified_at":"2024-09-26T17:30:07.761091+00:00","template_variable_presets":[],"tags":[]} + {"id":"4h4-p9d-iej","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727965493","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/4h4-p9d-iej/tf-testaccdatadogdashboardquerytablewithtextformatsimport-local-1727965493","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":1028124560894413}],"notify_list":[],"created_at":"2024-10-03T14:24:56.747277+00:00","modified_at":"2024-10-03T14:24:56.747277+00:00","template_variable_presets":[],"tags":[]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 110.827125ms + duration: 96.1435ms - id: 3 request: proto: HTTP/1.1 @@ -125,7 +125,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/ijr-ehf-eef + url: https://api.datadoghq.com/api/v1/dashboard/4h4-p9d-iej method: GET response: proto: HTTP/1.1 @@ -137,13 +137,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"id":"ijr-ehf-eef","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727371805","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/ijr-ehf-eef/tf-testaccdatadogdashboardquerytablewithtextformatsimport-local-1727371805","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":7070044228734734}],"notify_list":[],"created_at":"2024-09-26T17:30:07.761091+00:00","modified_at":"2024-09-26T17:30:07.761091+00:00","template_variable_presets":[],"tags":[]} + {"id":"4h4-p9d-iej","title":"tf-TestAccDatadogDashboardQueryTableWithTextFormats_import-local-1727965493","description":"Created using the Datadog provider in Terraform","author_handle":"frog@datadoghq.com","author_name":null,"layout_type":"ordered","url":"/dashboard/4h4-p9d-iej/tf-testaccdatadogdashboardquerytablewithtextformatsimport-local-1727965493","is_read_only":false,"template_variables":[],"widgets":[{"definition":{"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}","text_formats":[[{"match":{"type":"is","value":"test"},"palette":"black_on_light_yellow","replace":{"type":"all","with":"test"}},{"match":{"type":"is","value":"versus"}}],[{"custom_bg_color":"#632CA6","match":{"type":"is","value":"apple"},"palette":"custom_bg"},{"custom_fg_color":"#632CA6","match":{"type":"is","value":"orange"},"palette":"custom_text"}]]}],"time":{"live_span":"1d"},"title":"this is hyung","title_align":"right","title_size":"16","type":"query_table"},"id":1028124560894413}],"notify_list":[],"created_at":"2024-10-03T14:24:56.747277+00:00","modified_at":"2024-10-03T14:24:56.747277+00:00","template_variable_presets":[],"tags":[]} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 96.57525ms + duration: 114.2895ms - id: 4 request: proto: HTTP/1.1 @@ -160,7 +160,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/ijr-ehf-eef + url: https://api.datadoghq.com/api/v1/dashboard/4h4-p9d-iej method: DELETE response: proto: HTTP/1.1 @@ -172,13 +172,13 @@ interactions: content_length: -1 uncompressed: true body: | - {"deleted_dashboard_id":"ijr-ehf-eef"} + {"deleted_dashboard_id":"4h4-p9d-iej"} headers: Content-Type: - application/json status: 200 OK code: 200 - duration: 144.078291ms + duration: 149.892709ms - id: 5 request: proto: HTTP/1.1 @@ -195,7 +195,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/dashboard/ijr-ehf-eef + url: https://api.datadoghq.com/api/v1/dashboard/4h4-p9d-iej method: GET response: proto: HTTP/1.1 @@ -206,10 +206,10 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"errors":["Dashboard with ID ijr-ehf-eef not found"]}' + body: '{"errors":["Dashboard with ID 4h4-p9d-iej not found"]}' headers: Content-Type: - application/json status: 404 Not Found code: 404 - duration: 71.594125ms + duration: 73.733625ms diff --git a/docs/resources/dashboard.md b/docs/resources/dashboard.md index 667d19e5ce..f28023fa51 100644 --- a/docs/resources/dashboard.md +++ b/docs/resources/dashboard.md @@ -5786,7 +5786,7 @@ Required: Optional: -- `substring` (String) Text that will be replaced. +- `substring` (String) Text that will be replaced. Must be used with type `substring`. @@ -9091,7 +9091,7 @@ Required: Optional: -- `substring` (String) Text that will be replaced. +- `substring` (String) Text that will be replaced. Must be used with type `substring`. @@ -17608,7 +17608,7 @@ Required: Optional: -- `substring` (String) Text that will be replaced. +- `substring` (String) Text that will be replaced. Must be used with type `substring`. @@ -20913,7 +20913,7 @@ Required: Optional: -- `substring` (String) Text that will be replaced. +- `substring` (String) Text that will be replaced. Must be used with type `substring`. diff --git a/docs/resources/powerpack.md b/docs/resources/powerpack.md index 2691a38c4a..c3ba4b18ff 100644 --- a/docs/resources/powerpack.md +++ b/docs/resources/powerpack.md @@ -3548,7 +3548,7 @@ Required: Optional: -- `substring` (String) Text that will be replaced. +- `substring` (String) Text that will be replaced. Must be used with type `substring`.