diff --git a/datadog/cassettes/TestAccDatadogDashboardDistribution.yaml b/datadog/cassettes/TestAccDatadogDashboardDistribution.yaml index 9f275e395..fbcc4eb18 100644 --- a/datadog/cassettes/TestAccDatadogDashboardDistribution.yaml +++ b/datadog/cassettes/TestAccDatadogDashboardDistribution.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":"Acceptance Test Distribution Widget Dashboard","widgets":[{"definition":{"requests":[{"q":"avg:system.cpu.user{account:prod} by {service,account}","style":{"palette":"purple"}}],"time":{"live_span":"1h"},"title":"Avg of system.cpu.user over account:prod by service,account","title_align":"left","title_size":"16","type":"distribution"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Distribution Widget Dashboard","widgets":[{"definition":{"legend_size":"2","requests":[{"q":"avg:system.cpu.user{account:prod} by {service,account}","style":{"palette":"purple"}}],"show_legend":true,"time":{"live_span":"1h"},"title":"Avg of system.cpu.user over account:prod by service,account","title_align":"left","title_size":"16","type":"distribution"}}]} form: {} headers: Accept: @@ -13,15 +13,15 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3a2-6m4-5v3","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/3a2-6m4-5v3/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:11.753725+00:00","modified_at":"2020-06-18T18:09:11.753725+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":361961477388766}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3fb-qkr-6hx","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/3fb-qkr-6hx/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:08.470817+00:00","modified_at":"2020-06-23T12:57:08.470817+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":8961552755894842}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -32,13 +32,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:11 GMT + - Tue, 23 Jun 2020 12:57:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:11 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -47,9 +47,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HIunaScoW4AWw8tnSbk8zc5V6c9XLV6++/KbgzaC4HIb212+evjUYL1yRLeLtS2T + - QO3HutZQjgMDp/HqClcLon+qq5lEghb3LRV+gXMIQ2Jivd1m1eEGCh0RxplUQMIV X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -64,15 +64,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3a2-6m4-5v3 + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3fb-qkr-6hx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3a2-6m4-5v3","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/3a2-6m4-5v3/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:11.753725+00:00","modified_at":"2020-06-18T18:09:11.753725+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":361961477388766}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3fb-qkr-6hx","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/3fb-qkr-6hx/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:08.470817+00:00","modified_at":"2020-06-23T12:57:08.470817+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":8961552755894842}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -83,13 +83,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:11 GMT + - Tue, 23 Jun 2020 12:57:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:11 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -98,9 +98,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - BQaWiIhDCyK3JbvyPZudxtMuoedbvOKE6tb5GJMfo6GT4EOQ8qx9lqgA4UCxp88q + - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -115,15 +115,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3a2-6m4-5v3 + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3fb-qkr-6hx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3a2-6m4-5v3","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/3a2-6m4-5v3/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:11.753725+00:00","modified_at":"2020-06-18T18:09:11.753725+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":361961477388766}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3fb-qkr-6hx","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/3fb-qkr-6hx/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:08.470817+00:00","modified_at":"2020-06-23T12:57:08.470817+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":8961552755894842}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -134,13 +134,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:12 GMT + - Tue, 23 Jun 2020 12:57:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:12 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -149,9 +149,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -166,15 +166,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3a2-6m4-5v3 + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3fb-qkr-6hx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3a2-6m4-5v3","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/3a2-6m4-5v3/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:11.753725+00:00","modified_at":"2020-06-18T18:09:11.753725+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":361961477388766}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3fb-qkr-6hx","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/3fb-qkr-6hx/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:08.470817+00:00","modified_at":"2020-06-23T12:57:08.470817+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":8961552755894842}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -185,13 +185,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:13 GMT + - Tue, 23 Jun 2020 12:57:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:13 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -200,9 +200,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + - KHJbOoqp3I4BOBzIFnc/Ois3eg3Rjmudy0YalRpnXQEDXDoppykpDMDaJPIufi9t X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -217,15 +217,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3a2-6m4-5v3 + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3fb-qkr-6hx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3a2-6m4-5v3","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/3a2-6m4-5v3/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:11.753725+00:00","modified_at":"2020-06-18T18:09:11.753725+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":361961477388766}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3fb-qkr-6hx","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/3fb-qkr-6hx/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:08.470817+00:00","modified_at":"2020-06-23T12:57:08.470817+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":8961552755894842}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -236,13 +236,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:13 GMT + - Tue, 23 Jun 2020 12:57:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:13 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -251,9 +251,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -268,15 +268,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3a2-6m4-5v3 + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3fb-qkr-6hx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3a2-6m4-5v3","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/3a2-6m4-5v3/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:11.753725+00:00","modified_at":"2020-06-18T18:09:11.753725+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":361961477388766}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3fb-qkr-6hx","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/3fb-qkr-6hx/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:08.470817+00:00","modified_at":"2020-06-23T12:57:08.470817+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":8961552755894842}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -287,13 +287,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:15 GMT + - Tue, 23 Jun 2020 12:57:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:15 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -302,9 +302,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C + - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -319,15 +319,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3a2-6m4-5v3 + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3fb-qkr-6hx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3a2-6m4-5v3","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/3a2-6m4-5v3/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:11.753725+00:00","modified_at":"2020-06-18T18:09:11.753725+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":361961477388766}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3fb-qkr-6hx","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/3fb-qkr-6hx/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:08.470817+00:00","modified_at":"2020-06-23T12:57:08.470817+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":8961552755894842}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -338,13 +338,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:15 GMT + - Tue, 23 Jun 2020 12:57:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:15 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -353,9 +353,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - j0VNx9cZdAj+uuO7pabHlao4Ioc5q8ovvp4Ja/NYzbHA51zSBYXNvtO+8cOYbE0B + - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -370,11 +370,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3a2-6m4-5v3 + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3fb-qkr-6hx method: DELETE response: - body: '{"deleted_dashboard_id":"3a2-6m4-5v3"}' + body: '{"deleted_dashboard_id":"3fb-qkr-6hx"}' headers: Cache-Control: - no-cache @@ -385,13 +385,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:29 GMT + - Tue, 23 Jun 2020 12:57:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:16 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -400,9 +400,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + - vYQu3ls2HKdZ2pXErBiwg/FlJyuK31hjiI+oJSqoEPPw/7mzimb2FzvWEsshbznY X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -417,11 +417,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3a2-6m4-5v3 + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3fb-qkr-6hx method: GET response: - body: '{"errors": ["Dashboard with ID 3a2-6m4-5v3 not found"]}' + body: '{"errors": ["Dashboard with ID 3fb-qkr-6hx not found"]}' headers: Cache-Control: - no-cache @@ -432,7 +432,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:29 GMT + - Tue, 23 Jun 2020 12:57:29 GMT Dd-Pool: - dogweb Pragma: @@ -444,7 +444,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/cassettes/TestAccDatadogDashboardDistribution_import.yaml b/datadog/cassettes/TestAccDatadogDashboardDistribution_import.yaml index 8adb95180..0b71304d6 100644 --- a/datadog/cassettes/TestAccDatadogDashboardDistribution_import.yaml +++ b/datadog/cassettes/TestAccDatadogDashboardDistribution_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":"Acceptance Test Distribution Widget Dashboard","widgets":[{"definition":{"requests":[{"q":"avg:system.cpu.user{account:prod} by {service,account}","style":{"palette":"purple"}}],"time":{"live_span":"1h"},"title":"Avg of system.cpu.user over account:prod by service,account","title_align":"left","title_size":"16","type":"distribution"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Distribution Widget Dashboard","widgets":[{"definition":{"legend_size":"2","requests":[{"q":"avg:system.cpu.user{account:prod} by {service,account}","style":{"palette":"purple"}}],"show_legend":true,"time":{"live_span":"1h"},"title":"Avg of system.cpu.user over account:prod by service,account","title_align":"left","title_size":"16","type":"distribution"}}]} form: {} headers: Accept: @@ -13,15 +13,15 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -32,13 +32,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:31 GMT + - Tue, 23 Jun 2020 12:57:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:31 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -47,9 +47,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - rxkz+JB0yzarEINDeNWQGs9dk7PLNAMnAw2wV8MNkZOhKDtz+JOpGuIyyBUaWwyF + - iMTE1BmjsL8tFxXfV1x35HHEpphKhyShj7mGG+gCh4hVOBaK9+R0wmURPHnATwmw X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -64,15 +64,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -83,13 +83,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:31 GMT + - Tue, 23 Jun 2020 12:57:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:31 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -98,9 +98,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + - jety+2H6BA1H4x31+wzy5BjqI2NDwh54fgbjSYyrLU0p2tWQPCCTKspX7sHO7u1n X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -115,15 +115,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -134,13 +134,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:32 GMT + - Tue, 23 Jun 2020 12:57:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:32 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -149,9 +149,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - NclXS5F5t+kukUaODU4jY2oSI1KBdPHFdFhJZNfbXLWDOThxbCLlKKmYvikjdDSg + - hvGKayUGXeVy/DmHDcIjD3+gP6x9d+NwveU9CYPD06LgIrg7NUxobVuhZiOcmptK X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -166,15 +166,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -185,13 +185,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:33 GMT + - Tue, 23 Jun 2020 12:57:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:33 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -200,9 +200,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E + - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -217,15 +217,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -236,13 +236,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:34 GMT + - Tue, 23 Jun 2020 12:57:40 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:34 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:40 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -251,9 +251,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - OxP+mFpjAbASiVhNf+t4MttAs95ZlMiGosIRnYJJGFoApNgv2oxtdzpnmNlMOki6 + - OdMYjD4Lcx2EOYJ2NSqLNRIyMqxNYyUQxCcT6zY9ZmZ+zl9yipXz0nuLjH5hVxTY X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -268,15 +268,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -287,13 +287,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:34 GMT + - Tue, 23 Jun 2020 12:57:40 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:34 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:40 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -302,9 +302,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ + - 2AZOmbSnS2o4jaTO55IoEgDi10r3ewUAnpo5XLuAFAThAxt0uvbRy8dZoSIDmBYA X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -319,15 +319,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -338,13 +338,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:34 GMT + - Tue, 23 Jun 2020 12:57:41 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:34 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:40 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -353,9 +353,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - v8lEj/pYmsavh1I0Db6FT/BAvLdOdAv91ctM9ImcmfZ/KHrCACXEdhuskTCPihd+ + - hlZGwPPL87Cire+2SDWJrcKtg5ChXKBaVFmtHdrZS+BoDfdo10256wfXrEDRUv8c X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -370,15 +370,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -389,13 +389,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:35 GMT + - Tue, 23 Jun 2020 12:57:42 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:35 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:42 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -404,9 +404,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wts7Rn21w0qW4rqYtxheVW/4xeY9Y3ARkRMnLeq6etar4hXLqkvskJXcsIyQxYKB + - 4HTfT92VNwJOKM3+9Fghpi7RnKwXOMM9XiE8bZkwhVPDb5jbW4knJKZPCpE1XUb8 X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -421,15 +421,15 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vvu-qb7-u6d","title":"Acceptance - Test Distribution Widget Dashboard","url":"/dashboard/vvu-qb7-u6d/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-18T18:09:31.371753+00:00","modified_at":"2020-06-18T18:09:31.371753+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg - of system.cpu.user over account:prod by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"q":"avg:system.cpu.user{account:prod} - by {service,account}","style":{"palette":"purple"}}],"type":"distribution"},"id":5188587696313210}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"e7q-mv2-3vh","title":"Acceptance + Test Distribution Widget Dashboard","url":"/dashboard/e7q-mv2-3vh/acceptance-test-distribution-widget-dashboard","created_at":"2020-06-23T12:57:33.894123+00:00","modified_at":"2020-06-23T12:57:33.894123+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by service,account","title_align":"left","show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"distribution","requests":[{"q":"avg:system.cpu.user{account:prod} + by {service,account}","style":{"palette":"purple"}}]},"id":3584410537583248}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -440,13 +440,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:35 GMT + - Tue, 23 Jun 2020 12:57:42 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:35 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:42 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -455,9 +455,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0pmBjL5vG2A5IkxC4OBtwgn929khTZGgUquRW20JC77zchR4jTrHgra/pB22jP66 + - aJ6GOq3zw1bWl+5n1TKdeAvWSB1g5Zer85qbkQ07UFNZhgfVh/zeqVhNb8FjtbN9 X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -472,11 +472,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: DELETE response: - body: '{"deleted_dashboard_id":"vvu-qb7-u6d"}' + body: '{"deleted_dashboard_id":"e7q-mv2-3vh"}' headers: Cache-Control: - no-cache @@ -487,13 +487,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:49 GMT + - Tue, 23 Jun 2020 12:57:55 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 18:09:36 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Tue, 30-Jun-2020 12:57:44 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -502,9 +502,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n + - Xj/PwLDKe3Ll1QwGP2SdQuyUcOtG0YD60hQDJ9tPEhK9OEMHkSCPXdZRvPX0YYGO X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -519,11 +519,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vvu-qb7-u6d + - datadog-api-client-go/1.0.0-beta.6 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/e7q-mv2-3vh method: GET response: - body: '{"errors": ["Dashboard with ID vvu-qb7-u6d not found"]}' + body: '{"errors": ["Dashboard with ID e7q-mv2-3vh not found"]}' headers: Cache-Control: - no-cache @@ -534,7 +534,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 18 Jun 2020 18:09:50 GMT + - Tue, 23 Jun 2020 12:57:56 GMT Dd-Pool: - dogweb Pragma: @@ -546,7 +546,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2638726" + - "35.2654678" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index 6bc729ba8..806da5c6f 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -1420,6 +1420,15 @@ func getDistributionDefinitionSchema() map[string]*schema.Schema { Type: schema.TypeString, Optional: true, }, + "legend_size": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validateTimeseriesWidgetLegendSize, + }, + "show_legend": { + Type: schema.TypeBool, + Optional: true, + }, "time": { Type: schema.TypeMap, Optional: true, @@ -1435,6 +1444,12 @@ func buildDatadogDistributionDefinition(terraformDefinition map[string]interface terraformRequests := terraformDefinition["request"].([]interface{}) datadogDefinition.Requests = *buildDatadogDistributionRequests(&terraformRequests) // Optional params + if v, ok := terraformDefinition["show_legend"].(bool); ok { + datadogDefinition.SetShowLegend(v) + } + if v, ok := terraformDefinition["legend_size"].(string); ok && len(v) != 0 { + datadogDefinition.SetLegendSize(datadogV1.WidgetLegendSize(v)) + } if v, ok := terraformDefinition["title"].(string); ok && len(v) != 0 { datadogDefinition.SetTitle(v) } @@ -1454,6 +1469,12 @@ func buildTerraformDistributionDefinition(datadogDefinition datadogV1.Distributi // Required params terraformDefinition["request"] = buildTerraformDistributionRequests(&datadogDefinition.Requests) // Optional params + if v, ok := datadogDefinition.GetShowLegendOk(); ok { + terraformDefinition["show_legend"] = *v + } + if v, ok := datadogDefinition.GetLegendSizeOk(); ok { + terraformDefinition["legend_size"] = *v + } if v, ok := datadogDefinition.GetTitleOk(); ok { terraformDefinition["title"] = *v } @@ -4927,7 +4948,7 @@ func validateGroupWidgetLayoutType(val interface{}, key string) (warns []string, func validateTimeseriesWidgetLegendSize(val interface{}, key string) (warns []string, errs []error) { value := val.(string) switch value { - case "2", "4", "8", "16", "auto": + case "0", "2", "4", "8", "16", "auto": break default: errs = append(errs, fmt.Errorf( diff --git a/datadog/resource_datadog_dashboard_distribution_test.go b/datadog/resource_datadog_dashboard_distribution_test.go index c8b9958a5..207d331ad 100644 --- a/datadog/resource_datadog_dashboard_distribution_test.go +++ b/datadog/resource_datadog_dashboard_distribution_test.go @@ -62,8 +62,8 @@ resource "datadog_dashboard" "distribution_dashboard" { title = "Avg of system.cpu.user over account:prod by service,account" title_align = "left" title_size = "16" - //show_legend = "true" - //legend_size = "2" + show_legend = "true" + legend_size = "2" time = { live_span = "1h" } @@ -84,6 +84,8 @@ var datadogDashboardDistributionAsserts = []string{ "widget.0.distribution_definition.0.title = Avg of system.cpu.user over account:prod by service,account", "widget.0.distribution_definition.0.title_size = 16", "widget.0.distribution_definition.0.title_align = left", + "widget.0.distribution_definition.0.show_legend = true", + "widget.0.distribution_definition.0.legend_size = 2", "description = Created using the Datadog provider in Terraform", "widget.0.distribution_definition.0.request.0.q = avg:system.cpu.user{account:prod} by {service,account}", "widget.0.distribution_definition.0.request.0.style.0.palette = purple",