diff --git a/GNUmakefile b/GNUmakefile index 6e35d861f..a0073415d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -22,7 +22,7 @@ test: fmtcheck go test -i $(TEST) || exit 1 echo $(TEST) | \ xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4 - DD_API_KEY=fake DD_APP_KEY=fake RECORD=false TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout=120s + DD_API_KEY=fake DD_APP_KEY=fake RECORD=false TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout=6m testacc: fmtcheck TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m diff --git a/datadog/cassettes/TestAccDatadogDashboardAlertGraph.yaml b/datadog/cassettes/TestAccDatadogDashboardAlertGraph.yaml new file mode 100644 index 000000000..a47e612f0 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardAlertGraph.yaml @@ -0,0 +1,445 @@ +--- +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 Alert Graph Widget Dashboard","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"}},{"definition":{"alert_id":"895606","time":{"live_span":"1h"},"title":"Widget Title","title_align":"right","title_size":"16","type":"alert_graph","viz_type":"toplist"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"ddx-zxs-ih8","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/ddx-zxs-ih8/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:10.903548+00:00","modified_at":"2020-06-17T13:30:10.903548+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8132813254299822},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":5401821440796829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UH1aMdrlnlnaxy/K+HUi5QUN2T0FBtGPSUC8sLrviqCK1XXfgHsSO5DneAd5J+6F + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ddx-zxs-ih8 + 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":"ddx-zxs-ih8","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/ddx-zxs-ih8/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:10.903548+00:00","modified_at":"2020-06-17T13:30:10.903548+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8132813254299822},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":5401821440796829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - P2v7RkLoCWSKqMAo7HF484UAAT2/cQHsvX2DV8G10CAxYBcO25Cq9ZgfwOWpYGFP + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ddx-zxs-ih8 + 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":"ddx-zxs-ih8","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/ddx-zxs-ih8/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:10.903548+00:00","modified_at":"2020-06-17T13:30:10.903548+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8132813254299822},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":5401821440796829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7/pC7B9bYAY6HGz006Bg+ZrYGMZFiH1gxYQ0jMSpdzevd2r/Iy3Bkt2FGvLL5qId + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ddx-zxs-ih8 + 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":"ddx-zxs-ih8","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/ddx-zxs-ih8/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:10.903548+00:00","modified_at":"2020-06-17T13:30:10.903548+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8132813254299822},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":5401821440796829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ddx-zxs-ih8 + 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":"ddx-zxs-ih8","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/ddx-zxs-ih8/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:10.903548+00:00","modified_at":"2020-06-17T13:30:10.903548+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8132813254299822},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":5401821440796829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ddx-zxs-ih8 + 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":"ddx-zxs-ih8","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/ddx-zxs-ih8/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:10.903548+00:00","modified_at":"2020-06-17T13:30:10.903548+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8132813254299822},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":5401821440796829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:16 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:16 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 5gIeAyE850e1lqVwTAgwvudewR8EzuQd3qGaXsS2D0CKQVhFOIjBoeQYiH0qPohy + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ddx-zxs-ih8 + 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":"ddx-zxs-ih8","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/ddx-zxs-ih8/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:10.903548+00:00","modified_at":"2020-06-17T13:30:10.903548+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8132813254299822},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":5401821440796829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ddx-zxs-ih8 + method: DELETE + response: + body: '{"deleted_dashboard_id":"ddx-zxs-ih8"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ddx-zxs-ih8 + method: GET + response: + body: '{"errors": ["Dashboard with ID ddx-zxs-ih8 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardAlertGraph_import.yaml b/datadog/cassettes/TestAccDatadogDashboardAlertGraph_import.yaml new file mode 100644 index 000000000..32feb4dfe --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardAlertGraph_import.yaml @@ -0,0 +1,545 @@ +--- +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 Alert Graph Widget Dashboard","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"}},{"definition":{"alert_id":"895606","time":{"live_span":"1h"},"title":"Widget Title","title_align":"right","title_size":"16","type":"alert_graph","viz_type":"toplist"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wpac2a5DsHa/eqG3DjQhOxPXeBQRcLxZ18fT3wn3gFeruJMdJwvfZxTA9hAiHLHZ + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - P2v7RkLoCWSKqMAo7HF484UAAT2/cQHsvX2DV8G10CAxYBcO25Cq9ZgfwOWpYGFP + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wpac2a5DsHa/eqG3DjQhOxPXeBQRcLxZ18fT3wn3gFeruJMdJwvfZxTA9hAiHLHZ + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:35 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Xj/PwLDKe3Ll1QwGP2SdQuyUcOtG0YD60hQDJ9tPEhK9OEMHkSCPXdZRvPX0YYGO + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:35 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - zgs4/R8U39Dx88K274ycCG8gmotK2r1yjyecTfeITqBuGEc/zW9V1MMOyMl9URns + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:35 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - fLh2Ki8TBaqqP7azNnKugW2P+FqYhl36RGg8m8syr+2I6kNse5gXxG00+xylWppT + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - ty7T8eIeXOfZhM7KDN5nGo8JS7ZSIWAqBNFeZshTg3LLDJJa7mPU5wqGt0nOPCpy + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + 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":"hgb-u8g-x77","title":"Acceptance + Test Alert Graph Widget Dashboard","url":"/dashboard/hgb-u8g-x77/acceptance-test-alert-graph-widget-dashboard","created_at":"2020-06-17T13:30:31.531052+00:00","modified_at":"2020-06-17T13:30:31.531052+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_graph","viz_type":"timeseries"},"id":8679236257406731},{"definition":{"title_size":"16","viz_type":"toplist","title":"Widget + Title","title_align":"right","alert_id":"895606","time":{"live_span":"1h"},"type":"alert_graph"},"id":499230969230564}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + method: DELETE + response: + body: '{"deleted_dashboard_id":"hgb-u8g-x77"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:50 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:30:37 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - SxoanfhUZNcxsD3lnA3j+up2jAgZV05RpnWjR/qtgMkjy5UIlkbs0WqFT6yaBwwR + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hgb-u8g-x77 + method: GET + response: + body: '{"errors": ["Dashboard with ID hgb-u8g-x77 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:30:50 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardAlertValue.yaml b/datadog/cassettes/TestAccDatadogDashboardAlertValue.yaml new file mode 100644 index 000000000..4c0cbd478 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardAlertValue.yaml @@ -0,0 +1,445 @@ +--- +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 Alert Value Widget Dashboard","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"}},{"definition":{"alert_id":"895606","precision":1,"text_align":"center","title":"Widget Title","title_align":"center","title_size":"16","type":"alert_value","unit":"b"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"cvp-45v-v2j","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/cvp-45v-v2j/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:01.265319+00:00","modified_at":"2020-06-17T13:24:01.265319+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":6547445406934998},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":797736968943331}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:01 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:01 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cvp-45v-v2j + 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":"cvp-45v-v2j","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/cvp-45v-v2j/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:01.265319+00:00","modified_at":"2020-06-17T13:24:01.265319+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":6547445406934998},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":797736968943331}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:01 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:01 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cvp-45v-v2j + 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":"cvp-45v-v2j","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/cvp-45v-v2j/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:01.265319+00:00","modified_at":"2020-06-17T13:24:01.265319+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":6547445406934998},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":797736968943331}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:01 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:01 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IRAJ1mQ+c3epm0CLGtZoe/y8O4TCss3jYw+fwQOm7+eSKRCE+p3OtawVnIQ5ts76 + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cvp-45v-v2j + 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":"cvp-45v-v2j","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/cvp-45v-v2j/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:01.265319+00:00","modified_at":"2020-06-17T13:24:01.265319+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":6547445406934998},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":797736968943331}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:03 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:03 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cvp-45v-v2j + 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":"cvp-45v-v2j","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/cvp-45v-v2j/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:01.265319+00:00","modified_at":"2020-06-17T13:24:01.265319+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":6547445406934998},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":797736968943331}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:03 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:03 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - YNGrI7M9aLfuf6Npp7n/51e6xDtYCO9Rm/LB+HGbX4I6A/e7rnC+cgQxIZnsU+fj + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cvp-45v-v2j + 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":"cvp-45v-v2j","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/cvp-45v-v2j/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:01.265319+00:00","modified_at":"2020-06-17T13:24:01.265319+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":6547445406934998},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":797736968943331}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:05 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cvp-45v-v2j + 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":"cvp-45v-v2j","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/cvp-45v-v2j/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:01.265319+00:00","modified_at":"2020-06-17T13:24:01.265319+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":6547445406934998},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":797736968943331}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:05 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - bZxgHnChon9vZm5xdRa4NrQAYSVWc7iQc54D228L4geTT/U2FwMh0nkSo8j+6vpL + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cvp-45v-v2j + method: DELETE + response: + body: '{"deleted_dashboard_id":"cvp-45v-v2j"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:06 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aERr2Ftx8O/BR8oAhSymZ3bVROQEC+81YMSphOQK1me4DxXSbMIcFkB0Di4ggZ++ + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cvp-45v-v2j + method: GET + response: + body: '{"errors": ["Dashboard with ID cvp-45v-v2j not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardAlertValue_import.yaml b/datadog/cassettes/TestAccDatadogDashboardAlertValue_import.yaml new file mode 100644 index 000000000..f7b481a3a --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardAlertValue_import.yaml @@ -0,0 +1,545 @@ +--- +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 Alert Value Widget Dashboard","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"}},{"definition":{"alert_id":"895606","precision":1,"text_align":"center","title":"Widget Title","title_align":"center","title_size":"16","type":"alert_value","unit":"b"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - +0e88dcOoH2a7qrZ5zz4PnubdrAKvSl+k8YKr4bhBQyArPBFiYg3oXWqeVKLPB1I + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aERr2Ftx8O/BR8oAhSymZ3bVROQEC+81YMSphOQK1me4DxXSbMIcFkB0Di4ggZ++ + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FAXIqEyJyWWDyUDKgR+Td75IkfWeu40aSEpg9NtrH84gUkIxi84nk9RHrJt3rVD3 + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wpac2a5DsHa/eqG3DjQhOxPXeBQRcLxZ18fT3wn3gFeruJMdJwvfZxTA9hAiHLHZ + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FB5oGxuL9E/cplxahdQnU5Nw5E7KX0Smq18it9qYKIt8BXsSloE0IpDRA39tfQwn + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nfUJgEhoI/RZ8GJVApSQj6s2TfLYXQ1qvePMFw8ZmKB2iBVwiNegJAc5RNY4ZZbI + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:25 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vwiIwb5QepaQFIQrmPfIwwVWkQ/z0inFQwNEDjqDDy4v3CsF5qbv9dnyfb7UGzLf + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:25 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aiFdvD+ESSGWQuLeXGShIAaySBrTSq6aZf+crfPnDVFrMRUU9f0HobLUCBopvakz + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + 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":"r9e-d7v-bm9","title":"Acceptance + Test Alert Value Widget Dashboard","url":"/dashboard/r9e-d7v-bm9/acceptance-test-alert-value-widget-dashboard","created_at":"2020-06-17T13:24:21.428871+00:00","modified_at":"2020-06-17T13:24:21.428871+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","type":"alert_value"},"id":771263200855893},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"center","text_align":"center","precision":1,"alert_id":"895606","type":"alert_value","unit":"b"},"id":8517980032416214}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:25 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rK52fEhHKxisnKo2rembr3YValr4L+BG6/8tD9iNDc8Prg2mnV6DynBkS75++wh/ + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + method: DELETE + response: + body: '{"deleted_dashboard_id":"r9e-d7v-bm9"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:24:26 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wts7Rn21w0qW4rqYtxheVW/4xeY9Y3ARkRMnLeq6etar4hXLqkvskJXcsIyQxYKB + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/r9e-d7v-bm9 + method: GET + response: + body: '{"errors": ["Dashboard with ID r9e-d7v-bm9 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:24:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631696" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardChange.yaml b/datadog/cassettes/TestAccDatadogDashboardChange.yaml new file mode 100644 index 000000000..204ee15d3 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardChange.yaml @@ -0,0 +1,459 @@ +--- +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 Change Widget Dashboard","widgets":[{"definition":{"requests":[{"increase_good":false,"q":"sum:system.cpu.user{*} by {service,account}","show_present":false}],"type":"change"}},{"definition":{"requests":[{"change_type":"absolute","compare_to":"day_before","increase_good":false,"order_by":"change","order_dir":"desc","q":"sum:system.cpu.user{*} by {service,account}","show_present":true}],"time":{"live_span":"1h"},"title":"Sum of system.cpu.user over * by service,account","title_align":"left","title_size":"16","type":"change"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"fgn-3ey-jby","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/fgn-3ey-jby/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:04:51.925975+00:00","modified_at":"2020-06-17T13:04:51.925975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1984093298224065},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8420460865827460}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:04:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:04:51 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - bJj7D3RvHsKo+7eO3lrtPpPG0z8SsAwLw7bNfLb4htD+N9Ub8bD3AFgh45XaVsFM + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fgn-3ey-jby + 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":"fgn-3ey-jby","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/fgn-3ey-jby/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:04:51.925975+00:00","modified_at":"2020-06-17T13:04:51.925975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1984093298224065},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8420460865827460}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:04:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:04:52 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - hABsPq9DIvV7yAEiU7rMxs7UCRuTbRH/kYpwue4a0q9qmwd4SUh9bBZ5SHPkBLc6 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fgn-3ey-jby + 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":"fgn-3ey-jby","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/fgn-3ey-jby/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:04:51.925975+00:00","modified_at":"2020-06-17T13:04:51.925975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1984093298224065},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8420460865827460}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:04:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:04:52 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RbevWUvO2oQYYDnX/G1lndTh/kTt+ebFIvajU6/3Ivb5c6aUQf49/uD1ICaXyx52 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fgn-3ey-jby + 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":"fgn-3ey-jby","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/fgn-3ey-jby/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:04:51.925975+00:00","modified_at":"2020-06-17T13:04:51.925975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1984093298224065},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8420460865827460}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:04:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:04:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fgn-3ey-jby + 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":"fgn-3ey-jby","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/fgn-3ey-jby/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:04:51.925975+00:00","modified_at":"2020-06-17T13:04:51.925975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1984093298224065},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8420460865827460}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:04:54 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:04:54 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nfUJgEhoI/RZ8GJVApSQj6s2TfLYXQ1qvePMFw8ZmKB2iBVwiNegJAc5RNY4ZZbI + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fgn-3ey-jby + 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":"fgn-3ey-jby","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/fgn-3ey-jby/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:04:51.925975+00:00","modified_at":"2020-06-17T13:04:51.925975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1984093298224065},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8420460865827460}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:04:55 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:04:55 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - i/tjaZJ1Vhpke5HNSziupF5eEnHtDP3NjcuF7Ija0/AGuxq0WEQiFfpqy+mDADxv + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fgn-3ey-jby + 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":"fgn-3ey-jby","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/fgn-3ey-jby/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:04:51.925975+00:00","modified_at":"2020-06-17T13:04:51.925975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1984093298224065},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8420460865827460}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:04:56 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:04:56 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - oQ/oy4ezTZ+/WzL4afBMlDjLd5w62e5H15hF5BJChw1Gte+Sq8B8tB7i6vlTiLL0 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fgn-3ey-jby + method: DELETE + response: + body: '{"deleted_dashboard_id":"fgn-3ey-jby"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:07 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:04:57 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - oiF9oLqSEnBWpAh9z89c+Ruy9xKAqrdZzQPjGsNOxlGQNWaw3sCTSoKaMkMdPunL + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fgn-3ey-jby + method: GET + response: + body: '{"errors": ["Dashboard with ID fgn-3ey-jby not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:08 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardChange_import.yaml b/datadog/cassettes/TestAccDatadogDashboardChange_import.yaml new file mode 100644 index 000000000..9e86922b3 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardChange_import.yaml @@ -0,0 +1,563 @@ +--- +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 Change Widget Dashboard","widgets":[{"definition":{"requests":[{"increase_good":false,"q":"sum:system.cpu.user{*} by {service,account}","show_present":false}],"type":"change"}},{"definition":{"requests":[{"change_type":"absolute","compare_to":"day_before","increase_good":false,"order_by":"change","order_dir":"desc","q":"sum:system.cpu.user{*} by {service,account}","show_present":true}],"time":{"live_span":"1h"},"title":"Sum of system.cpu.user over * by service,account","title_align":"left","title_size":"16","type":"change"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:09 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Dpx7DG2N4VEOVm8I4W97n4HwOzBXFJSj1QrKca/nHpAZ6o7/LrJ0o2qyQx0XjNXl + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nL/U8Nu7782wU68M7elx8MY/T+2opB0U5/flvjGsH/qXfYEORYWxwdDpQFq78Mxt + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - o8MFmk+4Ge4vq85ax+5C1nfQs0lbtaPPYZrpqzeG6IsYGNLGMu/G7PbJElpjPS5i + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - J7vOWsxZd7Grxzg2TIaQpn2nGjrOScgI4Kwzur8V2oOTYInX6xbVT4leinNkGLPk + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - QgRGXxkxV9A4PZPYRoesCGgupw+m7xaD1r9nbJHgAaPeprYV0FnzI0EYYO7x6f4+ + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:14 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nL/U8Nu7782wU68M7elx8MY/T+2opB0U5/flvjGsH/qXfYEORYWxwdDpQFq78Mxt + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + 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":"k5m-xpm-4w8","title":"Acceptance + Test Change Widget Dashboard","url":"/dashboard/k5m-xpm-4w8/acceptance-test-change-widget-dashboard","created_at":"2020-06-17T13:05:09.862819+00:00","modified_at":"2020-06-17T13:05:09.862819+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} + by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":2643311043673050},{"definition":{"title_size":"16","title":"Sum + of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} + by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":8869205865038012}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:14 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + method: DELETE + response: + body: '{"deleted_dashboard_id":"k5m-xpm-4w8"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:05:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/k5m-xpm-4w8 + method: GET + response: + body: '{"errors": ["Dashboard with ID k5m-xpm-4w8 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:05:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardCheckStatus.yaml b/datadog/cassettes/TestAccDatadogDashboardCheckStatus.yaml new file mode 100644 index 000000000..6aa470823 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardCheckStatus.yaml @@ -0,0 +1,445 @@ +--- +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 Check Status Widget Dashboard","widgets":[{"definition":{"check":"aws.ec2.host_status","group_by":["app"],"grouping":"cluster","tags":["account:prod"],"title":"Agent Up","title_align":"center","title_size":"16","type":"check_status"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"j7k-x4s-muf","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/j7k-x4s-muf/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:22.696347+00:00","modified_at":"2020-06-17T14:15:22.696347+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4775510793853130}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:22 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/j7k-x4s-muf + 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":"j7k-x4s-muf","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/j7k-x4s-muf/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:22.696347+00:00","modified_at":"2020-06-17T14:15:22.696347+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4775510793853130}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:22 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Lo9psmCk9egobltaxBGqrQFhgCcgUTQoFZpr2xiSR+6tucB/owychJvFjr9YMWzu + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/j7k-x4s-muf + 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":"j7k-x4s-muf","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/j7k-x4s-muf/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:22.696347+00:00","modified_at":"2020-06-17T14:15:22.696347+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4775510793853130}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - LOVPYRkvxiVgJlSU7tTR5QW5I3IByFfoP5oRWZk6jukYFQiYGeCZXWoo6PiPBzrK + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/j7k-x4s-muf + 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":"j7k-x4s-muf","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/j7k-x4s-muf/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:22.696347+00:00","modified_at":"2020-06-17T14:15:22.696347+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4775510793853130}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:25 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/j7k-x4s-muf + 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":"j7k-x4s-muf","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/j7k-x4s-muf/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:22.696347+00:00","modified_at":"2020-06-17T14:15:22.696347+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4775510793853130}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:25 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/j7k-x4s-muf + 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":"j7k-x4s-muf","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/j7k-x4s-muf/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:22.696347+00:00","modified_at":"2020-06-17T14:15:22.696347+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4775510793853130}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/j7k-x4s-muf + 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":"j7k-x4s-muf","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/j7k-x4s-muf/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:22.696347+00:00","modified_at":"2020-06-17T14:15:22.696347+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4775510793853130}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aiFdvD+ESSGWQuLeXGShIAaySBrTSq6aZf+crfPnDVFrMRUU9f0HobLUCBopvakz + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/j7k-x4s-muf + method: DELETE + response: + body: '{"deleted_dashboard_id":"j7k-x4s-muf"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/j7k-x4s-muf + method: GET + response: + body: '{"errors": ["Dashboard with ID j7k-x4s-muf not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:43 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardCheckStatus_import.yaml b/datadog/cassettes/TestAccDatadogDashboardCheckStatus_import.yaml new file mode 100644 index 000000000..a33f64e8d --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardCheckStatus_import.yaml @@ -0,0 +1,545 @@ +--- +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 Check Status Widget Dashboard","widgets":[{"definition":{"check":"aws.ec2.host_status","group_by":["app"],"grouping":"cluster","tags":["account:prod"],"title":"Agent Up","title_align":"center","title_size":"16","type":"check_status"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:47 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:47 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - KKQq2SiaDLpychKSp47ffvU6SRxUV+VzBWr187ESkULBuGOI+kREfb/2NCy8DAWC + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:47 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:47 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:50 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:50 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - x4m73yTAj65OpCjnvpw3RBJyiFQpkDOBZ7rE/UM6Q4o0837nUb4ZsWFNJUD0Xh0e + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:50 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:50 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nfUJgEhoI/RZ8GJVApSQj6s2TfLYXQ1qvePMFw8ZmKB2iBVwiNegJAc5RNY4ZZbI + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:52 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - +0e88dcOoH2a7qrZ5zz4PnubdrAKvSl+k8YKr4bhBQyArPBFiYg3oXWqeVKLPB1I + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:52 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RbevWUvO2oQYYDnX/G1lndTh/kTt+ebFIvajU6/3Ivb5c6aUQf49/uD1ICaXyx52 + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - QO3HutZQjgMDp/HqClcLon+qq5lEghb3LRV+gXMIQ2Jivd1m1eEGCh0RxplUQMIV + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wts7Rn21w0qW4rqYtxheVW/4xeY9Y3ARkRMnLeq6etar4hXLqkvskJXcsIyQxYKB + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + 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":"aw9-234-dgp","title":"Acceptance + Test Check Status Widget Dashboard","url":"/dashboard/aw9-234-dgp/acceptance-test-check-status-widget-dashboard","created_at":"2020-06-17T14:15:47.179582+00:00","modified_at":"2020-06-17T14:15:47.179582+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Agent + Up","title_align":"center","group_by":["app"],"type":"check_status","check":"aws.ec2.host_status","tags":["account:prod"],"grouping":"cluster"},"id":4641807927776288}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:15:54 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:54 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - HIunaScoW4AWw8tnSbk8zc5V6c9XLV6++/KbgzaC4HIb212+evjUYL1yRLeLtS2T + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + method: DELETE + response: + body: '{"deleted_dashboard_id":"aw9-234-dgp"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:16:08 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 14:15:55 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - QaEGvF++JqTbTiFomKhE21Fdnra2zinKOaCEqOgwcd7OtJatRLgvovBbCNyGqcpO + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/aw9-234-dgp + method: GET + response: + body: '{"errors": ["Dashboard with ID aw9-234-dgp not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 14:16:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631939" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardDistribution.yaml b/datadog/cassettes/TestAccDatadogDashboardDistribution.yaml new file mode 100644 index 000000000..9f275e395 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardDistribution.yaml @@ -0,0 +1,452 @@ +--- +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"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:11 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - HIunaScoW4AWw8tnSbk8zc5V6c9XLV6++/KbgzaC4HIb212+evjUYL1yRLeLtS2T + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:11 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BQaWiIhDCyK3JbvyPZudxtMuoedbvOKE6tb5GJMfo6GT4EOQ8qx9lqgA4UCxp88q + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:12 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:13 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:13 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09: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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09: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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - j0VNx9cZdAj+uuO7pabHlao4Ioc5q8ovvp4Ja/NYzbHA51zSBYXNvtO+8cOYbE0B + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + method: DELETE + response: + body: '{"deleted_dashboard_id":"3a2-6m4-5v3"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09: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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + method: GET + response: + body: '{"errors": ["Dashboard with ID 3a2-6m4-5v3 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardDistribution_import.yaml b/datadog/cassettes/TestAccDatadogDashboardDistribution_import.yaml new file mode 100644 index 000000000..8adb95180 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardDistribution_import.yaml @@ -0,0 +1,554 @@ +--- +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"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:31 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rxkz+JB0yzarEINDeNWQGs9dk7PLNAMnAw2wV8MNkZOhKDtz+JOpGuIyyBUaWwyF + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:31 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:32 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - NclXS5F5t+kukUaODU4jY2oSI1KBdPHFdFhJZNfbXLWDOThxbCLlKKmYvikjdDSg + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:33 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:34 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - OxP+mFpjAbASiVhNf+t4MttAs95ZlMiGosIRnYJJGFoApNgv2oxtdzpnmNlMOki6 + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:34 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:34 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - v8lEj/pYmsavh1I0Db6FT/BAvLdOdAv91ctM9ImcmfZ/KHrCACXEdhuskTCPihd+ + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:35 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wts7Rn21w0qW4rqYtxheVW/4xeY9Y3ARkRMnLeq6etar4hXLqkvskJXcsIyQxYKB + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + 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"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:35 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pmBjL5vG2A5IkxC4OBtwgn929khTZGgUquRW20JC77zchR4jTrHgra/pB22jP66 + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + method: DELETE + response: + body: '{"deleted_dashboard_id":"vvu-qb7-u6d"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:49 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; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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 + method: GET + response: + body: '{"errors": ["Dashboard with ID vvu-qb7-u6d not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 18:09:50 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2638726" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardEventStream.yaml b/datadog/cassettes/TestAccDatadogDashboardEventStream.yaml new file mode 100644 index 000000000..b256b9c83 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardEventStream.yaml @@ -0,0 +1,445 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Event Stream Widget Dashboard","widgets":[{"definition":{"event_size":"l","query":"*","tags_execution":"and","time":{"live_span":"4h"},"title":"Widget Title","title_align":"right","title_size":"16","type":"event_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"zce-udk-ut8","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/zce-udk-ut8/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:41:39.276618+00:00","modified_at":"2020-06-17T18:41:39.276618+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4055494686735108}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:41:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:41:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/zce-udk-ut8 + 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":"zce-udk-ut8","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/zce-udk-ut8/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:41:39.276618+00:00","modified_at":"2020-06-17T18:41:39.276618+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4055494686735108}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:41:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:41:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/zce-udk-ut8 + 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":"zce-udk-ut8","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/zce-udk-ut8/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:41:39.276618+00:00","modified_at":"2020-06-17T18:41:39.276618+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4055494686735108}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:41:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:41:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/zce-udk-ut8 + 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":"zce-udk-ut8","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/zce-udk-ut8/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:41:39.276618+00:00","modified_at":"2020-06-17T18:41:39.276618+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4055494686735108}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:41:41 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:41:41 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - KKQq2SiaDLpychKSp47ffvU6SRxUV+VzBWr187ESkULBuGOI+kREfb/2NCy8DAWC + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/zce-udk-ut8 + 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":"zce-udk-ut8","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/zce-udk-ut8/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:41:39.276618+00:00","modified_at":"2020-06-17T18:41:39.276618+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4055494686735108}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:41:41 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:41:41 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - zDaLXgTwOglSG/+LeCisOhDwAOr7D4UzTY02i97kQg3V5W3f2nMLfChR6yLoaPN1 + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/zce-udk-ut8 + 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":"zce-udk-ut8","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/zce-udk-ut8/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:41:39.276618+00:00","modified_at":"2020-06-17T18:41:39.276618+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4055494686735108}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:41:43 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:41:43 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 5gIeAyE850e1lqVwTAgwvudewR8EzuQd3qGaXsS2D0CKQVhFOIjBoeQYiH0qPohy + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/zce-udk-ut8 + 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":"zce-udk-ut8","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/zce-udk-ut8/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:41:39.276618+00:00","modified_at":"2020-06-17T18:41:39.276618+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4055494686735108}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:41:43 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:41:43 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vQYgH+orCqhRbQG/mSd6IeQSqyYBCkFVCv4Bj6PXMALQcvTK5EvxQuH7fIz3d52m + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/zce-udk-ut8 + method: DELETE + response: + body: '{"deleted_dashboard_id":"zce-udk-ut8"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:01 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:41:45 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - F2g1vP9i37Cj4rH5vEufbSNzCmriMTDVzKKqVk/JOUesbIz8psR3R2945wO0PbTf + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/zce-udk-ut8 + method: GET + response: + body: '{"errors": ["Dashboard with ID zce-udk-ut8 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:02 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardEventStream_import.yaml b/datadog/cassettes/TestAccDatadogDashboardEventStream_import.yaml new file mode 100644 index 000000000..ed4880b4e --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardEventStream_import.yaml @@ -0,0 +1,545 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Event Stream Widget Dashboard","widgets":[{"definition":{"event_size":"l","query":"*","tags_execution":"and","time":{"live_span":"4h"},"title":"Widget Title","title_align":"right","title_size":"16","type":"event_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:06 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:06 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nL/U8Nu7782wU68M7elx8MY/T+2opB0U5/flvjGsH/qXfYEORYWxwdDpQFq78Mxt + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:06 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:06 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - KKQq2SiaDLpychKSp47ffvU6SRxUV+VzBWr187ESkULBuGOI+kREfb/2NCy8DAWC + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:09 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:09 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - HIunaScoW4AWw8tnSbk8zc5V6c9XLV6++/KbgzaC4HIb212+evjUYL1yRLeLtS2T + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - yqCkAb2Y8/4OgTSGYvedTl/k5gsPukDI7OLTlGSm9adIbRDVlGb00Ve5DDv9ImFD + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - OxP+mFpjAbASiVhNf+t4MttAs95ZlMiGosIRnYJJGFoApNgv2oxtdzpnmNlMOki6 + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - CFSDBBie5Okt4N1oWVJNTAqpt778eCo7VQZ0NhVFWw8MHYFUwuA7DURhpFRYY+Wy + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - QpzDmIoaO5Hufx014PqM5BuLw+G9k75nLqy12TEr4Iab1Fl7hIFT5DrERoBer8OF + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + 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":"fr2-bzr-uqr","title":"Acceptance + Test Event Stream Widget Dashboard","url":"/dashboard/fr2-bzr-uqr/acceptance-test-event-stream-widget-dashboard","created_at":"2020-06-17T18:42:06.075479+00:00","modified_at":"2020-06-17T18:42:06.075479+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5642222722914462}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - pxuY3ZnSwE+rCP/MLubWk3EuAMlxxciIsQ2EBSRxZafCu9H4+UEVULDCm144bb3W + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + method: DELETE + response: + body: '{"deleted_dashboard_id":"fr2-bzr-uqr"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 18:42:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vlc9b/rJPByGsV/acj3ScS7B1lo9nEAbSgYCfkl0GH3egry4iXeiGBP0WX8DpJ/T + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fr2-bzr-uqr + method: GET + response: + body: '{"errors": ["Dashboard with ID fr2-bzr-uqr not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 18:42:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardEventTimeline.yaml b/datadog/cassettes/TestAccDatadogDashboardEventTimeline.yaml new file mode 100644 index 000000000..116f40ce1 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardEventTimeline.yaml @@ -0,0 +1,445 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Event Timeline Widget Dashboard","widgets":[{"definition":{"query":"status:error","tags_execution":"and","time":{"live_span":"1h"},"title":"Widget Title","title_align":"right","title_size":"16","type":"event_timeline"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"tqt-z5c-k9i","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/tqt-z5c-k9i/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:15.565664+00:00","modified_at":"2020-06-17T19:23:15.565664+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8239501531095534}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - MZCX71FNdAUQ6AMWRBKW1fkNpiPTypOoXE57zLYE3lG5gigqB2nroYJ/8uMn9muy + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/tqt-z5c-k9i + 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":"tqt-z5c-k9i","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/tqt-z5c-k9i/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:15.565664+00:00","modified_at":"2020-06-17T19:23:15.565664+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8239501531095534}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/tqt-z5c-k9i + 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":"tqt-z5c-k9i","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/tqt-z5c-k9i/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:15.565664+00:00","modified_at":"2020-06-17T19:23:15.565664+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8239501531095534}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:16 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:16 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/tqt-z5c-k9i + 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":"tqt-z5c-k9i","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/tqt-z5c-k9i/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:15.565664+00:00","modified_at":"2020-06-17T19:23:15.565664+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8239501531095534}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 4HTfT92VNwJOKM3+9Fghpi7RnKwXOMM9XiE8bZkwhVPDb5jbW4knJKZPCpE1XUb8 + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/tqt-z5c-k9i + 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":"tqt-z5c-k9i","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/tqt-z5c-k9i/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:15.565664+00:00","modified_at":"2020-06-17T19:23:15.565664+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8239501531095534}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vYQu3ls2HKdZ2pXErBiwg/FlJyuK31hjiI+oJSqoEPPw/7mzimb2FzvWEsshbznY + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/tqt-z5c-k9i + 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":"tqt-z5c-k9i","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/tqt-z5c-k9i/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:15.565664+00:00","modified_at":"2020-06-17T19:23:15.565664+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8239501531095534}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - e8t0cvW5uVKXk1zUsTcAcDpqv28dgy+lCs/R2sCfbKW6stomFiq2a4ijzxRdPBn5 + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/tqt-z5c-k9i + 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":"tqt-z5c-k9i","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/tqt-z5c-k9i/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:15.565664+00:00","modified_at":"2020-06-17T19:23:15.565664+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8239501531095534}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/tqt-z5c-k9i + method: DELETE + response: + body: '{"deleted_dashboard_id":"tqt-z5c-k9i"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nfUJgEhoI/RZ8GJVApSQj6s2TfLYXQ1qvePMFw8ZmKB2iBVwiNegJAc5RNY4ZZbI + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/tqt-z5c-k9i + method: GET + response: + body: '{"errors": ["Dashboard with ID tqt-z5c-k9i not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardEventTimeline_import.yaml b/datadog/cassettes/TestAccDatadogDashboardEventTimeline_import.yaml new file mode 100644 index 000000000..5ae53f812 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardEventTimeline_import.yaml @@ -0,0 +1,545 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Event Timeline Widget Dashboard","widgets":[{"definition":{"query":"status:error","tags_execution":"and","time":{"live_span":"1h"},"title":"Widget Title","title_align":"right","title_size":"16","type":"event_timeline"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RL7BSOiWXeq2P2iJbmiDo/2BPpcpoCDzQceVuBkp6yO348trcqTrfm/pm8rvZRoT + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:34 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BQaWiIhDCyK3JbvyPZudxtMuoedbvOKE6tb5GJMfo6GT4EOQ8qx9lqgA4UCxp88q + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RngFxOd8mVeT14auLfzsH/6kz142QLoKkYXZjfmXpXDkZ/eN6uoCM3cTScXuFEa0 + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7/pC7B9bYAY6HGz006Bg+ZrYGMZFiH1gxYQ0jMSpdzevd2r/Iy3Bkt2FGvLL5qId + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 1/ye/L7/S9djtmh0CDbapYOAoYP2Xz5NE904aTai4cgQw/Kmmv343hpHqBIP3PC5 + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + 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":"txp-j84-88v","title":"Acceptance + Test Event Timeline Widget Dashboard","url":"/dashboard/txp-j84-88v/acceptance-test-event-timeline-widget-dashboard","created_at":"2020-06-17T19:23:33.824592+00:00","modified_at":"2020-06-17T19:23:33.824592+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"right","tags_execution":"and","time":{"live_span":"1h"},"query":"status:error","type":"event_timeline"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1192865920044870}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - cQFL4MaIw90DmTTH7z4Gqhr8PBtz47vyzddN9k7nXjUK2yrLiBjbdIgydUT8r1ut + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + method: DELETE + response: + body: '{"deleted_dashboard_id":"txp-j84-88v"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 19:23:41 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aiFdvD+ESSGWQuLeXGShIAaySBrTSq6aZf+crfPnDVFrMRUU9f0HobLUCBopvakz + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/txp-j84-88v + method: GET + response: + body: '{"errors": ["Dashboard with ID txp-j84-88v not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 19:23:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2633402" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardFreeText.yaml b/datadog/cassettes/TestAccDatadogDashboardFreeText.yaml new file mode 100644 index 000000000..94712ac03 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardFreeText.yaml @@ -0,0 +1,445 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Free Text Widget Dashboard","widgets":[{"definition":{"color":"#eb364b","font_size":"56","text":"Free Text","text_align":"left","type":"free_text"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"7mb-s3y-szz","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/7mb-s3y-szz/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:17.357128+00:00","modified_at":"2020-06-18T13:18:17.357128+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3376358009337926}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nL/U8Nu7782wU68M7elx8MY/T+2opB0U5/flvjGsH/qXfYEORYWxwdDpQFq78Mxt + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7mb-s3y-szz + 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":"7mb-s3y-szz","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/7mb-s3y-szz/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:17.357128+00:00","modified_at":"2020-06-18T13:18:17.357128+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3376358009337926}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7mb-s3y-szz + 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":"7mb-s3y-szz","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/7mb-s3y-szz/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:17.357128+00:00","modified_at":"2020-06-18T13:18:17.357128+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3376358009337926}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB + X-Dd-Version: + - "35.2636993" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7mb-s3y-szz + 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":"7mb-s3y-szz","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/7mb-s3y-szz/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:17.357128+00:00","modified_at":"2020-06-18T13:18:17.357128+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3376358009337926}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - v8lEj/pYmsavh1I0Db6FT/BAvLdOdAv91ctM9ImcmfZ/KHrCACXEdhuskTCPihd+ + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7mb-s3y-szz + 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":"7mb-s3y-szz","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/7mb-s3y-szz/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:17.357128+00:00","modified_at":"2020-06-18T13:18:17.357128+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3376358009337926}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 1/ye/L7/S9djtmh0CDbapYOAoYP2Xz5NE904aTai4cgQw/Kmmv343hpHqBIP3PC5 + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7mb-s3y-szz + 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":"7mb-s3y-szz","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/7mb-s3y-szz/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:17.357128+00:00","modified_at":"2020-06-18T13:18:17.357128+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3376358009337926}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7mb-s3y-szz + 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":"7mb-s3y-szz","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/7mb-s3y-szz/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:17.357128+00:00","modified_at":"2020-06-18T13:18:17.357128+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3376358009337926}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - pNNj5PhODCVJlRBPEhZP3s9KL9kvFYv//TnGsiPp+3AqL7R5kIW2JlCWtfMcXeFn + X-Dd-Version: + - "35.2636993" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7mb-s3y-szz + method: DELETE + response: + body: '{"deleted_dashboard_id":"7mb-s3y-szz"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7mb-s3y-szz + method: GET + response: + body: '{"errors": ["Dashboard with ID 7mb-s3y-szz not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2636993" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardFreeText_import.yaml b/datadog/cassettes/TestAccDatadogDashboardFreeText_import.yaml new file mode 100644 index 000000000..14f1c7c91 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardFreeText_import.yaml @@ -0,0 +1,545 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Free Text Widget Dashboard","widgets":[{"definition":{"color":"#eb364b","font_size":"56","text":"Free Text","text_align":"left","type":"free_text"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nL/U8Nu7782wU68M7elx8MY/T+2opB0U5/flvjGsH/qXfYEORYWxwdDpQFq78Mxt + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - e8t0cvW5uVKXk1zUsTcAcDpqv28dgy+lCs/R2sCfbKW6stomFiq2a4ijzxRdPBn5 + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + X-Dd-Version: + - "35.2636993" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 6TICFxDFBNq65Lw6aA0hO1z7nxUSiTzUAT0k7ln4UasEU6/emXomwtYWMJdIuxUV + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - yEcEaKqmSUfeSlQ/kN/c5E6EpIXbM1JPI9KV27pdsvBWWv3FI4tsqqRarYTS+fS+ + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aiFdvD+ESSGWQuLeXGShIAaySBrTSq6aZf+crfPnDVFrMRUU9f0HobLUCBopvakz + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - YNGrI7M9aLfuf6Npp7n/51e6xDtYCO9Rm/LB+HGbX4I6A/e7rnC+cgQxIZnsU+fj + X-Dd-Version: + - "35.2636993" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + 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":"8nw-j25-7ia","title":"Acceptance + Test Free Text Widget Dashboard","url":"/dashboard/8nw-j25-7ia/acceptance-test-free-text-widget-dashboard","created_at":"2020-06-18T13:18:36.462472+00:00","modified_at":"2020-06-18T13:18:36.462472+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"color":"#eb364b","text":"Free + Text","font_size":"56","text_align":"left","type":"free_text"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8321514307368696}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - pdoE+6MDHF3ASB0y6TdRZq9HO/3uAKc0XPY7EkyNyaFqpXeeAHwz2Ce2QWIN714X + X-Dd-Version: + - "35.2636993" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + method: DELETE + response: + body: '{"deleted_dashboard_id":"8nw-j25-7ia"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:18:41 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - YNGrI7M9aLfuf6Npp7n/51e6xDtYCO9Rm/LB+HGbX4I6A/e7rnC+cgQxIZnsU+fj + X-Dd-Version: + - "35.2637007" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/8nw-j25-7ia + method: GET + response: + body: '{"errors": ["Dashboard with ID 8nw-j25-7ia not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:18:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2636993" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardHeatMap.yaml b/datadog/cassettes/TestAccDatadogDashboardHeatMap.yaml new file mode 100644 index 000000000..bd9ef181d --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardHeatMap.yaml @@ -0,0 +1,452 @@ +--- +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 Heatmap Widget Dashboard","widgets":[{"definition":{"requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}],"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","title_align":"center","title_size":"16","type":"heatmap","yaxis":{"include_zero":false,"max":"100"}}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"p7d-faj-gwv","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/p7d-faj-gwv/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:35.585437+00:00","modified_at":"2020-06-17T16:51:35.585437+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":1386073392813399}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:35 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - i90G6k4M6qI4UypyvMoczcO5m+jatiEQSMeHpdjycp0h4nWxRpKUHr6efynkbQs+ + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/p7d-faj-gwv + 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":"p7d-faj-gwv","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/p7d-faj-gwv/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:35.585437+00:00","modified_at":"2020-06-17T16:51:35.585437+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":1386073392813399}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:35 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/p7d-faj-gwv + 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":"p7d-faj-gwv","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/p7d-faj-gwv/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:35.585437+00:00","modified_at":"2020-06-17T16:51:35.585437+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":1386073392813399}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/p7d-faj-gwv + 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":"p7d-faj-gwv","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/p7d-faj-gwv/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:35.585437+00:00","modified_at":"2020-06-17T16:51:35.585437+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":1386073392813399}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:37 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:37 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - cYNsy3QDuOaYo2clO/PharSNtCykS9KtUfiNevH3xDbHJlRyddWkNpuDhMgHWZ43 + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/p7d-faj-gwv + 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":"p7d-faj-gwv","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/p7d-faj-gwv/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:35.585437+00:00","modified_at":"2020-06-17T16:51:35.585437+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":1386073392813399}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:37 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:37 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/p7d-faj-gwv + 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":"p7d-faj-gwv","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/p7d-faj-gwv/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:35.585437+00:00","modified_at":"2020-06-17T16:51:35.585437+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":1386073392813399}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - oQ/oy4ezTZ+/WzL4afBMlDjLd5w62e5H15hF5BJChw1Gte+Sq8B8tB7i6vlTiLL0 + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/p7d-faj-gwv + 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":"p7d-faj-gwv","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/p7d-faj-gwv/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:35.585437+00:00","modified_at":"2020-06-17T16:51:35.585437+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":1386073392813399}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/p7d-faj-gwv + method: DELETE + response: + body: '{"deleted_dashboard_id":"p7d-faj-gwv"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:50 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/p7d-faj-gwv + method: GET + response: + body: '{"errors": ["Dashboard with ID p7d-faj-gwv not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardHeatMap_import.yaml b/datadog/cassettes/TestAccDatadogDashboardHeatMap_import.yaml new file mode 100644 index 000000000..2864896f3 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardHeatMap_import.yaml @@ -0,0 +1,554 @@ +--- +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 Heatmap Widget Dashboard","widgets":[{"definition":{"requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}],"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","title_align":"center","title_size":"16","type":"heatmap","yaxis":{"include_zero":false,"max":"100"}}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:52 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wNaVyRyNliLxKeX4pqFHOJTBG1dRCwo1/ihrnAf0GXtGNGahc1XK8Xzj/ssA3R20 + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rxkz+JB0yzarEINDeNWQGs9dk7PLNAMnAw2wV8MNkZOhKDtz+JOpGuIyyBUaWwyF + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:54 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:54 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:54 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:54 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:55 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:55 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:56 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:56 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:56 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:56 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - KHJbOoqp3I4BOBzIFnc/Ois3eg3Rjmudy0YalRpnXQEDXDoppykpDMDaJPIufi9t + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:56 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:56 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - NueLa2zkdBcl9S7BHrRuWyjAeR9iWgPFe330KTY6Cp0/yUhjUktbxu5rG2fG6gBk + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + 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":"psy-4j3-2u6","title":"Acceptance + Test Heatmap Widget Dashboard","url":"/dashboard/psy-4j3-2u6/acceptance-test-heatmap-widget-dashboard","created_at":"2020-06-17T16:51:52.896612+00:00","modified_at":"2020-06-17T16:51:52.896612+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.cpu.user over account:prod by app","title_align":"center","yaxis":{"include_zero":false,"max":"100"},"time":{"live_span":"1mo"},"requests":[{"q":"avg:system.cpu.user{account:prod} + by {app}","style":{"palette":"blue"}}],"type":"heatmap"},"id":6059823499574180}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:51:57 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:57 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + method: DELETE + response: + body: '{"deleted_dashboard_id":"psy-4j3-2u6"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:52:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:51:57 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - KKQq2SiaDLpychKSp47ffvU6SRxUV+VzBWr187ESkULBuGOI+kREfb/2NCy8DAWC + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/psy-4j3-2u6 + method: GET + response: + body: '{"errors": ["Dashboard with ID psy-4j3-2u6 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:52:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardHostMap.yaml b/datadog/cassettes/TestAccDatadogDashboardHostMap.yaml new file mode 100644 index 000000000..2354bfafe --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardHostMap.yaml @@ -0,0 +1,452 @@ +--- +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 Host Map Widget Dashboard","widgets":[{"definition":{"group":["region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"host","requests":{"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"},"size":{"q":"max:system.cpu.user{env:prod} by {host}"}},"scope":["env:prod"],"style":{"fill_max":"30","fill_min":"10","palette":"YlOrRd","palette_flip":true},"title":"system.cpu.idle, system.cpu.user","title_align":"right","title_size":"16","type":"hostmap"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"hfk-udy-97g","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/hfk-udy-97g/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:11.218473+00:00","modified_at":"2020-06-17T16:49:11.218473+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4619379926847427}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7vC9CD2UnUYbC7cu05B95RgDyGt2vcRq8GQJgBahx4BAPKzA8OvLqEF8NdaLccla + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hfk-udy-97g + 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":"hfk-udy-97g","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/hfk-udy-97g/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:11.218473+00:00","modified_at":"2020-06-17T16:49:11.218473+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4619379926847427}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hfk-udy-97g + 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":"hfk-udy-97g","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/hfk-udy-97g/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:11.218473+00:00","modified_at":"2020-06-17T16:49:11.218473+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4619379926847427}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - J5PL0LnJukdy69mckjXi3cjye/YJX2hkoCBkqKQi+tYjrsXYELx6DfDD11fhyjYF + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hfk-udy-97g + 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":"hfk-udy-97g","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/hfk-udy-97g/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:11.218473+00:00","modified_at":"2020-06-17T16:49:11.218473+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4619379926847427}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:14 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nRZqCODixwNZX0HLyT17WzYwenviVG0rmnZak57k5KsDWun3aWEsPedTsRpiFQxf + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hfk-udy-97g + 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":"hfk-udy-97g","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/hfk-udy-97g/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:11.218473+00:00","modified_at":"2020-06-17T16:49:11.218473+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4619379926847427}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:14 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - ADT0ms9dQnbDHbbduv4c09ChngZrYY7A/Pgms/qacMOruS4mPwZ1GJWq74I7G11W + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hfk-udy-97g + 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":"hfk-udy-97g","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/hfk-udy-97g/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:11.218473+00:00","modified_at":"2020-06-17T16:49:11.218473+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4619379926847427}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hfk-udy-97g + 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":"hfk-udy-97g","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/hfk-udy-97g/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:11.218473+00:00","modified_at":"2020-06-17T16:49:11.218473+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4619379926847427}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - ns395qtajdi4vImLC5PhByq3vzX3KV9r4kOaLqZ3Kb42AGxxpM06vNzB/Pdubr1b + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hfk-udy-97g + method: DELETE + response: + body: '{"deleted_dashboard_id":"hfk-udy-97g"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FB5oGxuL9E/cplxahdQnU5Nw5E7KX0Smq18it9qYKIt8BXsSloE0IpDRA39tfQwn + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/hfk-udy-97g + method: GET + response: + body: '{"errors": ["Dashboard with ID hfk-udy-97g not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardHostMap_import.yaml b/datadog/cassettes/TestAccDatadogDashboardHostMap_import.yaml new file mode 100644 index 000000000..2fefd6e70 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardHostMap_import.yaml @@ -0,0 +1,554 @@ +--- +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 Host Map Widget Dashboard","widgets":[{"definition":{"group":["region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"host","requests":{"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"},"size":{"q":"max:system.cpu.user{env:prod} by {host}"}},"scope":["env:prod"],"style":{"fill_max":"30","fill_min":"10","palette":"YlOrRd","palette_flip":true},"title":"system.cpu.idle, system.cpu.user","title_align":"right","title_size":"16","type":"hostmap"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - P2v7RkLoCWSKqMAo7HF484UAAT2/cQHsvX2DV8G10CAxYBcO25Cq9ZgfwOWpYGFP + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 1bzfAqb/6TIngEeU7r7YcGGp2+NaI+ne9J3bzgQrdB0qTrgVrMtd4iKXr1zCNOHr + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - +0e88dcOoH2a7qrZ5zz4PnubdrAKvSl+k8YKr4bhBQyArPBFiYg3oXWqeVKLPB1I + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - NclXS5F5t+kukUaODU4jY2oSI1KBdPHFdFhJZNfbXLWDOThxbCLlKKmYvikjdDSg + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - A5a5htKhTUF1FdBQZRUZl4RVawKwk2RUtaZz3EDBmdXc0X6i0O7TBEBWn4bIBQ01 + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + 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":"7hi-hze-zrb","title":"Acceptance + Test Host Map Widget Dashboard","url":"/dashboard/7hi-hze-zrb/acceptance-test-host-map-widget-dashboard","created_at":"2020-06-17T16:49:36.610502+00:00","modified_at":"2020-06-17T16:49:36.610502+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"group":["region"],"title":"system.cpu.idle, + system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"title_size":"16","requests":{"size":{"q":"max:system.cpu.user{env:prod} + by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":1279321207009904}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:41 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:41 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + method: DELETE + response: + body: '{"deleted_dashboard_id":"7hi-hze-zrb"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 16:49:41 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rk3iIRyevtXsTLLTMsm8PoHrVjRY2UIgJwOnYxasATpPihgg0ps3VPSw7zz+6jrL + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7hi-hze-zrb + method: GET + response: + body: '{"errors": ["Dashboard with ID 7hi-hze-zrb not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 16:49:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2632563" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardIFrame.yaml b/datadog/cassettes/TestAccDatadogDashboardIFrame.yaml new file mode 100644 index 000000000..f6fe843bb --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardIFrame.yaml @@ -0,0 +1,438 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test IFrame Widget Dashboard","widgets":[{"definition":{"type":"iframe","url":"https://en.wikipedia.org/wiki/Datadog"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"e34-62b-96p","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/e34-62b-96p/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:32:51.056913+00:00","modified_at":"2020-06-18T13:32:51.056913+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8529667054507992}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:32:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:32:51 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/e34-62b-96p + 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":"e34-62b-96p","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/e34-62b-96p/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:32:51.056913+00:00","modified_at":"2020-06-18T13:32:51.056913+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8529667054507992}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:32:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:32:51 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - iMTE1BmjsL8tFxXfV1x35HHEpphKhyShj7mGG+gCh4hVOBaK9+R0wmURPHnATwmw + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/e34-62b-96p + 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":"e34-62b-96p","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/e34-62b-96p/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:32:51.056913+00:00","modified_at":"2020-06-18T13:32:51.056913+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8529667054507992}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:32:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:32:51 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - CPK+34LtKdL5YYX/NFOJUdMpxMoO80HISGpGpzDG5fENYSoZ2QNw1gEubOsJ9JNb + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/e34-62b-96p + 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":"e34-62b-96p","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/e34-62b-96p/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:32:51.056913+00:00","modified_at":"2020-06-18T13:32:51.056913+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8529667054507992}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:32:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:32:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/e34-62b-96p + 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":"e34-62b-96p","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/e34-62b-96p/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:32:51.056913+00:00","modified_at":"2020-06-18T13:32:51.056913+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8529667054507992}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:32:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:32:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - /Ib6MMQTHlX0/jTb6tlEMzSZs2crLqjkGjYkoQ/zb0RHtMaXT744DZRFpy23W0oi + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/e34-62b-96p + 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":"e34-62b-96p","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/e34-62b-96p/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:32:51.056913+00:00","modified_at":"2020-06-18T13:32:51.056913+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8529667054507992}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:32:55 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:32:55 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - o1rjyOSbDnvYaQgtO33vwWSNsIwHafzLqam2amG/PbTP69SVY965ZpWutdoYJB30 + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/e34-62b-96p + 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":"e34-62b-96p","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/e34-62b-96p/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:32:51.056913+00:00","modified_at":"2020-06-18T13:32:51.056913+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8529667054507992}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:32:55 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:32:55 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 3GTZ6ImnvkiMOuKTP2ILv/2CbQJLb5wTjyX1KOTCD/aaxDS+HyYye1EH1uVK9Ajh + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/e34-62b-96p + method: DELETE + response: + body: '{"deleted_dashboard_id":"e34-62b-96p"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:32:57 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/e34-62b-96p + method: GET + response: + body: '{"errors": ["Dashboard with ID e34-62b-96p not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardIFrame_import.yaml b/datadog/cassettes/TestAccDatadogDashboardIFrame_import.yaml new file mode 100644 index 000000000..0ec47bc7c --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardIFrame_import.yaml @@ -0,0 +1,536 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test IFrame Widget Dashboard","widgets":[{"definition":{"type":"iframe","url":"https://en.wikipedia.org/wiki/Datadog"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PmDXJXCpOnq24qtagNCLPTUoILSRgi3DGaXUca70kUEAM8DZBLYkwSVilYSYEHCG + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PmDXJXCpOnq24qtagNCLPTUoILSRgi3DGaXUca70kUEAM8DZBLYkwSVilYSYEHCG + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - JbIYRXbRMsAVaKGy+d2H1ud8Z295ghodOPi6eELPzhmBKrZI3+dlseyrUY1cqOAd + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:14 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - JEThRmJp6qTNp8pxXQqPpRD40l23OvSASz6GutTWG+aCw+n9cF/5KqfPSziGHWsU + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - +UwwYRc+A5vkEib2s1YY/+OMx26FxXkDPMnhrpaIz/kTVseyL62lC12FdLJrU3nv + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:16 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:16 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - SaHvyR/hQzhMjBxXmmuM76vwlwfocpgL0LhX3u6R0CFONYqUGm7Xe/7/HyTliTFX + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + 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":"vgc-zy7-54z","title":"Acceptance + Test IFrame Widget Dashboard","url":"/dashboard/vgc-zy7-54z/acceptance-test-iframe-widget-dashboard","created_at":"2020-06-18T13:33:11.940975+00:00","modified_at":"2020-06-18T13:33:11.940975+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"url":"https://en.wikipedia.org/wiki/Datadog","type":"iframe"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8664505643309927}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FGm8mbL/ixNS/zyX94m5xaWAxszhu9w68KL0QwTbLNqYgp2ZyX2W4rsoYLDoadr+ + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + method: DELETE + response: + body: '{"deleted_dashboard_id":"vgc-zy7-54z"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 13:33:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RbevWUvO2oQYYDnX/G1lndTh/kTt+ebFIvajU6/3Ivb5c6aUQf49/uD1ICaXyx52 + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/vgc-zy7-54z + method: GET + response: + body: '{"errors": ["Dashboard with ID vgc-zy7-54z not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 13:33:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637046" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardImage.yaml b/datadog/cassettes/TestAccDatadogDashboardImage.yaml new file mode 100644 index 000000000..94a86c741 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardImage.yaml @@ -0,0 +1,438 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Image Widget Dashboard","widgets":[{"definition":{"margin":"small","sizing":"fit","type":"image","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"bqf-yhm-m7h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/bqf-yhm-m7h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:21:58.330012+00:00","modified_at":"2020-06-18T15:21:58.330012+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1927865947606824}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:21:58 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:21:58 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wB7h0Rt2IYxDUBLtoJ4y0ZOq10ZaMdDZiRuFZ3d/FUUtC7gfBEZWTs0Y6dZhoLZS + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bqf-yhm-m7h + 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":"bqf-yhm-m7h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/bqf-yhm-m7h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:21:58.330012+00:00","modified_at":"2020-06-18T15:21:58.330012+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1927865947606824}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:21:58 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:21:58 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wB7h0Rt2IYxDUBLtoJ4y0ZOq10ZaMdDZiRuFZ3d/FUUtC7gfBEZWTs0Y6dZhoLZS + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bqf-yhm-m7h + 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":"bqf-yhm-m7h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/bqf-yhm-m7h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:21:58.330012+00:00","modified_at":"2020-06-18T15:21:58.330012+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1927865947606824}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:21:58 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:21:58 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 1bzfAqb/6TIngEeU7r7YcGGp2+NaI+ne9J3bzgQrdB0qTrgVrMtd4iKXr1zCNOHr + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bqf-yhm-m7h + 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":"bqf-yhm-m7h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/bqf-yhm-m7h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:21:58.330012+00:00","modified_at":"2020-06-18T15:21:58.330012+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1927865947606824}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:00 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:00 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bqf-yhm-m7h + 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":"bqf-yhm-m7h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/bqf-yhm-m7h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:21:58.330012+00:00","modified_at":"2020-06-18T15:21:58.330012+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1927865947606824}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:00 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:00 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - A5a5htKhTUF1FdBQZRUZl4RVawKwk2RUtaZz3EDBmdXc0X6i0O7TBEBWn4bIBQ01 + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bqf-yhm-m7h + 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":"bqf-yhm-m7h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/bqf-yhm-m7h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:21:58.330012+00:00","modified_at":"2020-06-18T15:21:58.330012+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1927865947606824}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:01 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:01 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Dpx7DG2N4VEOVm8I4W97n4HwOzBXFJSj1QrKca/nHpAZ6o7/LrJ0o2qyQx0XjNXl + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bqf-yhm-m7h + 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":"bqf-yhm-m7h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/bqf-yhm-m7h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:21:58.330012+00:00","modified_at":"2020-06-18T15:21:58.330012+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":1927865947606824}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:02 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:02 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - e8t0cvW5uVKXk1zUsTcAcDpqv28dgy+lCs/R2sCfbKW6stomFiq2a4ijzxRdPBn5 + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bqf-yhm-m7h + method: DELETE + response: + body: '{"deleted_dashboard_id":"bqf-yhm-m7h"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:03 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - fFk0sZgwwse+ZeEmqVGZPgcNG+SDXdM7Y74n6iOGuvoZenvaYEqZOvpOSMu1XDXx + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bqf-yhm-m7h + method: GET + response: + body: '{"errors": ["Dashboard with ID bqf-yhm-m7h not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardImage_import.yaml b/datadog/cassettes/TestAccDatadogDashboardImage_import.yaml new file mode 100644 index 000000000..5c141d4b9 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardImage_import.yaml @@ -0,0 +1,536 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Image Widget Dashboard","widgets":[{"definition":{"margin":"small","sizing":"fit","type":"image","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:16 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - zgs4/R8U39Dx88K274ycCG8gmotK2r1yjyecTfeITqBuGEc/zW9V1MMOyMl9URns + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wn01ZjXucAfzJfwvKAkpy0yFfNtHyWu4ZB2aA4ZDwwhXkyLHirYeUNsx208dZz9p + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wNaVyRyNliLxKeX4pqFHOJTBG1dRCwo1/ihrnAf0GXtGNGahc1XK8Xzj/ssA3R20 + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - JEThRmJp6qTNp8pxXQqPpRD40l23OvSASz6GutTWG+aCw+n9cF/5KqfPSziGHWsU + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - qQjtInIx1/QKXFlq6Yoz4D/caW/S2oJqgJl91CEEpXrlxRmYHcLgIFCRCvW61KAy + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - mGJe6qmS66N9ddKWdHwHEzQK9VHuaMNr7+EsVTKliCkGq+ayJZmadUyCSwID4him + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + 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":"2u7-euy-y6h","title":"Acceptance + Test Image Widget Dashboard","url":"/dashboard/2u7-euy-y6h/acceptance-test-image-widget-dashboard","created_at":"2020-06-18T15:22:17.033667+00:00","modified_at":"2020-06-18T15:22:17.033667+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://i.picsum.photos/id/826/200/300.jpg"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":7498730428139265}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - QpzDmIoaO5Hufx014PqM5BuLw+G9k75nLqy12TEr4Iab1Fl7hIFT5DrERoBer8OF + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + method: DELETE + response: + body: '{"deleted_dashboard_id":"2u7-euy-y6h"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:22:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - F11u7JCZTPrHz8VfzL5YeXThxcQSR6CdLGgk2tF52+EbYWhXciN8nv9vA8oQ9C9A + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2u7-euy-y6h + method: GET + response: + body: '{"errors": ["Dashboard with ID 2u7-euy-y6h not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:22:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637685" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardLogStream.yaml b/datadog/cassettes/TestAccDatadogDashboardLogStream.yaml new file mode 100644 index 000000000..e697fccb8 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardLogStream.yaml @@ -0,0 +1,452 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Log Stream Widget Dashboard","widgets":[{"definition":{"columns":["core_host","core_service"],"indexes":[],"logset":"","message_display":"expanded-md","query":"status:error env:prod","show_date_column":true,"show_message_column":true,"sort":{"column":"time","order":"desc"},"time":{"live_span":"1d"},"title":"Log Stream","title_align":"right","title_size":"16","type":"log_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"huq-b7h-cfu","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/huq-b7h-cfu/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:34.376055+00:00","modified_at":"2020-06-18T15:39:34.376055+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":731622683809556}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:34 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 3OCRM/4FZbkllI4iloi1acHDABD1SJi2aj2fysEPLLsOVOk5Ki6mi6IOsVG7JIay + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/huq-b7h-cfu + 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":"huq-b7h-cfu","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/huq-b7h-cfu/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:34.376055+00:00","modified_at":"2020-06-18T15:39:34.376055+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":731622683809556}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:34 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UlUHD7I7ISIp2OTIKJ1HGCksOU1snpAx2HtkPJw2SYzWMPmqzICEuimWl9Uiyokg + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/huq-b7h-cfu + 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":"huq-b7h-cfu","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/huq-b7h-cfu/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:34.376055+00:00","modified_at":"2020-06-18T15:39:34.376055+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":731622683809556}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:34 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aiFdvD+ESSGWQuLeXGShIAaySBrTSq6aZf+crfPnDVFrMRUU9f0HobLUCBopvakz + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/huq-b7h-cfu + 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":"huq-b7h-cfu","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/huq-b7h-cfu/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:34.376055+00:00","modified_at":"2020-06-18T15:39:34.376055+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":731622683809556}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - lyzq/AwBoYy31tqkvQ8mzBugAZOys447o2yCYdRfm1oPuJTtZy0Uz+ukzrgaZfIT + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/huq-b7h-cfu + 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":"huq-b7h-cfu","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/huq-b7h-cfu/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:34.376055+00:00","modified_at":"2020-06-18T15:39:34.376055+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":731622683809556}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Dpx7DG2N4VEOVm8I4W97n4HwOzBXFJSj1QrKca/nHpAZ6o7/LrJ0o2qyQx0XjNXl + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/huq-b7h-cfu + 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":"huq-b7h-cfu","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/huq-b7h-cfu/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:34.376055+00:00","modified_at":"2020-06-18T15:39:34.376055+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":731622683809556}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:37 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FAXIqEyJyWWDyUDKgR+Td75IkfWeu40aSEpg9NtrH84gUkIxi84nk9RHrJt3rVD3 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/huq-b7h-cfu + 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":"huq-b7h-cfu","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/huq-b7h-cfu/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:34.376055+00:00","modified_at":"2020-06-18T15:39:34.376055+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":731622683809556}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - pT9LlAdgAzlrCUxMXQkBRs/Qti76jKIHng1uB0/SctAaYjB4WqOgOZYpCbOMQKll + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/huq-b7h-cfu + method: DELETE + response: + body: '{"deleted_dashboard_id":"huq-b7h-cfu"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - CFSDBBie5Okt4N1oWVJNTAqpt778eCo7VQZ0NhVFWw8MHYFUwuA7DURhpFRYY+Wy + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/huq-b7h-cfu + method: GET + response: + body: '{"errors": ["Dashboard with ID huq-b7h-cfu not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardLogStream_import.yaml b/datadog/cassettes/TestAccDatadogDashboardLogStream_import.yaml new file mode 100644 index 000000000..803bca6e9 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardLogStream_import.yaml @@ -0,0 +1,554 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Log Stream Widget Dashboard","widgets":[{"definition":{"columns":["core_host","core_service"],"indexes":[],"logset":"","message_display":"expanded-md","query":"status:error env:prod","show_date_column":true,"show_message_column":true,"sort":{"column":"time","order":"desc"},"time":{"live_span":"1d"},"title":"Log Stream","title_align":"right","title_size":"16","type":"log_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:52 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - pNNj5PhODCVJlRBPEhZP3s9KL9kvFYv//TnGsiPp+3AqL7R5kIW2JlCWtfMcXeFn + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wi4QF3nhe5s0sRyfZvyTHLc/3mQu/jJVn8BZnev44SXt+VBNA1+haKi5VcNZFpaP + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:54 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:54 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:54 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:54 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - fqgAnnBv1js3TBerHAS1jOASlx3n1xB+hOOrFOLO2ZaBfZ3rktA3gzUaBetB5haL + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:55 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:55 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - QO3HutZQjgMDp/HqClcLon+qq5lEghb3LRV+gXMIQ2Jivd1m1eEGCh0RxplUQMIV + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:55 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:55 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - A5a5htKhTUF1FdBQZRUZl4RVawKwk2RUtaZz3EDBmdXc0X6i0O7TBEBWn4bIBQ01 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:56 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:56 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - F11u7JCZTPrHz8VfzL5YeXThxcQSR6CdLGgk2tF52+EbYWhXciN8nv9vA8oQ9C9A + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:56 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:56 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + 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":"yem-y5v-apr","title":"Acceptance + Test Log Stream Widget Dashboard","url":"/dashboard/yem-y5v-apr/acceptance-test-log-stream-widget-dashboard","created_at":"2020-06-18T15:39:52.933736+00:00","modified_at":"2020-06-18T15:39:52.933736+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"logset":"","sort":{"column":"time","order":"desc"},"show_message_column":true,"title_size":"16","title":"Log + Stream","title_align":"right","message_display":"expanded-md","indexes":[],"columns":["core_host","core_service"],"time":{"live_span":"1d"},"query":"status:error + env:prod","type":"log_stream","show_date_column":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3541637961693683}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:39:56 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:56 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + method: DELETE + response: + body: '{"deleted_dashboard_id":"yem-y5v-apr"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:40:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:39:57 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - yL2jMz/muX5URjcdpTHzlehf0qi0hyVxH7uShvIhWEeYrIRwdt0CU/7wzCTakK6N + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/yem-y5v-apr + method: GET + response: + body: '{"errors": ["Dashboard with ID yem-y5v-apr not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:40:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardManageStatus.yaml b/datadog/cassettes/TestAccDatadogDashboardManageStatus.yaml new file mode 100644 index 000000000..1fe952e39 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardManageStatus.yaml @@ -0,0 +1,445 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Manage Status Widget Dashboard","widgets":[{"definition":{"color_preference":"background","count":50,"display_format":"countsAndList","hide_zero_counts":true,"query":"env:prod group_status:alert","show_last_triggered":true,"sort":"triggered,desc","start":0,"summary_type":"combined","title_align":"center","title_size":"20","type":"manage_status"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"igv-ikc-xwk","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/igv-ikc-xwk/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:09.032160+00:00","modified_at":"2020-06-18T15:48:09.032160+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8573855593267572}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:08 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/igv-ikc-xwk + 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":"igv-ikc-xwk","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/igv-ikc-xwk/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:09.032160+00:00","modified_at":"2020-06-18T15:48:09.032160+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8573855593267572}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:09 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vQYgH+orCqhRbQG/mSd6IeQSqyYBCkFVCv4Bj6PXMALQcvTK5EvxQuH7fIz3d52m + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/igv-ikc-xwk + 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":"igv-ikc-xwk","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/igv-ikc-xwk/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:09.032160+00:00","modified_at":"2020-06-18T15:48:09.032160+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8573855593267572}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:09 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - L5yd3v29mZzDtdpTLB/OLdaP/nm856X8oKVK7IsHIbLmKRYkqq5Jv7+SBx/bs1VS + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/igv-ikc-xwk + 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":"igv-ikc-xwk","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/igv-ikc-xwk/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:09.032160+00:00","modified_at":"2020-06-18T15:48:09.032160+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8573855593267572}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - F11u7JCZTPrHz8VfzL5YeXThxcQSR6CdLGgk2tF52+EbYWhXciN8nv9vA8oQ9C9A + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/igv-ikc-xwk + 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":"igv-ikc-xwk","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/igv-ikc-xwk/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:09.032160+00:00","modified_at":"2020-06-18T15:48:09.032160+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8573855593267572}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:11 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - xNK8D8E4U1PyLMVOdDgzcc4izX6UzMbP9Ygv1jJl/dgpKsJQ0NHsqPPadJ+IsqEV + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/igv-ikc-xwk + 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":"igv-ikc-xwk","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/igv-ikc-xwk/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:09.032160+00:00","modified_at":"2020-06-18T15:48:09.032160+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8573855593267572}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/igv-ikc-xwk + 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":"igv-ikc-xwk","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/igv-ikc-xwk/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:09.032160+00:00","modified_at":"2020-06-18T15:48:09.032160+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8573855593267572}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 8jOW1djIgkdkj4STw+0pQ3G+kGKfu548DWINvnE6phacY0k9vgC3cU1LaI38XIYk + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/igv-ikc-xwk + method: DELETE + response: + body: '{"deleted_dashboard_id":"igv-ikc-xwk"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:26 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wFmrQbB6wLDPf1aNlKcgRoMicVhPlX6qIVwwvniX5cF7oyd+90s5trfE73Pzpvml + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/igv-ikc-xwk + method: GET + response: + body: '{"errors": ["Dashboard with ID igv-ikc-xwk not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardManageStatus_import.yaml b/datadog/cassettes/TestAccDatadogDashboardManageStatus_import.yaml new file mode 100644 index 000000000..13e2178c3 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardManageStatus_import.yaml @@ -0,0 +1,545 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Manage Status Widget Dashboard","widgets":[{"definition":{"color_preference":"background","count":50,"display_format":"countsAndList","hide_zero_counts":true,"query":"env:prod group_status:alert","show_last_triggered":true,"sort":"triggered,desc","start":0,"summary_type":"combined","title_align":"center","title_size":"20","type":"manage_status"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wFmrQbB6wLDPf1aNlKcgRoMicVhPlX6qIVwwvniX5cF7oyd+90s5trfE73Pzpvml + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - KKQq2SiaDLpychKSp47ffvU6SRxUV+VzBWr187ESkULBuGOI+kREfb/2NCy8DAWC + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - yqCkAb2Y8/4OgTSGYvedTl/k5gsPukDI7OLTlGSm9adIbRDVlGb00Ve5DDv9ImFD + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:32 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:32 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - CFSDBBie5Okt4N1oWVJNTAqpt778eCo7VQZ0NhVFWw8MHYFUwuA7DURhpFRYY+Wy + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + 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":"2j8-5yb-hak","title":"Acceptance + Test Manage Status Widget Dashboard","url":"/dashboard/2j8-5yb-hak/acceptance-test-manage-status-widget-dashboard","created_at":"2020-06-18T15:48:28.893150+00:00","modified_at":"2020-06-18T15:48:28.893150+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"count":50,"sort":"triggered,desc","title_size":"20","title_align":"center","hide_zero_counts":true,"start":0,"summary_type":"combined","color_preference":"background","query":"env:prod + group_status:alert","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":2436359305726770}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:32 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RbevWUvO2oQYYDnX/G1lndTh/kTt+ebFIvajU6/3Ivb5c6aUQf49/uD1ICaXyx52 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + method: DELETE + response: + body: '{"deleted_dashboard_id":"2j8-5yb-hak"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:47 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 15:48:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - HTCsbjwqQM0jTFHFq9ukWObBv4f/yxvHIxzrANPhzJkr6s3+rN5uCN3TcZuK2V2B + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/2j8-5yb-hak + method: GET + response: + body: '{"errors": ["Dashboard with ID 2j8-5yb-hak not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 15:48:47 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardNote.yaml b/datadog/cassettes/TestAccDatadogDashboardNote.yaml new file mode 100644 index 000000000..600ab5a37 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardNote.yaml @@ -0,0 +1,445 @@ +--- +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 Notes Widget Dashboard","widgets":[{"definition":{"background_color":"green","content":"This is a note widget","font_size":"18","show_tick":true,"text_align":"center","tick_edge":"bottom","tick_pos":"50%","type":"note"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"ixs-hqz-faq","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/ixs-hqz-faq/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:00.250267+00:00","modified_at":"2020-06-18T16:05:00.250267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":6845781486505937}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:00 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:00 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PKDIrz8Hcluof9oNzY3q1BouPTowe6nlZ4slm6KLsMEc/9DaK1hteKVCh6mza/IQ + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ixs-hqz-faq + 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":"ixs-hqz-faq","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/ixs-hqz-faq/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:00.250267+00:00","modified_at":"2020-06-18T16:05:00.250267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":6845781486505937}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:00 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:00 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ixs-hqz-faq + 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":"ixs-hqz-faq","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/ixs-hqz-faq/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:00.250267+00:00","modified_at":"2020-06-18T16:05:00.250267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":6845781486505937}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:00 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:00 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Lo9psmCk9egobltaxBGqrQFhgCcgUTQoFZpr2xiSR+6tucB/owychJvFjr9YMWzu + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ixs-hqz-faq + 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":"ixs-hqz-faq","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/ixs-hqz-faq/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:00.250267+00:00","modified_at":"2020-06-18T16:05:00.250267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":6845781486505937}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:02 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:02 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nSRgqrrNNmPPT6VSGZq0R9QdtdJF1qxzho2//eboP+tsIQDRgfSx3bSVb1t6QyYb + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ixs-hqz-faq + 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":"ixs-hqz-faq","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/ixs-hqz-faq/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:00.250267+00:00","modified_at":"2020-06-18T16:05:00.250267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":6845781486505937}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:02 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:02 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ixs-hqz-faq + 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":"ixs-hqz-faq","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/ixs-hqz-faq/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:00.250267+00:00","modified_at":"2020-06-18T16:05:00.250267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":6845781486505937}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:03 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:03 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - B/LXPck0nGNX0RSV/Gw7cnZ0oe92FUOfg1ec7WcU0kSvw/UBT+IXTFTD87Snvz2v + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ixs-hqz-faq + 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":"ixs-hqz-faq","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/ixs-hqz-faq/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:00.250267+00:00","modified_at":"2020-06-18T16:05:00.250267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":6845781486505937}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:04 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:04 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - HTCsbjwqQM0jTFHFq9ukWObBv4f/yxvHIxzrANPhzJkr6s3+rN5uCN3TcZuK2V2B + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ixs-hqz-faq + method: DELETE + response: + body: '{"deleted_dashboard_id":"ixs-hqz-faq"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - l+fZq7vW9gg1qInAzXkJZdt8f8e/094RDnN9pOEIlkXbx1jb6kpjgt1+syYCZyFC + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ixs-hqz-faq + method: GET + response: + body: '{"errors": ["Dashboard with ID ixs-hqz-faq not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardNote_import.yaml b/datadog/cassettes/TestAccDatadogDashboardNote_import.yaml new file mode 100644 index 000000000..ab658b2d5 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardNote_import.yaml @@ -0,0 +1,545 @@ +--- +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 Notes Widget Dashboard","widgets":[{"definition":{"background_color":"green","content":"This is a note widget","font_size":"18","show_tick":true,"text_align":"center","tick_edge":"bottom","tick_pos":"50%","type":"note"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - dPTJBBDv5jeY1gnH1FisDpda5Hi0boOGbsHxIOi4qkMt+QLOH7F7P7MeSr40vXZ0 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:22 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rxkz+JB0yzarEINDeNWQGs9dk7PLNAMnAw2wV8MNkZOhKDtz+JOpGuIyyBUaWwyF + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:22 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - hABsPq9DIvV7yAEiU7rMxs7UCRuTbRH/kYpwue4a0q9qmwd4SUh9bBZ5SHPkBLc6 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - yL2jMz/muX5URjcdpTHzlehf0qi0hyVxH7uShvIhWEeYrIRwdt0CU/7wzCTakK6N + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + 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":"bux-rjg-4ie","title":"Acceptance + Test Notes Widget Dashboard","url":"/dashboard/bux-rjg-4ie/acceptance-test-notes-widget-dashboard","created_at":"2020-06-18T16:05:20.541031+00:00","modified_at":"2020-06-18T16:05:20.541031+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"tick_pos":"50%","font_size":"18","type":"note","tick_edge":"bottom","text_align":"center","content":"This + is a note widget","show_tick":true,"background_color":"green"},"id":534510010460373}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aswcxBk1J00Iy18+kQFKF6EQfzLy4sWD4ILciesVMX5rWDYniffEYH6qbK0qwOgw + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + method: DELETE + response: + body: '{"deleted_dashboard_id":"bux-rjg-4ie"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:41 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:05:25 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - WyM4veckZw3QTGGZ+Ro8psXMR12RERTyuAWc4KNrn9Mfk0tQy+xf5Ofi04GlB+uh + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/bux-rjg-4ie + method: GET + response: + body: '{"errors": ["Dashboard with ID bux-rjg-4ie not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:05:41 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardQueryTable.yaml b/datadog/cassettes/TestAccDatadogDashboardQueryTable.yaml new file mode 100644 index 000000000..14fb5854f --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardQueryTable.yaml @@ -0,0 +1,466 @@ +--- +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 Query Table Widget Dashboard","widgets":[{"definition":{"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"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"nar-gun-bpi","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/nar-gun-bpi/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:37.497720+00:00","modified_at":"2020-06-18T16:17:37.497720+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":4542277072970655}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:37 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:37 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rK52fEhHKxisnKo2rembr3YValr4L+BG6/8tD9iNDc8Prg2mnV6DynBkS75++wh/ + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/nar-gun-bpi + 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":"nar-gun-bpi","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/nar-gun-bpi/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:37.497720+00:00","modified_at":"2020-06-18T16:17:37.497720+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":4542277072970655}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/nar-gun-bpi + 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":"nar-gun-bpi","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/nar-gun-bpi/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:37.497720+00:00","modified_at":"2020-06-18T16:17:37.497720+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":4542277072970655}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - j9H0Mt41m875GBjR2i9r831ZILGOU6+Jata5+JJkOQgIsO+SrMkmgWN80SCun0Sk + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/nar-gun-bpi + 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":"nar-gun-bpi","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/nar-gun-bpi/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:37.497720+00:00","modified_at":"2020-06-18T16:17:37.497720+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":4542277072970655}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IRAJ1mQ+c3epm0CLGtZoe/y8O4TCss3jYw+fwQOm7+eSKRCE+p3OtawVnIQ5ts76 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/nar-gun-bpi + 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":"nar-gun-bpi","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/nar-gun-bpi/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:37.497720+00:00","modified_at":"2020-06-18T16:17:37.497720+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":4542277072970655}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - e/PzE6y8JJ1tlF66uEI2h0RElcpoaXRe9TzYMeQVIADcqTHrHUqcUgRemfbYKGMv + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/nar-gun-bpi + 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":"nar-gun-bpi","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/nar-gun-bpi/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:37.497720+00:00","modified_at":"2020-06-18T16:17:37.497720+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":4542277072970655}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:42 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - QgRGXxkxV9A4PZPYRoesCGgupw+m7xaD1r9nbJHgAaPeprYV0FnzI0EYYO7x6f4+ + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/nar-gun-bpi + 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":"nar-gun-bpi","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/nar-gun-bpi/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:37.497720+00:00","modified_at":"2020-06-18T16:17:37.497720+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":4542277072970655}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:43 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:43 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - j0VNx9cZdAj+uuO7pabHlao4Ioc5q8ovvp4Ja/NYzbHA51zSBYXNvtO+8cOYbE0B + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/nar-gun-bpi + method: DELETE + response: + body: '{"deleted_dashboard_id":"nar-gun-bpi"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:56 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:44 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vlc9b/rJPByGsV/acj3ScS7B1lo9nEAbSgYCfkl0GH3egry4iXeiGBP0WX8DpJ/T + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/nar-gun-bpi + method: GET + response: + body: '{"errors": ["Dashboard with ID nar-gun-bpi not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:57 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.yaml b/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.yaml new file mode 100644 index 000000000..a19d54211 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardQueryTable_import.yaml @@ -0,0 +1,572 @@ +--- +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 Query Table Widget Dashboard","widgets":[{"definition":{"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"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:59 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:59 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 2qCkWfddHrPF9jSCADI+4oMJC7ye/JJPxREHTFHEFILURsabvi1w9B+PDmBrh/Xk + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:17:59 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:17:59 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - OxP+mFpjAbASiVhNf+t4MttAs95ZlMiGosIRnYJJGFoApNgv2oxtdzpnmNlMOki6 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:01 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:18:01 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vwiIwb5QepaQFIQrmPfIwwVWkQ/z0inFQwNEDjqDDy4v3CsF5qbv9dnyfb7UGzLf + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:01 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:18:01 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:03 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:18:03 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wFmrQbB6wLDPf1aNlKcgRoMicVhPlX6qIVwwvniX5cF7oyd+90s5trfE73Pzpvml + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:03 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:18:03 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:03 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:18:03 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:04 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:18:04 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - OdMYjD4Lcx2EOYJ2NSqLNRIyMqxNYyUQxCcT6zY9ZmZ+zl9yipXz0nuLjH5hVxTY + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + 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":"99z-ags-efu","title":"Acceptance + Test Query Table Widget Dashboard","url":"/dashboard/99z-ags-efu/acceptance-test-query-table-widget-dashboard","created_at":"2020-06-18T16:17:59.143943+00:00","modified_at":"2020-06-18T16:17:59.143943+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"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} + 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":7476454068124083}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:04 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:18:04 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wFmrQbB6wLDPf1aNlKcgRoMicVhPlX6qIVwwvniX5cF7oyd+90s5trfE73Pzpvml + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + method: DELETE + response: + body: '{"deleted_dashboard_id":"99z-ags-efu"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:18:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/99z-ags-efu + method: GET + response: + body: '{"errors": ["Dashboard with ID 99z-ags-efu not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:18:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardQueryValue.yaml b/datadog/cassettes/TestAccDatadogDashboardQueryValue.yaml new file mode 100644 index 000000000..85d23d77e --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardQueryValue.yaml @@ -0,0 +1,445 @@ +--- +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 Query Value Widget Dashboard","widgets":[{"definition":{"autoscale":true,"custom_unit":"Gib","precision":3,"requests":[{"aggregator":"max","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_red","value":9},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_green","value":9}],"q":"avg:system.mem.free{account:prod}"}],"time":{"live_span":"1h"},"title":"Avg of system.mem.free over account:prod","title_align":"center","title_size":"16","type":"query_value"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"7bb-65d-czw","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/7bb-65d-czw/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:06.620074+00:00","modified_at":"2020-06-17T13:08:06.620074+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":6939040386755739}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:06 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:06 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - bJj7D3RvHsKo+7eO3lrtPpPG0z8SsAwLw7bNfLb4htD+N9Ub8bD3AFgh45XaVsFM + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7bb-65d-czw + 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":"7bb-65d-czw","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/7bb-65d-czw/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:06.620074+00:00","modified_at":"2020-06-17T13:08:06.620074+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":6939040386755739}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:07 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:07 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - A5a5htKhTUF1FdBQZRUZl4RVawKwk2RUtaZz3EDBmdXc0X6i0O7TBEBWn4bIBQ01 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7bb-65d-czw + 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":"7bb-65d-czw","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/7bb-65d-czw/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:06.620074+00:00","modified_at":"2020-06-17T13:08:06.620074+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":6939040386755739}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:07 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:07 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - HIunaScoW4AWw8tnSbk8zc5V6c9XLV6++/KbgzaC4HIb212+evjUYL1yRLeLtS2T + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7bb-65d-czw + 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":"7bb-65d-czw","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/7bb-65d-czw/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:06.620074+00:00","modified_at":"2020-06-17T13:08:06.620074+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":6939040386755739}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:08 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:08 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7/pC7B9bYAY6HGz006Bg+ZrYGMZFiH1gxYQ0jMSpdzevd2r/Iy3Bkt2FGvLL5qId + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7bb-65d-czw + 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":"7bb-65d-czw","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/7bb-65d-czw/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:06.620074+00:00","modified_at":"2020-06-17T13:08:06.620074+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":6939040386755739}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:08 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:08 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - xDB9TwFteerR1wCiwj8/TgXRHM8VsESQxiCQvltAxyn4fse47E64CquSvdpyvFXM + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7bb-65d-czw + 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":"7bb-65d-czw","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/7bb-65d-czw/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:06.620074+00:00","modified_at":"2020-06-17T13:08:06.620074+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":6939040386755739}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - bZxgHnChon9vZm5xdRa4NrQAYSVWc7iQc54D228L4geTT/U2FwMh0nkSo8j+6vpL + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7bb-65d-czw + 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":"7bb-65d-czw","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/7bb-65d-czw/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:06.620074+00:00","modified_at":"2020-06-17T13:08:06.620074+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":6939040386755739}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7bb-65d-czw + method: DELETE + response: + body: '{"deleted_dashboard_id":"7bb-65d-czw"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:26 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IRAJ1mQ+c3epm0CLGtZoe/y8O4TCss3jYw+fwQOm7+eSKRCE+p3OtawVnIQ5ts76 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/7bb-65d-czw + method: GET + response: + body: '{"errors": ["Dashboard with ID 7bb-65d-czw not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:26 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardQueryValue_import.yaml b/datadog/cassettes/TestAccDatadogDashboardQueryValue_import.yaml new file mode 100644 index 000000000..c863ea5dd --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardQueryValue_import.yaml @@ -0,0 +1,545 @@ +--- +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 Query Value Widget Dashboard","widgets":[{"definition":{"autoscale":true,"custom_unit":"Gib","precision":3,"requests":[{"aggregator":"max","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_red","value":9},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_green","value":9}],"q":"avg:system.mem.free{account:prod}"}],"time":{"live_span":"1h"},"title":"Avg of system.mem.free over account:prod","title_align":"center","title_size":"16","type":"query_value"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - SaHvyR/hQzhMjBxXmmuM76vwlwfocpgL0LhX3u6R0CFONYqUGm7Xe/7/HyTliTFX + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - YKF8+1vTI0wiWlB3VWhiMVnZ1RLtV3h2yAW6/TGe9qIMWdYXxsNpy3J4QxfrJoDD + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - l+fZq7vW9gg1qInAzXkJZdt8f8e/094RDnN9pOEIlkXbx1jb6kpjgt1+syYCZyFC + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 3GTZ6ImnvkiMOuKTP2ILv/2CbQJLb5wTjyX1KOTCD/aaxDS+HyYye1EH1uVK9Ajh + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:32 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + 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":"ja6-hvc-xwt","title":"Acceptance + Test Query Value Widget Dashboard","url":"/dashboard/ja6-hvc-xwt/acceptance-test-query-value-widget-dashboard","created_at":"2020-06-17T13:08:28.522738+00:00","modified_at":"2020-06-17T13:08:28.522738+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"autoscale":true,"title":"Avg + of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8426666424191771}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:32 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - ns395qtajdi4vImLC5PhByq3vzX3KV9r4kOaLqZ3Kb42AGxxpM06vNzB/Pdubr1b + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + method: DELETE + response: + body: '{"deleted_dashboard_id":"ja6-hvc-xwt"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:44 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:08:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - fGPsEOteKPqWrypJlOWIRpMZD2l0VjpTiFY5o5e56+jFb+ShdPzcenDH6s8Ah62s + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/ja6-hvc-xwt + method: GET + response: + body: '{"errors": ["Dashboard with ID ja6-hvc-xwt not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:08:44 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardSLO.yaml b/datadog/cassettes/TestAccDatadogDashboardSLO.yaml new file mode 100644 index 000000000..4ea9e1485 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardSLO.yaml @@ -0,0 +1,438 @@ +--- +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 SLO Widget Dashboard","widgets":[{"definition":{"show_error_budget":true,"slo_id":"b4c7739b2af25f9d947f828730357832","time_windows":["90d","previous_week","month_to_date"],"title_align":"center","title_size":"16","type":"slo","view_mode":"both","view_type":"detail"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"cfd-pc4-73q","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/cfd-pc4-73q/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:05.637360+00:00","modified_at":"2020-06-18T16:49:05.637360+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":5881760307334474}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:05 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - zgs4/R8U39Dx88K274ycCG8gmotK2r1yjyecTfeITqBuGEc/zW9V1MMOyMl9URns + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cfd-pc4-73q + 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":"cfd-pc4-73q","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/cfd-pc4-73q/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:05.637360+00:00","modified_at":"2020-06-18T16:49:05.637360+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":5881760307334474}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:05 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cfd-pc4-73q + 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":"cfd-pc4-73q","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/cfd-pc4-73q/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:05.637360+00:00","modified_at":"2020-06-18T16:49:05.637360+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":5881760307334474}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:06 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:06 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - i90G6k4M6qI4UypyvMoczcO5m+jatiEQSMeHpdjycp0h4nWxRpKUHr6efynkbQs+ + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cfd-pc4-73q + 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":"cfd-pc4-73q","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/cfd-pc4-73q/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:05.637360+00:00","modified_at":"2020-06-18T16:49:05.637360+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":5881760307334474}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:07 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:07 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cfd-pc4-73q + 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":"cfd-pc4-73q","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/cfd-pc4-73q/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:05.637360+00:00","modified_at":"2020-06-18T16:49:05.637360+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":5881760307334474}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:07 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:07 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cfd-pc4-73q + 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":"cfd-pc4-73q","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/cfd-pc4-73q/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:05.637360+00:00","modified_at":"2020-06-18T16:49:05.637360+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":5881760307334474}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:09 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - +6muH0vWWhHE6JfE/xHkdpoFSNgX/+wCvqEMuEDvglDKir3htwvCDYdHi0bPaPF0 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cfd-pc4-73q + 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":"cfd-pc4-73q","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/cfd-pc4-73q/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:05.637360+00:00","modified_at":"2020-06-18T16:49:05.637360+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":5881760307334474}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - sAPKocoLMDEnM5qY2PL6SCQ+dkENYAR/6IistAQ5iiTU/UnJHAba158nxOvVRvKJ + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cfd-pc4-73q + method: DELETE + response: + body: '{"deleted_dashboard_id":"cfd-pc4-73q"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:11 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - OGWvqyuIWnbl6WkXpkkRXBvKLURJhdDx+xXZ6vxnnyjZzYdefkAlNGOfG85GcOUu + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/cfd-pc4-73q + method: GET + response: + body: '{"errors": ["Dashboard with ID cfd-pc4-73q not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardSLO_import.yaml b/datadog/cassettes/TestAccDatadogDashboardSLO_import.yaml new file mode 100644 index 000000000..9a1544c5d --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardSLO_import.yaml @@ -0,0 +1,536 @@ +--- +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 SLO Widget Dashboard","widgets":[{"definition":{"show_error_budget":true,"slo_id":"b4c7739b2af25f9d947f828730357832","time_windows":["90d","previous_week","month_to_date"],"title_align":"center","title_size":"16","type":"slo","view_mode":"both","view_type":"detail"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:26 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:26 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:27 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - fqgAnnBv1js3TBerHAS1jOASlx3n1xB+hOOrFOLO2ZaBfZ3rktA3gzUaBetB5haL + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nL/U8Nu7782wU68M7elx8MY/T+2opB0U5/flvjGsH/qXfYEORYWxwdDpQFq78Mxt + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nfUJgEhoI/RZ8GJVApSQj6s2TfLYXQ1qvePMFw8ZmKB2iBVwiNegJAc5RNY4ZZbI + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + 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":"v3p-8hn-nug","title":"Acceptance + Test SLO Widget Dashboard","url":"/dashboard/v3p-8hn-nug/acceptance-test-slo-widget-dashboard","created_at":"2020-06-18T16:49:26.836435+00:00","modified_at":"2020-06-18T16:49:26.836435+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"time_windows":["90d","previous_week","month_to_date"],"title_size":"16","show_error_budget":true,"view_type":"detail","title_align":"center","slo_id":"b4c7739b2af25f9d947f828730357832","view_mode":"both","type":"slo"},"id":1974174155874888}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 9KqlMq3gTLpkJSVJyvAwXe8+x8jjzLiadKiJ+urXt2iPIG7RDD8GegNJYYpRqZOo + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + method: DELETE + response: + body: '{"deleted_dashboard_id":"v3p-8hn-nug"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:49:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - LOVPYRkvxiVgJlSU7tTR5QW5I3IByFfoP5oRWZk6jukYFQiYGeCZXWoo6PiPBzrK + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/v3p-8hn-nug + method: GET + response: + body: '{"errors": ["Dashboard with ID v3p-8hn-nug not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:49:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardScatterplot.yaml b/datadog/cassettes/TestAccDatadogDashboardScatterplot.yaml new file mode 100644 index 000000000..bd6c2248a --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardScatterplot.yaml @@ -0,0 +1,473 @@ +--- +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 Scatterplot Widget Dashboard","widgets":[{"definition":{"color_by_groups":["app"],"requests":{"x":{"aggregator":"avg","q":"avg:system.cpu.user{account:prod} by {service, team, app}"},"y":{"aggregator":"avg","q":"avg:system.mem.used{env:prod} by {service, team, app}"}},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","title_align":"right","title_size":"16","type":"scatterplot","xaxis":{"include_zero":false,"label":"cpu (%)","max":"100","min":"0","scale":"log"},"yaxis":{"include_zero":false,"label":"mem (Gib)","min":"1","scale":"log"}}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"9kx-qg7-8te","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/9kx-qg7-8te/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:10.036346+00:00","modified_at":"2020-06-18T16:33:10.036346+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":3216888802719822}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:09 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aiFdvD+ESSGWQuLeXGShIAaySBrTSq6aZf+crfPnDVFrMRUU9f0HobLUCBopvakz + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/9kx-qg7-8te + 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":"9kx-qg7-8te","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/9kx-qg7-8te/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:10.036346+00:00","modified_at":"2020-06-18T16:33:10.036346+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":3216888802719822}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/9kx-qg7-8te + 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":"9kx-qg7-8te","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/9kx-qg7-8te/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:10.036346+00:00","modified_at":"2020-06-18T16:33:10.036346+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":3216888802719822}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PKDIrz8Hcluof9oNzY3q1BouPTowe6nlZ4slm6KLsMEc/9DaK1hteKVCh6mza/IQ + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/9kx-qg7-8te + 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":"9kx-qg7-8te","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/9kx-qg7-8te/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:10.036346+00:00","modified_at":"2020-06-18T16:33:10.036346+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":3216888802719822}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/9kx-qg7-8te + 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":"9kx-qg7-8te","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/9kx-qg7-8te/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:10.036346+00:00","modified_at":"2020-06-18T16:33:10.036346+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":3216888802719822}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BQaWiIhDCyK3JbvyPZudxtMuoedbvOKE6tb5GJMfo6GT4EOQ8qx9lqgA4UCxp88q + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/9kx-qg7-8te + 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":"9kx-qg7-8te","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/9kx-qg7-8te/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:10.036346+00:00","modified_at":"2020-06-18T16:33:10.036346+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":3216888802719822}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:14 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/9kx-qg7-8te + 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":"9kx-qg7-8te","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/9kx-qg7-8te/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:10.036346+00:00","modified_at":"2020-06-18T16:33:10.036346+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":3216888802719822}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:14 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/9kx-qg7-8te + method: DELETE + response: + body: '{"deleted_dashboard_id":"9kx-qg7-8te"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:16 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 3GTZ6ImnvkiMOuKTP2ILv/2CbQJLb5wTjyX1KOTCD/aaxDS+HyYye1EH1uVK9Ajh + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/9kx-qg7-8te + method: GET + response: + body: '{"errors": ["Dashboard with ID 9kx-qg7-8te not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardScatterplot_import.yaml b/datadog/cassettes/TestAccDatadogDashboardScatterplot_import.yaml new file mode 100644 index 000000000..9beec56de --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardScatterplot_import.yaml @@ -0,0 +1,581 @@ +--- +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 Scatterplot Widget Dashboard","widgets":[{"definition":{"color_by_groups":["app"],"requests":{"x":{"aggregator":"avg","q":"avg:system.cpu.user{account:prod} by {service, team, app}"},"y":{"aggregator":"avg","q":"avg:system.mem.used{env:prod} by {service, team, app}"}},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","title_align":"right","title_size":"16","type":"scatterplot","xaxis":{"include_zero":false,"label":"cpu (%)","max":"100","min":"0","scale":"log"},"yaxis":{"include_zero":false,"label":"mem (Gib)","min":"1","scale":"log"}}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PKDIrz8Hcluof9oNzY3q1BouPTowe6nlZ4slm6KLsMEc/9DaK1hteKVCh6mza/IQ + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Dpx7DG2N4VEOVm8I4W97n4HwOzBXFJSj1QrKca/nHpAZ6o7/LrJ0o2qyQx0XjNXl + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - mIWJPPM06xs5rSGFgggpdD5UbOnt6ntntAO8/8YDsVuXnSmp/k0aZ5dEUtAKB7Td + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:32 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - oiF9oLqSEnBWpAh9z89c+Ruy9xKAqrdZzQPjGsNOxlGQNWaw3sCTSoKaMkMdPunL + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:32 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:32 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 8jOW1djIgkdkj4STw+0pQ3G+kGKfu548DWINvnE6phacY0k9vgC3cU1LaI38XIYk + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PKDIrz8Hcluof9oNzY3q1BouPTowe6nlZ4slm6KLsMEc/9DaK1hteKVCh6mza/IQ + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + 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":"82s-feh-d2p","title":"Acceptance + Test Scatterplot Widget Dashboard","url":"/dashboard/82s-feh-d2p/acceptance-test-scatterplot-widget-dashboard","created_at":"2020-06-18T16:33:29.417628+00:00","modified_at":"2020-06-18T16:33:29.417628+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem + (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu + (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user + by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} + by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} + by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7998284309082179}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:34 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - x4m73yTAj65OpCjnvpw3RBJyiFQpkDOBZ7rE/UM6Q4o0837nUb4ZsWFNJUD0Xh0e + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + method: DELETE + response: + body: '{"deleted_dashboard_id":"82s-feh-d2p"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:45 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 16:33:35 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - +6muH0vWWhHE6JfE/xHkdpoFSNgX/+wCvqEMuEDvglDKir3htwvCDYdHi0bPaPF0 + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/82s-feh-d2p + method: GET + response: + body: '{"errors": ["Dashboard with ID 82s-feh-d2p not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 16:33:46 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2637722" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardTimeseries.yaml b/datadog/cassettes/TestAccDatadogDashboardTimeseries.yaml new file mode 100644 index 000000000..c269fb799 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardTimeseries.yaml @@ -0,0 +1,466 @@ +--- +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 Timeseries Widget Dashboard","widgets":[{"definition":{"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","q":"avg:system.cpu.user{env:prod} by {app}","style":{"line_type":"solid","line_width":"thin","palette":"dog_classic"}},{"display_type":"line","log_query":{"compute":{"aggregation":"count"},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","search":{"query":""}},"style":{"line_type":"solid","line_width":"normal","palette":"cool"}},{"apm_query":{"compute":{"aggregation":"cardinality","facet":"env","interval":1000},"group_by":[{"facet":"status","limit":10,"sort":{"aggregation":"cardinality","facet":"env","order":"desc"}}],"index":"trace-search","search":{"query":""}},"display_type":"line","style":{"line_type":"dashed","line_width":"thick","palette":"warm"}},{"display_type":"line","process_query":{"filter_by":["account:prod"],"limit":10,"metric":"process.stat.cpu.total_pct.norm"},"style":{"line_type":"solid","line_width":"normal","palette":"purple"}}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"6tj-u2h-f43","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/6tj-u2h-f43/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:26.185994+00:00","modified_at":"2020-06-17T13:06:26.185994+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2879278805769292}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:26 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:26 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 6TICFxDFBNq65Lw6aA0hO1z7nxUSiTzUAT0k7ln4UasEU6/emXomwtYWMJdIuxUV + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/6tj-u2h-f43 + 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":"6tj-u2h-f43","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/6tj-u2h-f43/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:26.185994+00:00","modified_at":"2020-06-17T13:06:26.185994+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2879278805769292}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:26 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:26 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - CFSDBBie5Okt4N1oWVJNTAqpt778eCo7VQZ0NhVFWw8MHYFUwuA7DURhpFRYY+Wy + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/6tj-u2h-f43 + 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":"6tj-u2h-f43","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/6tj-u2h-f43/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:26.185994+00:00","modified_at":"2020-06-17T13:06:26.185994+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2879278805769292}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:26 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:26 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - A5a5htKhTUF1FdBQZRUZl4RVawKwk2RUtaZz3EDBmdXc0X6i0O7TBEBWn4bIBQ01 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/6tj-u2h-f43 + 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":"6tj-u2h-f43","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/6tj-u2h-f43/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:26.185994+00:00","modified_at":"2020-06-17T13:06:26.185994+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2879278805769292}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - MZCX71FNdAUQ6AMWRBKW1fkNpiPTypOoXE57zLYE3lG5gigqB2nroYJ/8uMn9muy + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/6tj-u2h-f43 + 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":"6tj-u2h-f43","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/6tj-u2h-f43/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:26.185994+00:00","modified_at":"2020-06-17T13:06:26.185994+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2879278805769292}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - tp1qdVxoUmtlsVp6hgBWraWfL5vEbA116VZkaWKWIZtgPr5Ima8zysCBv+o2WoZ/ + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/6tj-u2h-f43 + 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":"6tj-u2h-f43","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/6tj-u2h-f43/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:26.185994+00:00","modified_at":"2020-06-17T13:06:26.185994+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2879278805769292}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - vYQu3ls2HKdZ2pXErBiwg/FlJyuK31hjiI+oJSqoEPPw/7mzimb2FzvWEsshbznY + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/6tj-u2h-f43 + 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":"6tj-u2h-f43","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/6tj-u2h-f43/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:26.185994+00:00","modified_at":"2020-06-17T13:06:26.185994+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2879278805769292}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/6tj-u2h-f43 + method: DELETE + response: + body: '{"deleted_dashboard_id":"6tj-u2h-f43"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:45 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - fqgAnnBv1js3TBerHAS1jOASlx3n1xB+hOOrFOLO2ZaBfZ3rktA3gzUaBetB5haL + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/6tj-u2h-f43 + method: GET + response: + body: '{"errors": ["Dashboard with ID 6tj-u2h-f43 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:45 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardTimeseries_import.yaml b/datadog/cassettes/TestAccDatadogDashboardTimeseries_import.yaml new file mode 100644 index 000000000..66e0c7b1e --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardTimeseries_import.yaml @@ -0,0 +1,572 @@ +--- +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 Timeseries Widget Dashboard","widgets":[{"definition":{"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","q":"avg:system.cpu.user{env:prod} by {app}","style":{"line_type":"solid","line_width":"thin","palette":"dog_classic"}},{"display_type":"line","log_query":{"compute":{"aggregation":"count"},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","search":{"query":""}},"style":{"line_type":"solid","line_width":"normal","palette":"cool"}},{"apm_query":{"compute":{"aggregation":"cardinality","facet":"env","interval":1000},"group_by":[{"facet":"status","limit":10,"sort":{"aggregation":"cardinality","facet":"env","order":"desc"}}],"index":"trace-search","search":{"query":""}},"display_type":"line","style":{"line_type":"dashed","line_width":"thick","palette":"warm"}},{"display_type":"line","process_query":{"filter_by":["account:prod"],"limit":10,"metric":"process.stat.cpu.total_pct.norm"},"style":{"line_type":"solid","line_width":"normal","palette":"purple"}}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:47 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:47 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:47 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:47 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - F2g1vP9i37Cj4rH5vEufbSNzCmriMTDVzKKqVk/JOUesbIz8psR3R2945wO0PbTf + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:49 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:49 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DAk/CQntZmry+u4cYsuVOELuKFo1I3NzKRNwPlY9WvlbH+rffk5VylB8tKDaSRWP + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:49 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:49 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:50 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FAXIqEyJyWWDyUDKgR+Td75IkfWeu40aSEpg9NtrH84gUkIxi84nk9RHrJt3rVD3 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:51 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:51 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - xNK8D8E4U1PyLMVOdDgzcc4izX6UzMbP9Ygv1jJl/dgpKsJQ0NHsqPPadJ+IsqEV + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:52 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - kg+/Cls6zaJcT2blJLlU62BwgGePGdpqSwWrJ0xEIvzmSMWHXxGNsiyEzBPJ1a96 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + 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":"xgs-b83-627","title":"Acceptance + Test Timeseries Widget Dashboard","url":"/dashboard/xgs-b83-627/acceptance-test-timeseries-widget-dashboard","created_at":"2020-06-17T13:06:47.375719+00:00","modified_at":"2020-06-17T13:06:47.375719+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","markers":[{"display_type":"error + dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"events":[{"q":"sources:test + tags:1","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, + env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{env:prod} + by {app}","style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line"},{"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct.norm","limit":10,"filter_by":["account:prod"]},"display_type":"line"}]},"id":2906117858860646}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:06:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - J5PL0LnJukdy69mckjXi3cjye/YJX2hkoCBkqKQi+tYjrsXYELx6DfDD11fhyjYF + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + method: DELETE + response: + body: '{"deleted_dashboard_id":"xgs-b83-627"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:07:07 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 24-Jun-2020 13:06:55 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RbevWUvO2oQYYDnX/G1lndTh/kTt+ebFIvajU6/3Ivb5c6aUQf49/uD1ICaXyx52 + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/xgs-b83-627 + method: GET + response: + body: '{"errors": ["Dashboard with ID xgs-b83-627 not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Wed, 17 Jun 2020 13:07:08 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2631588" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardTopList.yaml b/datadog/cassettes/TestAccDatadogDashboardTopList.yaml new file mode 100644 index 000000000..00e6d9e90 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardTopList.yaml @@ -0,0 +1,452 @@ +--- +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 Top List Widget Dashboard","widgets":[{"definition":{"requests":[{"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":15000}],"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')"}],"time":{"live_span":"1w"},"title":"Avg of system.core.user over account:prod by service,app","title_align":"right","title_size":"16","type":"toplist"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"46a-gyx-24e","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/46a-gyx-24e/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:15.536674+00:00","modified_at":"2020-06-18T17:01:15.536674+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2695352986707776}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/46a-gyx-24e + 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":"46a-gyx-24e","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/46a-gyx-24e/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:15.536674+00:00","modified_at":"2020-06-18T17:01:15.536674+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2695352986707776}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wts7Rn21w0qW4rqYtxheVW/4xeY9Y3ARkRMnLeq6etar4hXLqkvskJXcsIyQxYKB + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/46a-gyx-24e + 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":"46a-gyx-24e","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/46a-gyx-24e/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:15.536674+00:00","modified_at":"2020-06-18T17:01:15.536674+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2695352986707776}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:16 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:16 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/46a-gyx-24e + 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":"46a-gyx-24e","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/46a-gyx-24e/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:15.536674+00:00","modified_at":"2020-06-18T17:01:15.536674+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2695352986707776}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - bZxgHnChon9vZm5xdRa4NrQAYSVWc7iQc54D228L4geTT/U2FwMh0nkSo8j+6vpL + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/46a-gyx-24e + 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":"46a-gyx-24e","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/46a-gyx-24e/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:15.536674+00:00","modified_at":"2020-06-18T17:01:15.536674+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2695352986707776}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - yqCkAb2Y8/4OgTSGYvedTl/k5gsPukDI7OLTlGSm9adIbRDVlGb00Ve5DDv9ImFD + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/46a-gyx-24e + 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":"46a-gyx-24e","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/46a-gyx-24e/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:15.536674+00:00","modified_at":"2020-06-18T17:01:15.536674+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2695352986707776}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UlUHD7I7ISIp2OTIKJ1HGCksOU1snpAx2HtkPJw2SYzWMPmqzICEuimWl9Uiyokg + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/46a-gyx-24e + 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":"46a-gyx-24e","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/46a-gyx-24e/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:15.536674+00:00","modified_at":"2020-06-18T17:01:15.536674+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2695352986707776}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IkXBg4ZNMRmDsobzMjEa2v35+NuPiQI0gFmho/o6e7+hfyyJl3rjuklsE4uVJo7l + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/46a-gyx-24e + method: DELETE + response: + body: '{"deleted_dashboard_id":"46a-gyx-24e"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/46a-gyx-24e + method: GET + response: + body: '{"errors": ["Dashboard with ID 46a-gyx-24e not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardTopList_import.yaml b/datadog/cassettes/TestAccDatadogDashboardTopList_import.yaml new file mode 100644 index 000000000..72aee6421 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardTopList_import.yaml @@ -0,0 +1,554 @@ +--- +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 Top List Widget Dashboard","widgets":[{"definition":{"requests":[{"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":15000}],"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')"}],"time":{"live_span":"1w"},"title":"Avg of system.core.user over account:prod by service,app","title_align":"right","title_size":"16","type":"toplist"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:36 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:36 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aq7EAvMMXGdldXT5eVhOcqdveqp5VDY6MoO0A/xKTuSa7v4Cc6HWT9iWUnYD+m1F + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:37 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:37 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DNJM9d0LaQZJbuEjasKEmgCwDoiLnJW9mPQJm+yWIlQRbFhX4Vzx4uuDCt38dWhb + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - oiF9oLqSEnBWpAh9z89c+Ruy9xKAqrdZzQPjGsNOxlGQNWaw3sCTSoKaMkMdPunL + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - gVnECQ7ifaEfJ6BNPsXSglLjlU41ay4U8jXHC6V3+oC4U6gHkBb20H5zrSJj1zee + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Dpx7DG2N4VEOVm8I4W97n4HwOzBXFJSj1QrKca/nHpAZ6o7/LrJ0o2qyQx0XjNXl + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:40 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:40 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:41 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:41 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FGm8mbL/ixNS/zyX94m5xaWAxszhu9w68KL0QwTbLNqYgp2ZyX2W4rsoYLDoadr+ + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:41 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:41 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - om1XnEWhly2whLIXwLO+fkzEb2L84pNIroGZK2fiMqRbZbwaEjag1Efr2qx8JGrD + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + 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":"b9c-rjn-k7x","title":"Acceptance + Test Top List Widget Dashboard","url":"/dashboard/b9c-rjn-k7x/acceptance-test-top-list-widget-dashboard","created_at":"2020-06-18T17:01:36.866797+00:00","modified_at":"2020-06-18T17:01:36.866797+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Avg + of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} + by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":3869038838688208}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:42 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + method: DELETE + response: + body: '{"deleted_dashboard_id":"b9c-rjn-k7x"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:57 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:01:43 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/b9c-rjn-k7x + method: GET + response: + body: '{"errors": ["Dashboard with ID b9c-rjn-k7x not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:01:57 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardTraceService.yaml b/datadog/cassettes/TestAccDatadogDashboardTraceService.yaml new file mode 100644 index 000000000..a4c3170d2 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardTraceService.yaml @@ -0,0 +1,445 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Trace Service Widget Dashboard","widgets":[{"definition":{"display_format":"three_column","env":"datadoghq.com","service":"postgres","show_breakdown":true,"show_distribution":true,"show_errors":true,"show_hits":true,"show_latency":true,"show_resource_list":true,"size_format":"large","span_name":"postgres.connection.rollback","time":{"live_span":"30m"},"title":"postgres #env:datadoghq.com","title_align":"center","title_size":"16","type":"trace_service"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"c4f-gy3-4ie","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/c4f-gy3-4ie/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:10.273535+00:00","modified_at":"2020-06-18T17:13:10.273535+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8794797626103245}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - cQFL4MaIw90DmTTH7z4Gqhr8PBtz47vyzddN9k7nXjUK2yrLiBjbdIgydUT8r1ut + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/c4f-gy3-4ie + 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":"c4f-gy3-4ie","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/c4f-gy3-4ie/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:10.273535+00:00","modified_at":"2020-06-18T17:13:10.273535+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8794797626103245}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - XrVF9iGOfdATIczLJsCTqr1ORVJWAydZm12oLZRyDN+lGe5bU8VekbcSMjJ2fj90 + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/c4f-gy3-4ie + 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":"c4f-gy3-4ie","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/c4f-gy3-4ie/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:10.273535+00:00","modified_at":"2020-06-18T17:13:10.273535+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8794797626103245}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UH1aMdrlnlnaxy/K+HUi5QUN2T0FBtGPSUC8sLrviqCK1XXfgHsSO5DneAd5J+6F + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/c4f-gy3-4ie + 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":"c4f-gy3-4ie","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/c4f-gy3-4ie/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:10.273535+00:00","modified_at":"2020-06-18T17:13:10.273535+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8794797626103245}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/c4f-gy3-4ie + 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":"c4f-gy3-4ie","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/c4f-gy3-4ie/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:10.273535+00:00","modified_at":"2020-06-18T17:13:10.273535+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8794797626103245}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - CPK+34LtKdL5YYX/NFOJUdMpxMoO80HISGpGpzDG5fENYSoZ2QNw1gEubOsJ9JNb + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/c4f-gy3-4ie + 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":"c4f-gy3-4ie","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/c4f-gy3-4ie/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:10.273535+00:00","modified_at":"2020-06-18T17:13:10.273535+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8794797626103245}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FB5oGxuL9E/cplxahdQnU5Nw5E7KX0Smq18it9qYKIt8BXsSloE0IpDRA39tfQwn + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/c4f-gy3-4ie + 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":"c4f-gy3-4ie","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/c4f-gy3-4ie/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:10.273535+00:00","modified_at":"2020-06-18T17:13:10.273535+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8794797626103245}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:14 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:14 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - J7vOWsxZd7Grxzg2TIaQpn2nGjrOScgI4Kwzur8V2oOTYInX6xbVT4leinNkGLPk + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/c4f-gy3-4ie + method: DELETE + response: + body: '{"deleted_dashboard_id":"c4f-gy3-4ie"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Wn01ZjXucAfzJfwvKAkpy0yFfNtHyWu4ZB2aA4ZDwwhXkyLHirYeUNsx208dZz9p + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/c4f-gy3-4ie + method: GET + response: + body: '{"errors": ["Dashboard with ID c4f-gy3-4ie not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:26 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboardTraceService_import.yaml b/datadog/cassettes/TestAccDatadogDashboardTraceService_import.yaml new file mode 100644 index 000000000..b05d9586c --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboardTraceService_import.yaml @@ -0,0 +1,545 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"Acceptance Test Trace Service Widget Dashboard","widgets":[{"definition":{"display_format":"three_column","env":"datadoghq.com","service":"postgres","show_breakdown":true,"show_distribution":true,"show_errors":true,"show_hits":true,"show_latency":true,"show_resource_list":true,"size_format":"large","span_name":"postgres.connection.rollback","time":{"live_span":"30m"},"title":"postgres #env:datadoghq.com","title_align":"center","title_size":"16","type":"trace_service"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:27 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UH1aMdrlnlnaxy/K+HUi5QUN2T0FBtGPSUC8sLrviqCK1XXfgHsSO5DneAd5J+6F + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - J5PL0LnJukdy69mckjXi3cjye/YJX2hkoCBkqKQi+tYjrsXYELx6DfDD11fhyjYF + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - pxuY3ZnSwE+rCP/MLubWk3EuAMlxxciIsQ2EBSRxZafCu9H4+UEVULDCm144bb3W + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - l+fZq7vW9gg1qInAzXkJZdt8f8e/094RDnN9pOEIlkXbx1jb6kpjgt1+syYCZyFC + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + 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":"92b-apq-6bf","title":"Acceptance + Test Trace Service Widget Dashboard","url":"/dashboard/92b-apq-6bf/acceptance-test-trace-service-widget-dashboard","created_at":"2020-06-18T17:13:27.968041+00:00","modified_at":"2020-06-18T17:13:27.968041+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"span_name":"postgres.connection.rollback","title_size":"16","service":"postgres","title":"postgres + #env:datadoghq.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datadoghq.com","time":{"live_span":"30m"},"show_distribution":true,"display_format":"three_column","show_latency":true,"show_resource_list":true},"layout":{"y":5,"width":32,"x":5,"height":43},"id":6535042992749740}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + method: DELETE + response: + body: '{"deleted_dashboard_id":"92b-apq-6bf"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:43 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:13:32 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aiFdvD+ESSGWQuLeXGShIAaySBrTSq6aZf+crfPnDVFrMRUU9f0HobLUCBopvakz + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/92b-apq-6bf + method: GET + response: + body: '{"errors": ["Dashboard with ID 92b-apq-6bf not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:13:44 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2638271" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogDashboard_import.yaml b/datadog/cassettes/TestAccDatadogDashboard_import.yaml index 5c5e3a632..6063b9355 100644 --- a/datadog/cassettes/TestAccDatadogDashboard_import.yaml +++ b/datadog/cassettes/TestAccDatadogDashboard_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","layout_type":"free","notify_list":[],"template_variable_presets":[{"name":"preset_1","template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}]},{"name":"preset_2","template_variables":[{"name":"var_1","value":"var_1_value"}]}],"template_variables":[{"default":"aws","name":"var_1","prefix":"host"},{"default":"autoscaling","name":"var_2","prefix":"service_name"}],"title":"Acceptance Test Free Dashboard","widgets":[{"definition":{"event_size":"l","query":"*","time":{"live_span":"1h"},"title":"Widget Title","title_align":"left","title_size":"16","type":"event_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}},{"definition":{"query":"*","time":{"live_span":"1h"},"title":"Widget Title","title_align":"left","title_size":"16","type":"event_timeline"},"layout":{"height":9,"width":65,"x":42,"y":73}},{"definition":{"color":"#d00","font_size":"88","text":"free text content","text_align":"left","type":"free_text"},"layout":{"height":20,"width":30,"x":42,"y":5}},{"definition":{"type":"iframe","url":"http://google.com"},"layout":{"height":46,"width":39,"x":111,"y":8}},{"definition":{"margin":"small","sizing":"fit","type":"image","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress\u0026cs=tinysrgb\u0026h=350"},"layout":{"height":20,"width":30,"x":77,"y":7}},{"definition":{"columns":["core_host","core_service","tag_source"],"indexes":[],"logset":"19","message_display":"expanded-md","query":"error","show_date_column":true,"show_message_column":true,"sort":{"column":"time","order":"desc"},"type":"log_stream"},"layout":{"height":36,"width":32,"x":5,"y":51}},{"definition":{"color_preference":"text","count":50,"display_format":"countsAndList","hide_zero_counts":true,"query":"type:metric","show_last_triggered":true,"sort":"status,asc","start":0,"summary_type":"monitors","title":"Widget Title","title_align":"left","title_size":"16","type":"manage_status"},"layout":{"height":40,"width":30,"x":112,"y":55}},{"definition":{"display_format":"three_column","env":"datad0g.com","service":"alerting-cassandra","show_breakdown":true,"show_distribution":true,"show_errors":true,"show_hits":true,"show_latency":false,"show_resource_list":false,"size_format":"large","span_name":"cassandra.query","time":{"live_span":"1h"},"title":"alerting-cassandra #env:datad0g.com","title_align":"center","title_size":"13","type":"trace_service"},"layout":{"height":38,"width":67,"x":40,"y":28}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[{"name":"preset_1","template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}]},{"name":"preset_2","template_variables":[{"name":"var_1","value":"var_1_value"}]}],"template_variables":[{"default":"aws","name":"var_1","prefix":"host"},{"default":"autoscaling","name":"var_2","prefix":"service_name"}],"title":"Acceptance Test Ordered Dashboard","widgets":[{"definition":{"alert_id":"895605","time":{"live_span":"1h"},"title":"Widget Title","type":"alert_graph","viz_type":"timeseries"}},{"definition":{"alert_id":"895605","precision":3,"text_align":"center","title":"Widget Title","type":"alert_value","unit":"b"}},{"definition":{"requests":[{"change_type":"absolute","compare_to":"week_before","increase_good":true,"order_by":"name","order_dir":"desc","q":"avg:system.load.1{env:staging} by {account}","show_present":true}],"time":{"live_span":"1h"},"title":"Widget Title","type":"change"}},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"title":"Widget Title","type":"distribution"}},{"definition":{"check":"aws.ecs.agent_connected","group_by":["account","cluster"],"grouping":"cluster","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"time":{"live_span":"1h"},"title":"Widget Title","type":"check_status"}},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"title":"Widget Title","type":"heatmap","yaxis":{"include_zero":true,"max":"2","min":"1","scale":"sqrt"}}},{"definition":{"group":["host","region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"container","requests":{"fill":{"q":"avg:system.load.1{*} by {host}"},"size":{"q":"avg:memcache.uptime{*} by {host}"}},"scope":["region:us-east-1","aws_account:727006795293"],"style":{"fill_max":"20","fill_min":"10","palette":"yellow_to_green","palette_flip":true},"title":"Widget Title","type":"hostmap"}},{"definition":{"background_color":"pink","content":"note text","font_size":"14","show_tick":true,"text_align":"center","tick_edge":"left","tick_pos":"50%","type":"note"}},{"definition":{"autoscale":true,"custom_unit":"xx","precision":4,"requests":[{"aggregator":"sum","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"q":"avg:system.load.1{env:staging} by {account}"}],"text_align":"right","time":{"live_span":"1h"},"title":"Widget Title","type":"query_value"}},{"definition":{"color_by_groups":["account","apm-role-group"],"requests":{"x":{"aggregator":"max","q":"avg:system.cpu.user{*} by {service, account}"},"y":{"aggregator":"min","q":"avg:system.mem.used{*} by {service, account}"}},"time":{"live_span":"1h"},"title":"Widget Title","type":"scatterplot","xaxis":{"include_zero":true,"label":"x","max":"2000","min":"1","scale":"pow"},"yaxis":{"include_zero":false,"label":"y","max":"2222","min":"5","scale":"log"}}},{"definition":{"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":" z=6 ","value":"y=4"},{"display_type":"ok solid","label":" x=8 ","value":"10 \u003c y \u003c 999"}],"requests":[{"display_type":"line","metadata":[{"alias_name":"Alpha","expression":"avg:system.cpu.user{app:general} by {env}"}],"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_type":"dashed","line_width":"thin","palette":"warm"}},{"display_type":"area","log_query":{"compute":{"aggregation":"count","facet":"@duration","interval":5000},"group_by":[{"facet":"host","limit":10,"sort":{"aggregation":"avg","facet":"@duration","order":"desc"}}],"index":"mcnulty","search":{"query":"status:info"}}},{"apm_query":{"compute":{"aggregation":"count","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"apm-search","search":{"query":"type:web"}},"display_type":"bars"},{"display_type":"area","process_query":{"filter_by":["active"],"limit":50,"metric":"process.stat.cpu.total_pct","search_by":"error"}}],"show_legend":true,"time":{"live_span":"1h"},"title":"Widget Title","type":"timeseries","yaxis":{"include_zero":false,"max":"100","scale":"log"}}},{"definition":{"requests":[{"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"q":"avg:system.cpu.user{app:general} by {env}"}],"title":"Widget Title","type":"toplist"}},{"definition":{"layout_type":"ordered","title":"Group Widget","type":"group","widgets":[{"definition":{"background_color":"yellow","content":"cluster note widget","font_size":"16","show_tick":false,"text_align":"left","tick_edge":"left","tick_pos":"50%","type":"note"}},{"definition":{"alert_id":"123","time":{"live_span":"1h"},"title":"Alert Graph","type":"alert_graph","viz_type":"toplist"}}]}},{"definition":{"show_error_budget":true,"slo_id":"56789","time_windows":["7d","previous_week"],"title":"Widget Title","type":"slo","view_mode":"overall","view_type":"detail"}},{"definition":{"requests":[{"aggregator":"sum","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"limit":10,"q":"avg:system.load.1{env:staging} by {account}"}],"time":{"live_span":"1h"},"title":"Widget Title","type":"query_table"}}]} form: {} headers: Accept: @@ -13,18 +13,43 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.4 (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":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -35,13 +60,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:37 GMT + - Mon, 15 Jun 2020 15:52:55 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:37 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:52:55 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -50,9 +75,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -67,100 +92,43 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:37 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:37 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - fqgAnnBv1js3TBerHAS1jOASlx3n1xB+hOOrFOLO2ZaBfZ3rktA3gzUaBetB5haL - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[{"name":"preset_1","template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}]},{"name":"preset_2","template_variables":[{"name":"var_1","value":"var_1_value"}]}],"template_variables":[{"default":"aws","name":"var_1","prefix":"host"},{"default":"autoscaling","name":"var_2","prefix":"service_name"}],"title":"Acceptance Test Ordered Dashboard","widgets":[{"definition":{"alert_id":"895605","time":{"live_span":"1h"},"title":"Widget Title","type":"alert_graph","viz_type":"timeseries"}},{"definition":{"alert_id":"895605","precision":3,"text_align":"center","title":"Widget Title","type":"alert_value","unit":"b"}},{"definition":{"requests":[{"change_type":"absolute","compare_to":"week_before","increase_good":true,"order_by":"name","order_dir":"desc","q":"avg:system.load.1{env:staging} by {account}","show_present":true}],"time":{"live_span":"1h"},"title":"Widget Title","type":"change"}},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"title":"Widget Title","type":"distribution"}},{"definition":{"check":"aws.ecs.agent_connected","group_by":["account","cluster"],"grouping":"cluster","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"time":{"live_span":"1h"},"title":"Widget Title","type":"check_status"}},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"title":"Widget Title","type":"heatmap","yaxis":{"include_zero":true,"max":"2","min":"1","scale":"sqrt"}}},{"definition":{"group":["host","region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"container","requests":{"fill":{"q":"avg:system.load.1{*} by {host}"},"size":{"q":"avg:memcache.uptime{*} by {host}"}},"scope":["region:us-east-1","aws_account:727006795293"],"style":{"fill_max":"20","fill_min":"10","palette":"yellow_to_green","palette_flip":true},"title":"Widget Title","type":"hostmap"}},{"definition":{"background_color":"pink","content":"note text","font_size":"14","show_tick":true,"text_align":"center","tick_edge":"left","tick_pos":"50%","type":"note"}},{"definition":{"autoscale":true,"custom_unit":"xx","precision":4,"requests":[{"aggregator":"sum","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"q":"avg:system.load.1{env:staging} by {account}"}],"text_align":"right","time":{"live_span":"1h"},"title":"Widget Title","type":"query_value"}},{"definition":{"color_by_groups":["account","apm-role-group"],"requests":{"x":{"aggregator":"max","q":"avg:system.cpu.user{*} by {service, account}"},"y":{"aggregator":"min","q":"avg:system.mem.used{*} by {service, account}"}},"time":{"live_span":"1h"},"title":"Widget Title","type":"scatterplot","xaxis":{"include_zero":true,"label":"x","max":"2000","min":"1","scale":"pow"},"yaxis":{"include_zero":false,"label":"y","max":"2222","min":"5","scale":"log"}}},{"definition":{"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":" z=6 ","value":"y = 4"},{"display_type":"ok solid","label":" x=8 ","value":"10 \u003c y \u003c 999"}],"requests":[{"display_type":"line","metadata":[{"alias_name":"Alpha","expression":"avg:system.cpu.user{app:general} by {env}"}],"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_type":"dashed","line_width":"thin","palette":"warm"}},{"display_type":"area","log_query":{"compute":{"aggregation":"count","facet":"@duration","interval":5000},"group_by":[{"facet":"host","limit":10,"sort":{"aggregation":"avg","facet":"@duration","order":"desc"}}],"index":"mcnulty","search":{"query":"status:info"}}},{"apm_query":{"compute":{"aggregation":"count","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"apm-search","search":{"query":"type:web"}},"display_type":"bars"},{"display_type":"area","process_query":{"filter_by":["active"],"limit":50,"metric":"process.stat.cpu.total_pct","search_by":"error"}}],"show_legend":true,"time":{"live_span":"1h"},"title":"Widget Title","type":"timeseries","yaxis":{"include_zero":false,"max":"100","scale":"log"}}},{"definition":{"requests":[{"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"q":"avg:system.cpu.user{app:general} by {env}"}],"title":"Widget Title","type":"toplist"}},{"definition":{"layout_type":"ordered","title":"Group Widget","type":"group","widgets":[{"definition":{"background_color":"yellow","content":"cluster note widget","font_size":"16","show_tick":false,"text_align":"left","tick_edge":"left","tick_pos":"50%","type":"note"}},{"definition":{"alert_id":"123","time":{"live_span":"1h"},"title":"Alert Graph","type":"alert_graph","viz_type":"toplist"}}]}},{"definition":{"show_error_budget":true,"slo_id":"56789","time_windows":["7d","previous_week"],"title":"Widget Title","type":"slo","view_mode":"overall","view_type":"detail"}},{"definition":{"requests":[{"aggregator":"sum","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"limit":10,"q":"avg:system.load.1{env:staging} by {account}"}],"time":{"live_span":"1h"},"title":"Widget Title","type":"query_table"}}]} - form: {} - headers: - Accept: - - application/json - Content-Type: - - application/json - Dd-Operation-Id: - - CreateDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; 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":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -171,13 +139,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:37 GMT + - Mon, 15 Jun 2020 15:52:55 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:37 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:52:55 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -186,9 +154,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 3GTZ6ImnvkiMOuKTP2ILv/2CbQJLb5wTjyX1KOTCD/aaxDS+HyYye1EH1uVK9Ajh + - jety+2H6BA1H4x31+wzy5BjqI2NDwh54fgbjSYyrLU0p2tWQPCCTKspX7sHO7u1n X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -203,43 +171,43 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -250,13 +218,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:37 GMT + - Mon, 15 Jun 2020 15:53:02 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:37 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:02 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -265,9 +233,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + - e8t0cvW5uVKXk1zUsTcAcDpqv28dgy+lCs/R2sCfbKW6stomFiq2a4ijzxRdPBn5 X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -282,18 +250,43 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -304,13 +297,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:48 GMT + - Mon, 15 Jun 2020 15:53:02 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:48 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:02 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -319,9 +312,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -336,18 +329,43 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -358,13 +376,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:49 GMT + - Mon, 15 Jun 2020 15:53:06 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:49 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:06 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -373,9 +391,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Z91NUpPIZnIQ9h7lBFWBkEPGVUEsn4/i71imPPwrChu4RPI5uNM5HGuodISK1HBR + - kg+/Cls6zaJcT2blJLlU62BwgGePGdpqSwWrJ0xEIvzmSMWHXxGNsiyEzBPJ1a96 X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -390,43 +408,43 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -437,13 +455,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:49 GMT + - Mon, 15 Jun 2020 15:53:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:49 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -452,9 +470,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 8jOW1djIgkdkj4STw+0pQ3G+kGKfu548DWINvnE6phacY0k9vgC3cU1LaI38XIYk + - KKQq2SiaDLpychKSp47ffvU6SRxUV+VzBWr187ESkULBuGOI+kREfb/2NCy8DAWC X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -469,43 +487,43 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -516,13 +534,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:49 GMT + - Mon, 15 Jun 2020 15:53:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:49 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -531,9 +549,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LOVPYRkvxiVgJlSU7tTR5QW5I3IByFfoP5oRWZk6jukYFQiYGeCZXWoo6PiPBzrK + - F2g1vP9i37Cj4rH5vEufbSNzCmriMTDVzKKqVk/JOUesbIz8psR3R2945wO0PbTf X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -548,43 +566,43 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -595,13 +613,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:56 GMT + - Mon, 15 Jun 2020 15:53:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:56 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -610,9 +628,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fLh2Ki8TBaqqP7azNnKugW2P+FqYhl36RGg8m8syr+2I6kNse5gXxG00+xylWppT + - u9VEJv4YNx+Fl9tRGJNbGm0+76jyym0t+mec2t84PhoJYEedil3ajyEhP7U3EneZ X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -627,43 +645,43 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"rgg-gtv-2sx","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/rgg-gtv-2sx/acceptance-test-ordered-dashboard","created_at":"2020-06-15T15:52:55.634935+00:00","modified_at":"2020-06-15T15:52:55.634935+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7718718870866810},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":2259659517650449},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + Title","type":"change","time":{"live_span":"1h"}},"id":7510492339957753},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":3745667864721328},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8717189187634603},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title"},"id":3189470194766778},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":602446704727500},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":22018145864219},{"definition":{"autoscale":true,"title":"Widget Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":4337897217652900},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8353938331614156},{"definition":{"title":"Widget Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":5006685172366903},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + Title"},"id":2720082503893472},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":4338191889083278},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":7695144653164086}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":7661082510522807},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":8986275005169463},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Title","type":"query_table","time":{"live_span":"1h"}},"id":8907742562879124}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -674,13 +692,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:57 GMT + - Mon, 15 Jun 2020 15:53:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:57 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -689,60 +707,38 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 3OCRM/4FZbkllI4iloi1acHDABD1SJi2aj2fysEPLLsOVOk5Ki6mi6IOsVG7JIay + - ADT0ms9dQnbDHbbduv4c09ChngZrYY7A/Pgms/qacMOruS4mPwZ1GJWq74I7G11W X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK code: 200 duration: "" - request: - body: "" + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","layout_type":"free","notify_list":[],"template_variable_presets":[{"name":"preset_1","template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}]},{"name":"preset_2","template_variables":[{"name":"var_1","value":"var_1_value"}]}],"template_variables":[{"default":"aws","name":"var_1","prefix":"host"},{"default":"autoscaling","name":"var_2","prefix":"service_name"}],"title":"Acceptance Test Free Dashboard","widgets":[{"definition":{"event_size":"l","query":"*","time":{"live_span":"1h"},"title":"Widget Title","title_align":"left","title_size":"16","type":"event_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}},{"definition":{"query":"*","time":{"live_span":"1h"},"title":"Widget Title","title_align":"left","title_size":"16","type":"event_timeline"},"layout":{"height":9,"width":65,"x":42,"y":73}},{"definition":{"color":"#d00","font_size":"88","text":"free text content","text_align":"left","type":"free_text"},"layout":{"height":20,"width":30,"x":42,"y":5}},{"definition":{"type":"iframe","url":"http://google.com"},"layout":{"height":46,"width":39,"x":111,"y":8}},{"definition":{"margin":"small","sizing":"fit","type":"image","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress\u0026cs=tinysrgb\u0026h=350"},"layout":{"height":20,"width":30,"x":77,"y":7}},{"definition":{"columns":["core_host","core_service","tag_source"],"indexes":[],"logset":"19","message_display":"expanded-md","query":"error","show_date_column":true,"show_message_column":true,"sort":{"column":"time","order":"desc"},"type":"log_stream"},"layout":{"height":36,"width":32,"x":5,"y":51}},{"definition":{"color_preference":"text","count":50,"display_format":"countsAndList","hide_zero_counts":true,"query":"type:metric","show_last_triggered":true,"sort":"status,asc","start":0,"summary_type":"monitors","title":"Widget Title","title_align":"left","title_size":"16","type":"manage_status"},"layout":{"height":40,"width":30,"x":112,"y":55}},{"definition":{"display_format":"three_column","env":"datad0g.com","service":"alerting-cassandra","show_breakdown":true,"show_distribution":true,"show_errors":true,"show_hits":true,"show_latency":false,"show_resource_list":false,"size_format":"large","span_name":"cassandra.query","time":{"live_span":"1h"},"title":"alerting-cassandra #env:datad0g.com","title_align":"center","title_size":"13","type":"trace_service"},"layout":{"height":38,"width":67,"x":40,"y":28}}]} form: {} headers: Accept: - application/json + Content-Type: + - application/json Dd-Operation-Id: - - GetDashboard + - CreateDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 - method: GET + - datadog-api-client-go/1.0.0-beta.4 (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":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -753,13 +749,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:57 GMT + - Mon, 15 Jun 2020 15:53:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:57 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -768,9 +764,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - rK52fEhHKxisnKo2rembr3YValr4L+BG6/8tD9iNDc8Prg2mnV6DynBkS75++wh/ + - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -785,18 +781,18 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -807,13 +803,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:58 GMT + - Mon, 15 Jun 2020 15:53:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:58 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -822,9 +818,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - e8t0cvW5uVKXk1zUsTcAcDpqv28dgy+lCs/R2sCfbKW6stomFiq2a4ijzxRdPBn5 + - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -837,20 +833,13 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetDashboard + - DeleteDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv - method: GET + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/rgg-gtv-2sx + method: DELETE response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' + body: '{"deleted_dashboard_id":"rgg-gtv-2sx"}' headers: Cache-Control: - no-cache @@ -861,13 +850,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:58 GMT + - Mon, 15 Jun 2020 15:53:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:58 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -876,9 +865,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - CPK+34LtKdL5YYX/NFOJUdMpxMoO80HISGpGpzDG5fENYSoZ2QNw1gEubOsJ9JNb + - cQFL4MaIw90DmTTH7z4Gqhr8PBtz47vyzddN9k7nXjUK2yrLiBjbdIgydUT8r1ut X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -893,18 +882,18 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -915,13 +904,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:58 GMT + - Mon, 15 Jun 2020 15:53:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:58 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -930,9 +919,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - jety+2H6BA1H4x31+wzy5BjqI2NDwh54fgbjSYyrLU0p2tWQPCCTKspX7sHO7u1n + - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -947,18 +936,18 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -969,13 +958,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:59 GMT + - Mon, 15 Jun 2020 15:53:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:59 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -984,9 +973,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - skwclWwYkKW38qisoeAm0+G71HHbXaQZSRP+zaGh2pZ7dRVTlLXlAp6DZVg5jg4x + - wB7h0Rt2IYxDUBLtoJ4y0ZOq10ZaMdDZiRuFZ3d/FUUtC7gfBEZWTs0Y6dZhoLZS X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1001,18 +990,18 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"5fz-wrw-8pv","title":"Acceptance - Test Free Dashboard","url":"/dashboard/5fz-wrw-8pv/acceptance-test-free-dashboard","created_at":"2020-05-25T14:28:37.284713+00:00","modified_at":"2020-05-25T14:28:37.284713+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":4587247619408795},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":2518377564619468},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6188800892631991},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2218130789537731},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":3832799822046245},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":8743950690783847},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":8885766403805322},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":7314876105208338}],"layout_type":"free"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -1023,13 +1012,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:28:59 GMT + - Mon, 15 Jun 2020 15:53:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:59 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1038,9 +1027,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vlc9b/rJPByGsV/acj3ScS7B1lo9nEAbSgYCfkl0GH3egry4iXeiGBP0WX8DpJ/T + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1055,43 +1044,18 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -1102,13 +1066,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:29:00 GMT + - Mon, 15 Jun 2020 15:53:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:59 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1117,9 +1081,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Lo9psmCk9egobltaxBGqrQFhgCcgUTQoFZpr2xiSR+6tucB/owychJvFjr9YMWzu + - pEDVi2191MvoIMwusdL+COAxndBmcRhJtxAtWxDDnECWDI8Z99hIoBZbpR57tJKz X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1134,43 +1098,18 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"vh6-59t-nz8","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/vh6-59t-nz8/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:28:37.649593+00:00","modified_at":"2020-05-25T14:28:37.649593+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":4648781073755466},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":7874127176864102},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":942790631488629},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":2684157958708808},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":8406152675327241},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7915054128824189},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":144747122580364},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":6303969929815808},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":5781409649056381},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6975322979040689},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":6635179476894529},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":8010041216375647},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":2911396282345631},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":934946334882160}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":8130308167969148},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":7345444060340866},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":4881121146173466}],"layout_type":"ordered"}' + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -1181,13 +1120,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:29:00 GMT + - Mon, 15 Jun 2020 15:53:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:29:00 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1196,9 +1135,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 + - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1211,13 +1150,20 @@ interactions: Accept: - application/json Dd-Operation-Id: - - DeleteDashboard + - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv - method: DELETE + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j + method: GET response: - body: '{"deleted_dashboard_id":"5fz-wrw-8pv"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -1228,13 +1174,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:29:01 GMT + - Mon, 15 Jun 2020 15:53:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:29:01 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1243,9 +1189,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 + - Xj/PwLDKe3Ll1QwGP2SdQuyUcOtG0YD60hQDJ9tPEhK9OEMHkSCPXdZRvPX0YYGO X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1258,13 +1204,20 @@ interactions: Accept: - application/json Dd-Operation-Id: - - DeleteDashboard + - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 - method: DELETE + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j + method: GET response: - body: '{"deleted_dashboard_id":"vh6-59t-nz8"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"xrg-4wk-z3j","title":"Acceptance + Test Free Dashboard","url":"/dashboard/xrg-4wk-z3j/acceptance-test-free-dashboard","created_at":"2020-06-15T15:53:18.514267+00:00","modified_at":"2020-06-15T15:53:18.514267+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":96703958520854},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":4107676652485735},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":6513245852972190},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":2127604159891238},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":5647700161189175},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":2114422299081408},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":4235645656785120},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":511295784703213}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -1275,13 +1228,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:29:02 GMT + - Mon, 15 Jun 2020 15:53:39 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:29:01 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1290,9 +1243,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fFk0sZgwwse+ZeEmqVGZPgcNG+SDXdM7Y74n6iOGuvoZenvaYEqZOvpOSMu1XDXx + - SxoanfhUZNcxsD3lnA3j+up2jAgZV05RpnWjR/qtgMkjy5UIlkbs0WqFT6yaBwwR X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1305,13 +1258,13 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetDashboard + - DeleteDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/5fz-wrw-8pv - method: GET + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j + method: DELETE response: - body: '{"errors": ["Dashboard with ID 5fz-wrw-8pv not found"]}' + body: '{"deleted_dashboard_id":"xrg-4wk-z3j"}' headers: Cache-Control: - no-cache @@ -1322,23 +1275,28 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:29:02 GMT + - Mon, 15 Jun 2020 15:53:52 GMT Dd-Pool: - dogweb Pragma: - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:53:40 GMT; + secure; HttpOnly Strict-Transport-Security: - max-age=15724800; Vary: - Accept-Encoding X-Content-Type-Options: - nosniff + X-Dd-Debug: + - 1bzfAqb/6TIngEeU7r7YcGGp2+NaI+ne9J3bzgQrdB0qTrgVrMtd4iKXr1zCNOHr X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN - status: 404 Not Found - code: 404 + status: 200 OK + code: 200 duration: "" - request: body: "" @@ -1349,11 +1307,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/vh6-59t-nz8 + - datadog-api-client-go/1.0.0-beta.4 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xrg-4wk-z3j method: GET response: - body: '{"errors": ["Dashboard with ID vh6-59t-nz8 not found"]}' + body: '{"errors": ["Dashboard with ID xrg-4wk-z3j not found"]}' headers: Cache-Control: - no-cache @@ -1364,7 +1322,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 May 2020 14:29:02 GMT + - Mon, 15 Jun 2020 15:53:52 GMT Dd-Pool: - dogweb Pragma: @@ -1376,7 +1334,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2542167" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/cassettes/TestAccDatadogDashboard_update.yaml b/datadog/cassettes/TestAccDatadogDashboard_update.yaml deleted file mode 100644 index 80fa20ae7..000000000 --- a/datadog/cassettes/TestAccDatadogDashboard_update.yaml +++ /dev/null @@ -1,1118 +0,0 @@ ---- -version: 1 -interactions: -- request: - body: | - {"description":"Created using the Datadog provider in Terraform","id":"","layout_type":"free","notify_list":[],"template_variable_presets":[{"name":"preset_1","template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}]},{"name":"preset_2","template_variables":[{"name":"var_1","value":"var_1_value"}]}],"template_variables":[{"default":"aws","name":"var_1","prefix":"host"},{"default":"autoscaling","name":"var_2","prefix":"service_name"}],"title":"Acceptance Test Free Dashboard","widgets":[{"definition":{"event_size":"l","query":"*","time":{"live_span":"1h"},"title":"Widget Title","title_align":"left","title_size":"16","type":"event_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}},{"definition":{"query":"*","time":{"live_span":"1h"},"title":"Widget Title","title_align":"left","title_size":"16","type":"event_timeline"},"layout":{"height":9,"width":65,"x":42,"y":73}},{"definition":{"color":"#d00","font_size":"88","text":"free text content","text_align":"left","type":"free_text"},"layout":{"height":20,"width":30,"x":42,"y":5}},{"definition":{"type":"iframe","url":"http://google.com"},"layout":{"height":46,"width":39,"x":111,"y":8}},{"definition":{"margin":"small","sizing":"fit","type":"image","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress\u0026cs=tinysrgb\u0026h=350"},"layout":{"height":20,"width":30,"x":77,"y":7}},{"definition":{"columns":["core_host","core_service","tag_source"],"indexes":[],"logset":"19","message_display":"expanded-md","query":"error","show_date_column":true,"show_message_column":true,"sort":{"column":"time","order":"desc"},"type":"log_stream"},"layout":{"height":36,"width":32,"x":5,"y":51}},{"definition":{"color_preference":"text","count":50,"display_format":"countsAndList","hide_zero_counts":true,"query":"type:metric","show_last_triggered":true,"sort":"status,asc","start":0,"summary_type":"monitors","title":"Widget Title","title_align":"left","title_size":"16","type":"manage_status"},"layout":{"height":40,"width":30,"x":112,"y":55}},{"definition":{"display_format":"three_column","env":"datad0g.com","service":"alerting-cassandra","show_breakdown":true,"show_distribution":true,"show_errors":true,"show_hits":true,"show_latency":false,"show_resource_list":false,"size_format":"large","span_name":"cassandra.query","time":{"live_span":"1h"},"title":"alerting-cassandra #env:datad0g.com","title_align":"center","title_size":"13","type":"trace_service"},"layout":{"height":38,"width":67,"x":40,"y":28}}]} - form: {} - headers: - Accept: - - application/json - Content-Type: - - application/json - Dd-Operation-Id: - - CreateDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; 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":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"c2u-k5b-58a","title":"Acceptance - Test Free Dashboard","url":"/dashboard/c2u-k5b-58a/acceptance-test-free-dashboard","created_at":"2020-05-25T14:27:55.760901+00:00","modified_at":"2020-05-25T14:27:55.760901+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8009259956187218},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":8795111252941239},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":4095288262516132},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":1078491064540986},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":986298892208628},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3299927711204909},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":2465979898772308},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":828088590975597}],"layout_type":"free"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:27:55 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:27:55 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c2u-k5b-58a - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"c2u-k5b-58a","title":"Acceptance - Test Free Dashboard","url":"/dashboard/c2u-k5b-58a/acceptance-test-free-dashboard","created_at":"2020-05-25T14:27:55.760901+00:00","modified_at":"2020-05-25T14:27:55.760901+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8009259956187218},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":8795111252941239},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":4095288262516132},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":1078491064540986},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":986298892208628},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3299927711204909},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":2465979898772308},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":828088590975597}],"layout_type":"free"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:27:55 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:27:55 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - xKFgbVhCHArG4Y0sXMtZ5P8r3tuxi63adTKFxNzM7f4aJAAu82zS1Bp7ak9HjM4Y - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[{"name":"preset_1","template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}]},{"name":"preset_2","template_variables":[{"name":"var_1","value":"var_1_value"}]}],"template_variables":[{"default":"aws","name":"var_1","prefix":"host"},{"default":"autoscaling","name":"var_2","prefix":"service_name"}],"title":"Acceptance Test Ordered Dashboard","widgets":[{"definition":{"alert_id":"895605","time":{"live_span":"1h"},"title":"Widget Title","type":"alert_graph","viz_type":"timeseries"}},{"definition":{"alert_id":"895605","precision":3,"text_align":"center","title":"Widget Title","type":"alert_value","unit":"b"}},{"definition":{"requests":[{"change_type":"absolute","compare_to":"week_before","increase_good":true,"order_by":"name","order_dir":"desc","q":"avg:system.load.1{env:staging} by {account}","show_present":true}],"time":{"live_span":"1h"},"title":"Widget Title","type":"change"}},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"title":"Widget Title","type":"distribution"}},{"definition":{"check":"aws.ecs.agent_connected","group_by":["account","cluster"],"grouping":"cluster","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"time":{"live_span":"1h"},"title":"Widget Title","type":"check_status"}},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"title":"Widget Title","type":"heatmap","yaxis":{"include_zero":true,"max":"2","min":"1","scale":"sqrt"}}},{"definition":{"group":["host","region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"container","requests":{"fill":{"q":"avg:system.load.1{*} by {host}"},"size":{"q":"avg:memcache.uptime{*} by {host}"}},"scope":["region:us-east-1","aws_account:727006795293"],"style":{"fill_max":"20","fill_min":"10","palette":"yellow_to_green","palette_flip":true},"title":"Widget Title","type":"hostmap"}},{"definition":{"background_color":"pink","content":"note text","font_size":"14","show_tick":true,"text_align":"center","tick_edge":"left","tick_pos":"50%","type":"note"}},{"definition":{"autoscale":true,"custom_unit":"xx","precision":4,"requests":[{"aggregator":"sum","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"q":"avg:system.load.1{env:staging} by {account}"}],"text_align":"right","time":{"live_span":"1h"},"title":"Widget Title","type":"query_value"}},{"definition":{"color_by_groups":["account","apm-role-group"],"requests":{"x":{"aggregator":"max","q":"avg:system.cpu.user{*} by {service, account}"},"y":{"aggregator":"min","q":"avg:system.mem.used{*} by {service, account}"}},"time":{"live_span":"1h"},"title":"Widget Title","type":"scatterplot","xaxis":{"include_zero":true,"label":"x","max":"2000","min":"1","scale":"pow"},"yaxis":{"include_zero":false,"label":"y","max":"2222","min":"5","scale":"log"}}},{"definition":{"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":" z=6 ","value":"y = 4"},{"display_type":"ok solid","label":" x=8 ","value":"10 \u003c y \u003c 999"}],"requests":[{"display_type":"line","metadata":[{"alias_name":"Alpha","expression":"avg:system.cpu.user{app:general} by {env}"}],"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_type":"dashed","line_width":"thin","palette":"warm"}},{"display_type":"area","log_query":{"compute":{"aggregation":"count","facet":"@duration","interval":5000},"group_by":[{"facet":"host","limit":10,"sort":{"aggregation":"avg","facet":"@duration","order":"desc"}}],"index":"mcnulty","search":{"query":"status:info"}}},{"apm_query":{"compute":{"aggregation":"count","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"apm-search","search":{"query":"type:web"}},"display_type":"bars"},{"display_type":"area","process_query":{"filter_by":["active"],"limit":50,"metric":"process.stat.cpu.total_pct","search_by":"error"}}],"show_legend":true,"time":{"live_span":"1h"},"title":"Widget Title","type":"timeseries","yaxis":{"include_zero":false,"max":"100","scale":"log"}}},{"definition":{"requests":[{"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"q":"avg:system.cpu.user{app:general} by {env}"}],"title":"Widget Title","type":"toplist"}},{"definition":{"layout_type":"ordered","title":"Group Widget","type":"group","widgets":[{"definition":{"background_color":"yellow","content":"cluster note widget","font_size":"16","show_tick":false,"text_align":"left","tick_edge":"left","tick_pos":"50%","type":"note"}},{"definition":{"alert_id":"123","time":{"live_span":"1h"},"title":"Alert Graph","type":"alert_graph","viz_type":"toplist"}}]}},{"definition":{"show_error_budget":true,"slo_id":"56789","time_windows":["7d","previous_week"],"title":"Widget Title","type":"slo","view_mode":"overall","view_type":"detail"}},{"definition":{"requests":[{"aggregator":"sum","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"limit":10,"q":"avg:system.load.1{env:staging} by {account}"}],"time":{"live_span":"1h"},"title":"Widget Title","type":"query_table"}}]} - form: {} - headers: - Accept: - - application/json - Content-Type: - - application/json - Dd-Operation-Id: - - CreateDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; 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":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"wcn-39d-2k7","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/wcn-39d-2k7/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:27:56.123589+00:00","modified_at":"2020-05-25T14:27:56.123589+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":8952184229469971},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":1211623499321427},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":8704009580550714},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":8346449064976084},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":6335750127210636},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7112371719285071},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":2947292107241879},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":3174449521407374},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":8811050807880947},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8304764928074623},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2305138872390726},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":1820808450557088},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":3240176891802801},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5099573962937298}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":4325227314532336},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3586507129244508},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":6801701961601856}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:27:56 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:27:55 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - 7vC9CD2UnUYbC7cu05B95RgDyGt2vcRq8GQJgBahx4BAPKzA8OvLqEF8NdaLccla - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wcn-39d-2k7 - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"wcn-39d-2k7","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/wcn-39d-2k7/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:27:56.123589+00:00","modified_at":"2020-05-25T14:27:56.123589+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":8952184229469971},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":1211623499321427},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":8704009580550714},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":8346449064976084},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":6335750127210636},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7112371719285071},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":2947292107241879},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":3174449521407374},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":8811050807880947},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8304764928074623},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2305138872390726},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":1820808450557088},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":3240176891802801},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5099573962937298}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":4325227314532336},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3586507129244508},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":6801701961601856}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:27:56 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:27:56 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - j9H0Mt41m875GBjR2i9r831ZILGOU6+Jata5+JJkOQgIsO+SrMkmgWN80SCun0Sk - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c2u-k5b-58a - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"c2u-k5b-58a","title":"Acceptance - Test Free Dashboard","url":"/dashboard/c2u-k5b-58a/acceptance-test-free-dashboard","created_at":"2020-05-25T14:27:55.760901+00:00","modified_at":"2020-05-25T14:27:55.760901+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8009259956187218},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":8795111252941239},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":4095288262516132},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":1078491064540986},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":986298892208628},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3299927711204909},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":2465979898772308},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":828088590975597}],"layout_type":"free"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:27:56 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:27:56 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - cQFL4MaIw90DmTTH7z4Gqhr8PBtz47vyzddN9k7nXjUK2yrLiBjbdIgydUT8r1ut - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wcn-39d-2k7 - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"wcn-39d-2k7","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/wcn-39d-2k7/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:27:56.123589+00:00","modified_at":"2020-05-25T14:27:56.123589+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":8952184229469971},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":1211623499321427},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":8704009580550714},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":8346449064976084},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":6335750127210636},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7112371719285071},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":2947292107241879},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":3174449521407374},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":8811050807880947},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8304764928074623},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2305138872390726},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":1820808450557088},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":3240176891802801},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5099573962937298}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":4325227314532336},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3586507129244508},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":6801701961601856}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:27:56 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:27:56 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - o8MFmk+4Ge4vq85ax+5C1nfQs0lbtaPPYZrpqzeG6IsYGNLGMu/G7PbJElpjPS5i - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c2u-k5b-58a - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"c2u-k5b-58a","title":"Acceptance - Test Free Dashboard","url":"/dashboard/c2u-k5b-58a/acceptance-test-free-dashboard","created_at":"2020-05-25T14:27:55.760901+00:00","modified_at":"2020-05-25T14:27:55.760901+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8009259956187218},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":8795111252941239},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":4095288262516132},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":1078491064540986},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":986298892208628},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3299927711204909},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":2465979898772308},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":828088590975597}],"layout_type":"free"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:00 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:00 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - Wi4QF3nhe5s0sRyfZvyTHLc/3mQu/jJVn8BZnev44SXt+VBNA1+haKi5VcNZFpaP - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wcn-39d-2k7 - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"wcn-39d-2k7","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/wcn-39d-2k7/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:27:56.123589+00:00","modified_at":"2020-05-25T14:27:56.123589+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":8952184229469971},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":1211623499321427},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":8704009580550714},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":8346449064976084},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":6335750127210636},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7112371719285071},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":2947292107241879},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":3174449521407374},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":8811050807880947},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8304764928074623},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2305138872390726},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":1820808450557088},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":3240176891802801},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5099573962937298}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":4325227314532336},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3586507129244508},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":6801701961601856}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:00 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:00 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - IRAJ1mQ+c3epm0CLGtZoe/y8O4TCss3jYw+fwQOm7+eSKRCE+p3OtawVnIQ5ts76 - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c2u-k5b-58a - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"c2u-k5b-58a","title":"Acceptance - Test Free Dashboard","url":"/dashboard/c2u-k5b-58a/acceptance-test-free-dashboard","created_at":"2020-05-25T14:27:55.760901+00:00","modified_at":"2020-05-25T14:27:55.760901+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8009259956187218},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":8795111252941239},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":4095288262516132},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":1078491064540986},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":986298892208628},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3299927711204909},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":2465979898772308},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":828088590975597}],"layout_type":"free"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:00 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:00 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - dPTJBBDv5jeY1gnH1FisDpda5Hi0boOGbsHxIOi4qkMt+QLOH7F7P7MeSr40vXZ0 - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wcn-39d-2k7 - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"wcn-39d-2k7","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/wcn-39d-2k7/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:27:56.123589+00:00","modified_at":"2020-05-25T14:27:56.123589+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":8952184229469971},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":1211623499321427},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":8704009580550714},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":8346449064976084},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":6335750127210636},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7112371719285071},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":2947292107241879},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":3174449521407374},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":8811050807880947},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8304764928074623},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2305138872390726},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":1820808450557088},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":3240176891802801},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5099573962937298}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":4325227314532336},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3586507129244508},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":6801701961601856}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:00 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:00 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c2u-k5b-58a - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"c2u-k5b-58a","title":"Acceptance - Test Free Dashboard","url":"/dashboard/c2u-k5b-58a/acceptance-test-free-dashboard","created_at":"2020-05-25T14:27:55.760901+00:00","modified_at":"2020-05-25T14:27:55.760901+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8009259956187218},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":8795111252941239},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":4095288262516132},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":1078491064540986},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":986298892208628},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3299927711204909},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":2465979898772308},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":828088590975597}],"layout_type":"free"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:05 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:05 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - Iy6HNgrdx6jplabT1ZfQVzkCrk+jqjHEQw0NvfR/5Sb/NsvSUgBv2AbCahJdaB7p - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wcn-39d-2k7 - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"wcn-39d-2k7","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/wcn-39d-2k7/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:27:56.123589+00:00","modified_at":"2020-05-25T14:27:56.123589+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":8952184229469971},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":1211623499321427},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":8704009580550714},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":8346449064976084},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":6335750127210636},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7112371719285071},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":2947292107241879},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":3174449521407374},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":8811050807880947},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8304764928074623},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2305138872390726},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":1820808450557088},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":3240176891802801},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5099573962937298}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":4325227314532336},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3586507129244508},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":6801701961601856}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:05 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:05 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - RngFxOd8mVeT14auLfzsH/6kz142QLoKkYXZjfmXpXDkZ/eN6uoCM3cTScXuFEa0 - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c2u-k5b-58a - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"c2u-k5b-58a","title":"Acceptance - Test Free Dashboard","url":"/dashboard/c2u-k5b-58a/acceptance-test-free-dashboard","created_at":"2020-05-25T14:27:55.760901+00:00","modified_at":"2020-05-25T14:27:55.760901+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":8009259956187218},{"definition":{"title_size":"16","title":"Widget - Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":8795111252941239},{"definition":{"color":"#d00","text":"free - text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":4095288262516132},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":1078491064540986},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":986298892208628},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3299927711204909},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget - Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":2465979898772308},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra - #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":828088590975597}],"layout_type":"free"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:05 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:05 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - cQFL4MaIw90DmTTH7z4Gqhr8PBtz47vyzddN9k7nXjUK2yrLiBjbdIgydUT8r1ut - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wcn-39d-2k7 - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Andreas Frendorf","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"wcn-39d-2k7","title":"Acceptance - Test Ordered Dashboard","url":"/dashboard/wcn-39d-2k7/acceptance-test-ordered-dashboard","created_at":"2020-05-25T14:27:56.123589+00:00","modified_at":"2020-05-25T14:27:56.123589+00:00","author_handle":"andreas.frendorf@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget - Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":8952184229469971},{"definition":{"title":"Widget - Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":1211623499321427},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} - by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget - Title","type":"change","time":{"live_span":"1h"}},"id":8704009580550714},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":8346449064976084},{"definition":{"title":"Widget - Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":6335750127210636},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget - Title"},"id":7112371719285071},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget - Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} - by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":2947292107241879},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note - text","show_tick":true,"background_color":"pink"},"id":3174449521407374},{"definition":{"autoscale":true,"title":"Widget - Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":8811050807880947},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} - by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} - by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":8304764928074623},{"definition":{"title":"Widget - Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error - dashed","value":"y = 4","label":" z=6 "},{"display_type":"ok solid","value":"10 - < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test - tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} - by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2305138872390726},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} - by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget - Title"},"id":1820808450557088},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster - note widget","show_tick":false,"background_color":"yellow"},"id":3240176891802801},{"definition":{"alert_id":"123","title":"Alert - Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5099573962937298}],"layout_type":"ordered","type":"group","title":"Group - Widget"},"id":4325227314532336},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget - Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3586507129244508},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} - by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget - Title","type":"query_table","time":{"live_span":"1h"}},"id":6801701961601856}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:05 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:05 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - cYNsy3QDuOaYo2clO/PharSNtCykS9KtUfiNevH3xDbHJlRyddWkNpuDhMgHWZ43 - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - DeleteDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c2u-k5b-58a - method: DELETE - response: - body: '{"deleted_dashboard_id":"c2u-k5b-58a"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:07 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:07 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - DeleteDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wcn-39d-2k7 - method: DELETE - response: - body: '{"deleted_dashboard_id":"wcn-39d-2k7"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:08 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Set-Cookie: - - DD-PSHARD=154; Max-Age=604800; Path=/; expires=Mon, 01-Jun-2020 14:28:08 GMT; - secure; HttpOnly - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - OGWvqyuIWnbl6WkXpkkRXBvKLURJhdDx+xXZ6vxnnyjZzYdefkAlNGOfG85GcOUu - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wcn-39d-2k7 - method: GET - response: - body: '{"errors": ["Dashboard with ID wcn-39d-2k7 not found"]}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:08 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 404 Not Found - code: 404 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - datadog-api-client-go/1.0.0-beta.2 (go go1.13.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c2u-k5b-58a - method: GET - response: - body: '{"errors": ["Dashboard with ID c2u-k5b-58a not found"]}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Mon, 25 May 2020 14:28:08 GMT - Dd-Pool: - - dogweb - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Version: - - "35.2542167" - X-Frame-Options: - - SAMEORIGIN - status: 404 Not Found - code: 404 - duration: "" diff --git a/datadog/cassettes/TestAccDatadogFreeDashboard.yaml b/datadog/cassettes/TestAccDatadogFreeDashboard.yaml new file mode 100644 index 000000000..79414d542 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogFreeDashboard.yaml @@ -0,0 +1,473 @@ +--- +version: 1 +interactions: +- request: + body: | + {"description":"Created using the Datadog provider in Terraform","id":"","layout_type":"free","notify_list":[],"template_variable_presets":[{"name":"preset_1","template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}]},{"name":"preset_2","template_variables":[{"name":"var_1","value":"var_1_value"}]}],"template_variables":[{"default":"aws","name":"var_1","prefix":"host"},{"default":"autoscaling","name":"var_2","prefix":"service_name"}],"title":"Acceptance Test Free Dashboard","widgets":[{"definition":{"event_size":"l","query":"*","time":{"live_span":"1h"},"title":"Widget Title","title_align":"left","title_size":"16","type":"event_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}},{"definition":{"query":"*","time":{"live_span":"1h"},"title":"Widget Title","title_align":"left","title_size":"16","type":"event_timeline"},"layout":{"height":9,"width":65,"x":42,"y":73}},{"definition":{"color":"#d00","font_size":"88","text":"free text content","text_align":"left","type":"free_text"},"layout":{"height":20,"width":30,"x":42,"y":5}},{"definition":{"type":"iframe","url":"http://google.com"},"layout":{"height":46,"width":39,"x":111,"y":8}},{"definition":{"margin":"small","sizing":"fit","type":"image","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress\u0026cs=tinysrgb\u0026h=350"},"layout":{"height":20,"width":30,"x":77,"y":7}},{"definition":{"columns":["core_host","core_service","tag_source"],"indexes":[],"logset":"19","message_display":"expanded-md","query":"error","show_date_column":true,"show_message_column":true,"sort":{"column":"time","order":"desc"},"type":"log_stream"},"layout":{"height":36,"width":32,"x":5,"y":51}},{"definition":{"color_preference":"text","count":50,"display_format":"countsAndList","hide_zero_counts":true,"query":"type:metric","show_last_triggered":true,"sort":"status,asc","start":0,"summary_type":"monitors","title":"Widget Title","title_align":"left","title_size":"16","type":"manage_status"},"layout":{"height":40,"width":30,"x":112,"y":55}},{"definition":{"display_format":"three_column","env":"datad0g.com","service":"alerting-cassandra","show_breakdown":true,"show_distribution":true,"show_errors":true,"show_hits":true,"show_latency":false,"show_resource_list":false,"size_format":"large","span_name":"cassandra.query","time":{"live_span":"1h"},"title":"alerting-cassandra #env:datad0g.com","title_align":"center","title_size":"13","type":"trace_service"},"layout":{"height":38,"width":67,"x":40,"y":28}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + method: POST + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"pti-jw4-g2f","title":"Acceptance + Test Free Dashboard","url":"/dashboard/pti-jw4-g2f/acceptance-test-free-dashboard","created_at":"2020-06-15T15:47:08.495442+00:00","modified_at":"2020-06-15T15:47:08.495442+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5766303593777336},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":3806232096325466},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":7971979723890083},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":7386739109393467},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":6212521918628576},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3278013624795710},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":3440444082106978},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":6104006450365852}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:08 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:47:08 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/pti-jw4-g2f + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"pti-jw4-g2f","title":"Acceptance + Test Free Dashboard","url":"/dashboard/pti-jw4-g2f/acceptance-test-free-dashboard","created_at":"2020-06-15T15:47:08.495442+00:00","modified_at":"2020-06-15T15:47:08.495442+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5766303593777336},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":3806232096325466},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":7971979723890083},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":7386739109393467},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":6212521918628576},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3278013624795710},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":3440444082106978},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":6104006450365852}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:08 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:47:08 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - QaEGvF++JqTbTiFomKhE21Fdnra2zinKOaCEqOgwcd7OtJatRLgvovBbCNyGqcpO + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/pti-jw4-g2f + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"pti-jw4-g2f","title":"Acceptance + Test Free Dashboard","url":"/dashboard/pti-jw4-g2f/acceptance-test-free-dashboard","created_at":"2020-06-15T15:47:08.495442+00:00","modified_at":"2020-06-15T15:47:08.495442+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5766303593777336},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":3806232096325466},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":7971979723890083},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":7386739109393467},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":6212521918628576},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3278013624795710},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":3440444082106978},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":6104006450365852}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:09 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:47:09 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - jety+2H6BA1H4x31+wzy5BjqI2NDwh54fgbjSYyrLU0p2tWQPCCTKspX7sHO7u1n + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/pti-jw4-g2f + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"pti-jw4-g2f","title":"Acceptance + Test Free Dashboard","url":"/dashboard/pti-jw4-g2f/acceptance-test-free-dashboard","created_at":"2020-06-15T15:47:08.495442+00:00","modified_at":"2020-06-15T15:47:08.495442+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5766303593777336},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":3806232096325466},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":7971979723890083},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":7386739109393467},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":6212521918628576},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3278013624795710},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":3440444082106978},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":6104006450365852}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:47:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FAXIqEyJyWWDyUDKgR+Td75IkfWeu40aSEpg9NtrH84gUkIxi84nk9RHrJt3rVD3 + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/pti-jw4-g2f + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"pti-jw4-g2f","title":"Acceptance + Test Free Dashboard","url":"/dashboard/pti-jw4-g2f/acceptance-test-free-dashboard","created_at":"2020-06-15T15:47:08.495442+00:00","modified_at":"2020-06-15T15:47:08.495442+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5766303593777336},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":3806232096325466},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":7971979723890083},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":7386739109393467},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":6212521918628576},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3278013624795710},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":3440444082106978},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":6104006450365852}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:47:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - aq7EAvMMXGdldXT5eVhOcqdveqp5VDY6MoO0A/xKTuSa7v4Cc6HWT9iWUnYD+m1F + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/pti-jw4-g2f + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"pti-jw4-g2f","title":"Acceptance + Test Free Dashboard","url":"/dashboard/pti-jw4-g2f/acceptance-test-free-dashboard","created_at":"2020-06-15T15:47:08.495442+00:00","modified_at":"2020-06-15T15:47:08.495442+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5766303593777336},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":3806232096325466},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":7971979723890083},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":7386739109393467},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":6212521918628576},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3278013624795710},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":3440444082106978},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":6104006450365852}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:47:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - OGWvqyuIWnbl6WkXpkkRXBvKLURJhdDx+xXZ6vxnnyjZzYdefkAlNGOfG85GcOUu + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/pti-jw4-g2f + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":false,"id":"pti-jw4-g2f","title":"Acceptance + Test Free Dashboard","url":"/dashboard/pti-jw4-g2f/acceptance-test-free-dashboard","created_at":"2020-06-15T15:47:08.495442+00:00","modified_at":"2020-06-15T15:47:08.495442+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":5766303593777336},{"definition":{"title_size":"16","title":"Widget + Title","title_align":"left","time":{"live_span":"1h"},"query":"*","type":"event_timeline"},"layout":{"y":73,"width":65,"x":42,"height":9},"id":3806232096325466},{"definition":{"color":"#d00","text":"free + text content","font_size":"88","text_align":"left","type":"free_text"},"layout":{"y":5,"width":30,"x":42,"height":20},"id":7971979723890083},{"definition":{"url":"http://google.com","type":"iframe"},"layout":{"y":8,"width":39,"x":111,"height":46},"id":7386739109393467},{"definition":{"sizing":"fit","type":"image","margin":"small","url":"https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"},"layout":{"y":7,"width":30,"x":77,"height":20},"id":6212521918628576},{"definition":{"logset":"19","sort":{"column":"time","order":"desc"},"show_message_column":true,"show_date_column":true,"message_display":"expanded-md","indexes":[],"query":"error","type":"log_stream","columns":["core_host","core_service","tag_source"]},"layout":{"y":51,"width":32,"x":5,"height":36},"id":3278013624795710},{"definition":{"count":50,"sort":"status,asc","title_size":"16","title":"Widget + Title","title_align":"left","hide_zero_counts":true,"start":0,"summary_type":"monitors","color_preference":"text","query":"type:metric","show_last_triggered":true,"type":"manage_status","display_format":"countsAndList"},"layout":{"y":55,"width":30,"x":112,"height":40},"id":3440444082106978},{"definition":{"span_name":"cassandra.query","title_size":"13","service":"alerting-cassandra","title":"alerting-cassandra + #env:datad0g.com","size_format":"large","show_hits":true,"title_align":"center","show_errors":true,"show_breakdown":true,"type":"trace_service","env":"datad0g.com","time":{"live_span":"1h"},"show_distribution":true,"display_format":"three_column","show_latency":false,"show_resource_list":false},"layout":{"y":28,"width":67,"x":40,"height":38},"id":6104006450365852}],"layout_type":"free"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:47:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/pti-jw4-g2f + method: DELETE + response: + body: '{"deleted_dashboard_id":"pti-jw4-g2f"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:47:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - fLh2Ki8TBaqqP7azNnKugW2P+FqYhl36RGg8m8syr+2I6kNse5gXxG00+xylWppT + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/pti-jw4-g2f + method: GET + response: + body: '{"errors": ["Dashboard with ID pti-jw4-g2f not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Mon, 15 Jun 2020 15:47:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2622342" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/cassettes/TestAccDatadogOrderedDashboard.yaml b/datadog/cassettes/TestAccDatadogOrderedDashboard.yaml new file mode 100644 index 000000000..9673ceb29 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogOrderedDashboard.yaml @@ -0,0 +1,648 @@ +--- +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":[{"name":"preset_1","template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}]},{"name":"preset_2","template_variables":[{"name":"var_1","value":"var_1_value"}]}],"template_variables":[{"default":"aws","name":"var_1","prefix":"host"},{"default":"autoscaling","name":"var_2","prefix":"service_name"}],"title":"Acceptance Test Ordered Dashboard","widgets":[{"definition":{"alert_id":"895605","time":{"live_span":"1h"},"title":"Widget Title","type":"alert_graph","viz_type":"timeseries"}},{"definition":{"alert_id":"895605","precision":3,"text_align":"center","title":"Widget Title","type":"alert_value","unit":"b"}},{"definition":{"requests":[{"change_type":"absolute","compare_to":"week_before","increase_good":true,"order_by":"name","order_dir":"desc","q":"avg:system.load.1{env:staging} by {account}","show_present":true}],"time":{"live_span":"1h"},"title":"Widget Title","type":"change"}},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"title":"Widget Title","type":"distribution"}},{"definition":{"check":"aws.ecs.agent_connected","group_by":["account","cluster"],"grouping":"cluster","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"time":{"live_span":"1h"},"title":"Widget Title","type":"check_status"}},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"title":"Widget Title","type":"heatmap","yaxis":{"include_zero":true,"max":"2","min":"1","scale":"sqrt"}}},{"definition":{"group":["host","region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"container","requests":{"fill":{"q":"avg:system.load.1{*} by {host}"},"size":{"q":"avg:memcache.uptime{*} by {host}"}},"scope":["region:us-east-1","aws_account:727006795293"],"style":{"fill_max":"20","fill_min":"10","palette":"yellow_to_green","palette_flip":true},"title":"Widget Title","type":"hostmap"}},{"definition":{"background_color":"pink","content":"note text","font_size":"14","show_tick":true,"text_align":"center","tick_edge":"left","tick_pos":"50%","type":"note"}},{"definition":{"autoscale":true,"custom_unit":"xx","precision":4,"requests":[{"aggregator":"sum","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"q":"avg:system.load.1{env:staging} by {account}"}],"text_align":"right","time":{"live_span":"1h"},"title":"Widget Title","type":"query_value"}},{"definition":{"color_by_groups":["account","apm-role-group"],"requests":{"x":{"aggregator":"max","q":"avg:system.cpu.user{*} by {service, account}"},"y":{"aggregator":"min","q":"avg:system.mem.used{*} by {service, account}"}},"time":{"live_span":"1h"},"title":"Widget Title","type":"scatterplot","xaxis":{"include_zero":true,"label":"x","max":"2000","min":"1","scale":"pow"},"yaxis":{"include_zero":false,"label":"y","max":"2222","min":"5","scale":"log"}}},{"definition":{"events":[{"q":"sources:test tags:1"},{"q":"sources:test tags:2"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":" z=6 ","value":"y=4"},{"display_type":"ok solid","label":" x=8 ","value":"10 \u003c y \u003c 999"}],"requests":[{"display_type":"line","metadata":[{"alias_name":"Alpha","expression":"avg:system.cpu.user{app:general} by {env}"}],"q":"avg:system.cpu.user{app:general} by {env}","style":{"line_type":"dashed","line_width":"thin","palette":"warm"}},{"display_type":"area","log_query":{"compute":{"aggregation":"count","facet":"@duration","interval":5000},"group_by":[{"facet":"host","limit":10,"sort":{"aggregation":"avg","facet":"@duration","order":"desc"}}],"index":"mcnulty","search":{"query":"status:info"}}},{"apm_query":{"compute":{"aggregation":"count","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"apm-search","search":{"query":"type:web"}},"display_type":"bars"},{"display_type":"area","process_query":{"filter_by":["active"],"limit":50,"metric":"process.stat.cpu.total_pct","search_by":"error"}}],"show_legend":true,"time":{"live_span":"1h"},"title":"Widget Title","type":"timeseries","yaxis":{"include_zero":false,"max":"100","scale":"log"}}},{"definition":{"requests":[{"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"q":"avg:system.cpu.user{app:general} by {env}"}],"title":"Widget Title","type":"toplist"}},{"definition":{"layout_type":"ordered","title":"Group Widget","type":"group","widgets":[{"definition":{"background_color":"yellow","content":"cluster note widget","font_size":"16","show_tick":false,"text_align":"left","tick_edge":"left","tick_pos":"50%","type":"note"}},{"definition":{"alert_id":"123","time":{"live_span":"1h"},"title":"Alert Graph","type":"alert_graph","viz_type":"toplist"}}]}},{"definition":{"show_error_budget":true,"slo_id":"56789","time_windows":["7d","previous_week"],"title":"Widget Title","type":"slo","view_mode":"overall","view_type":"detail"}},{"definition":{"requests":[{"aggregator":"sum","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":2},{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":2.2}],"limit":10,"q":"avg:system.load.1{env:staging} by {account}"}],"time":{"live_span":"1h"},"title":"Widget Title","type":"query_table"}}]} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateDashboard + 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 + method: POST + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"fnq-rus-yfz","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/fnq-rus-yfz/acceptance-test-ordered-dashboard","created_at":"2020-06-18T17:58:05.310691+00:00","modified_at":"2020-06-18T17:58:05.310691+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7362964786194093},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":8657702515907323},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":3392711645446082},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":6515532711036027},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":4164391815025490},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":903239435732417},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":8777513640745171},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":7375222491870959},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":3350702609263161},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6685302964341665},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2990444328688614},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":6608065380675101},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":6955166097328651},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5346860442416831}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":5319404144030050},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3753560968106540},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":2421614161405600}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:05 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:58:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fnq-rus-yfz + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"fnq-rus-yfz","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/fnq-rus-yfz/acceptance-test-ordered-dashboard","created_at":"2020-06-18T17:58:05.310691+00:00","modified_at":"2020-06-18T17:58:05.310691+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7362964786194093},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":8657702515907323},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":3392711645446082},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":6515532711036027},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":4164391815025490},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":903239435732417},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":8777513640745171},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":7375222491870959},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":3350702609263161},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6685302964341665},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2990444328688614},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":6608065380675101},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":6955166097328651},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5346860442416831}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":5319404144030050},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3753560968106540},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":2421614161405600}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:05 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:58:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - kg+/Cls6zaJcT2blJLlU62BwgGePGdpqSwWrJ0xEIvzmSMWHXxGNsiyEzBPJ1a96 + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fnq-rus-yfz + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"fnq-rus-yfz","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/fnq-rus-yfz/acceptance-test-ordered-dashboard","created_at":"2020-06-18T17:58:05.310691+00:00","modified_at":"2020-06-18T17:58:05.310691+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7362964786194093},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":8657702515907323},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":3392711645446082},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":6515532711036027},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":4164391815025490},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":903239435732417},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":8777513640745171},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":7375222491870959},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":3350702609263161},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6685302964341665},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2990444328688614},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":6608065380675101},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":6955166097328651},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5346860442416831}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":5319404144030050},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3753560968106540},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":2421614161405600}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:06 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:58:05 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IkXBg4ZNMRmDsobzMjEa2v35+NuPiQI0gFmho/o6e7+hfyyJl3rjuklsE4uVJo7l + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fnq-rus-yfz + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"fnq-rus-yfz","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/fnq-rus-yfz/acceptance-test-ordered-dashboard","created_at":"2020-06-18T17:58:05.310691+00:00","modified_at":"2020-06-18T17:58:05.310691+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7362964786194093},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":8657702515907323},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":3392711645446082},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":6515532711036027},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":4164391815025490},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":903239435732417},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":8777513640745171},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":7375222491870959},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":3350702609263161},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6685302964341665},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2990444328688614},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":6608065380675101},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":6955166097328651},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5346860442416831}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":5319404144030050},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3753560968106540},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":2421614161405600}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:58:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fnq-rus-yfz + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"fnq-rus-yfz","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/fnq-rus-yfz/acceptance-test-ordered-dashboard","created_at":"2020-06-18T17:58:05.310691+00:00","modified_at":"2020-06-18T17:58:05.310691+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7362964786194093},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":8657702515907323},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":3392711645446082},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":6515532711036027},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":4164391815025490},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":903239435732417},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":8777513640745171},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":7375222491870959},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":3350702609263161},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6685302964341665},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2990444328688614},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":6608065380675101},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":6955166097328651},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5346860442416831}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":5319404144030050},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3753560968106540},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":2421614161405600}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:58:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fnq-rus-yfz + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"fnq-rus-yfz","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/fnq-rus-yfz/acceptance-test-ordered-dashboard","created_at":"2020-06-18T17:58:05.310691+00:00","modified_at":"2020-06-18T17:58:05.310691+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7362964786194093},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":8657702515907323},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":3392711645446082},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":6515532711036027},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":4164391815025490},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":903239435732417},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":8777513640745171},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":7375222491870959},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":3350702609263161},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6685302964341665},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2990444328688614},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":6608065380675101},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":6955166097328651},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5346860442416831}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":5319404144030050},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3753560968106540},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":2421614161405600}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:58:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fnq-rus-yfz + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Nicholas Muesch","template_variable_presets":[{"template_variables":[{"name":"var_1","value":"var_1_value"},{"name":"var_2","value":"var_2_value"}],"name":"preset_1"},{"template_variables":[{"name":"var_1","value":"var_1_value"}],"name":"preset_2"}],"template_variables":[{"default":"aws","prefix":"host","name":"var_1"},{"default":"autoscaling","prefix":"service_name","name":"var_2"}],"is_read_only":true,"id":"fnq-rus-yfz","title":"Acceptance + Test Ordered Dashboard","url":"/dashboard/fnq-rus-yfz/acceptance-test-ordered-dashboard","created_at":"2020-06-18T17:58:05.310691+00:00","modified_at":"2020-06-18T17:58:05.310691+00:00","author_handle":"nicholas.muesch@datadoghq.com","widgets":[{"definition":{"alert_id":"895605","title":"Widget + Title","type":"alert_graph","viz_type":"timeseries","time":{"live_span":"1h"}},"id":7362964786194093},{"definition":{"title":"Widget + Title","text_align":"center","precision":3,"alert_id":"895605","type":"alert_value","unit":"b"},"id":8657702515907323},{"definition":{"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"week_before","q":"avg:system.load.1{env:staging} + by {account}","show_present":true,"increase_good":true,"order_by":"name"}],"title":"Widget + Title","type":"change","time":{"live_span":"1h"}},"id":3392711645446082},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"title":"Widget Title","type":"distribution","time":{"live_span":"1h"}},"id":6515532711036027},{"definition":{"title":"Widget + Title","tags":["account:demo","cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"],"group_by":["account","cluster"],"time":{"live_span":"1h"},"type":"check_status","check":"aws.ecs.agent_connected","grouping":"cluster"},"id":4164391815025490},{"definition":{"yaxis":{"include_zero":true,"scale":"sqrt","min":"1","max":"2"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","style":{"palette":"warm"}}],"time":{"live_span":"1h"},"type":"heatmap","title":"Widget + Title"},"id":903239435732417},{"definition":{"style":{"fill_min":"10","fill_max":"20","palette":"yellow_to_green","palette_flip":true},"group":["host","region"],"title":"Widget + Title","node_type":"container","no_metric_hosts":true,"scope":["region:us-east-1","aws_account:727006795293"],"requests":{"size":{"q":"avg:memcache.uptime{*} + by {host}"},"fill":{"q":"avg:system.load.1{*} by {host}"}},"no_group_hosts":true,"type":"hostmap"},"id":8777513640745171},{"definition":{"tick_pos":"50%","font_size":"14","type":"note","tick_edge":"left","text_align":"center","content":"note + text","show_tick":true,"background_color":"pink"},"id":7375222491870959},{"definition":{"autoscale":true,"title":"Widget + Title","text_align":"right","custom_unit":"xx","precision":4,"time":{"live_span":"1h"},"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"query_value"},"id":3350702609263161},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"max":"2222","min":"5","scale":"log","label":"y"},"color_by_groups":["account","apm-role-group"],"xaxis":{"include_zero":true,"max":"2000","min":"1","scale":"pow","label":"x"},"time":{"live_span":"1h"},"requests":{"y":{"q":"avg:system.mem.used{*} + by {service, account}","aggregator":"min"},"x":{"q":"avg:system.cpu.user{*} + by {service, account}","aggregator":"max"}},"type":"scatterplot"},"id":6685302964341665},{"definition":{"title":"Widget + Title","yaxis":{"include_zero":false,"scale":"log","max":"100"},"markers":[{"display_type":"error + dashed","value":"y=4","label":" z=6 "},{"display_type":"ok solid","value":"10 + < y < 999","label":" x=8 "}],"events":[{"q":"sources:test tags:1"},{"q":"sources:test + tags:2"}],"show_legend":true,"time":{"live_span":"1h"},"legend_size":"2","type":"timeseries","requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","style":{"line_width":"thin","palette":"warm","line_type":"dashed"},"display_type":"line","metadata":[{"expression":"avg:system.cpu.user{app:general} + by {env}","alias_name":"Alpha"}]},{"display_type":"area","log_query":{"index":"mcnulty","search":{"query":"status:info"},"group_by":[{"facet":"host","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}}},{"apm_query":{"index":"apm-search","search":{"query":"type:web"},"group_by":[{"facet":"resource_name","sort":{"facet":"@string_query.interval","aggregation":"avg","order":"desc"},"limit":50}],"compute":{"facet":"@duration","interval":5000,"aggregation":"count"}},"display_type":"bars"},{"process_query":{"search_by":"error","metric":"process.stat.cpu.total_pct","limit":50,"filter_by":["active"]},"display_type":"area"}]},"id":2990444328688614},{"definition":{"requests":[{"q":"avg:system.cpu.user{app:general} + by {env}","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}]}],"type":"toplist","title":"Widget + Title"},"id":6608065380675101},{"definition":{"widgets":[{"definition":{"tick_pos":"50%","font_size":"16","type":"note","tick_edge":"left","text_align":"left","content":"cluster + note widget","show_tick":false,"background_color":"yellow"},"id":6955166097328651},{"definition":{"alert_id":"123","title":"Alert + Graph","type":"alert_graph","viz_type":"toplist","time":{"live_span":"1h"}},"id":5346860442416831}],"layout_type":"ordered","type":"group","title":"Group + Widget"},"id":5319404144030050},{"definition":{"time_windows":["7d","previous_week"],"show_error_budget":true,"title":"Widget + Title","view_type":"detail","slo_id":"56789","view_mode":"overall","type":"slo"},"id":3753560968106540},{"definition":{"requests":[{"q":"avg:system.load.1{env:staging} + by {account}","aggregator":"sum","conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":2,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":2.2,"comparator":">"}],"limit":10}],"title":"Widget + Title","type":"query_table","time":{"live_span":"1h"}},"id":2421614161405600}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:58:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - j9H0Mt41m875GBjR2i9r831ZILGOU6+Jata5+JJkOQgIsO+SrMkmgWN80SCun0Sk + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fnq-rus-yfz + method: DELETE + response: + body: '{"deleted_dashboard_id":"fnq-rus-yfz"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Thu, 25-Jun-2020 17:58:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - HTCsbjwqQM0jTFHFq9ukWObBv4f/yxvHIxzrANPhzJkr6s3+rN5uCN3TcZuK2V2B + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + 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/fnq-rus-yfz + method: GET + response: + body: '{"errors": ["Dashboard with ID fnq-rus-yfz not found"]}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 18 Jun 2020 17:58:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Version: + - "35.2638647" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/provider_test.go b/datadog/provider_test.go index 02c4c34c1..a36a8668a 100644 --- a/datadog/provider_test.go +++ b/datadog/provider_test.go @@ -9,6 +9,7 @@ import ( "net/url" "os" "runtime" + "strings" "testing" "time" @@ -18,6 +19,7 @@ import ( "github.com/dnaeon/go-vcr/recorder" "github.com/hashicorp/go-cleanhttp" "github.com/hashicorp/terraform-plugin-sdk/helper/logging" + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/terraform" "github.com/jonboulle/clockwork" @@ -268,3 +270,69 @@ func testAccPreCheck(t *testing.T) { t.Fatal("DD_APP_KEY must be set for acceptance tests") } } + +func testCheckResourceAttrs(name string, checkExists resource.TestCheckFunc, assertions []string) []resource.TestCheckFunc { + funcs := []resource.TestCheckFunc{} + funcs = append(funcs, checkExists) + for _, assertion := range assertions { + assertionPair := strings.Split(assertion, " = ") + if len(assertionPair) == 1 { + assertionPair = strings.Split(assertion, " =") + } + key := assertionPair[0] + value := "" + if len(assertionPair) > 1 { + value = assertionPair[1] + } + funcs = append(funcs, resource.TestCheckResourceAttr(name, key, value)) + // Use utility method below, instead of the above one, to print out all state keys/values during test debugging + //funcs = append(funcs, CheckResourceAttr(name, key, value)) + } + return funcs +} + +/* Utility method for Debugging purpose. This method helps list assertions as well +It is a duplication of `resource.TestCheckResourceAttr` into which we added print statements. +*/ +func CheckResourceAttr(name, key, value string) resource.TestCheckFunc { + return func(s *terraform.State) error { + ms := s.RootModule() + rs, ok := ms.Resources[name] + if !ok { + return nil + } + + is := rs.Primary + if is == nil { + return nil + } + + for k, val := range is.Attributes { + fmt.Println(fmt.Sprintf("%v = %v", k, val)) + } + + // Empty containers may be elided from the state. + // If the intent here is to check for an empty container, allow the key to + // also be non-existent. + emptyCheck := value == "0" && (strings.HasSuffix(key, ".#") || strings.HasSuffix(key, ".%")) + + if v, ok := is.Attributes[key]; !ok || v != value { + + if emptyCheck && !ok { + return nil + } + + if !ok { + return fmt.Errorf("%s: Attribute '%s' not found", name, key) + } + + return fmt.Errorf( + "%s: Attribute '%s' expected %#v, got %#v", + name, + key, + value, + v) + } + return nil + } +} diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index 1d5c954fd..997aa43c3 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -584,7 +584,6 @@ func getNonGroupWidgetSchema() map[string]*schema.Schema { Schema: getManageStatusDefinitionSchema(), }, }, - "note_definition": { Type: schema.TypeList, Optional: true, @@ -1944,7 +1943,7 @@ func buildDatadogHeatmapDefinition(terraformDefinition map[string]interface{}) * datadogDefinition.SetTitleSize(v) } if v, ok := terraformDefinition["title_align"].(string); ok && len(v) != 0 { - datadogDefinition.SetTitle(v) + datadogDefinition.SetTitleAlign(datadogV1.WidgetTextAlign(v)) } if v, ok := terraformDefinition["time"].(map[string]interface{}); ok && len(v) > 0 { datadogDefinition.Time = buildDatadogWidgetTime(v) diff --git a/datadog/resource_datadog_dashboard_alert_graph_test.go b/datadog/resource_datadog_dashboard_alert_graph_test.go new file mode 100644 index 000000000..ae29ad405 --- /dev/null +++ b/datadog/resource_datadog_dashboard_alert_graph_test.go @@ -0,0 +1,133 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Alert Graph", +// "created_at": "2020-06-09T13:26:19.396570+00:00", +// "modified_at": "2020-06-09T13:27:20.634671+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "viz_type": "toplist", +// "title": "", +// "title_align": "center", +// "alert_id": "10605849", +// "type": "alert_graph", +// "time": { +// "live_span": "10m" +// } +// }, +// "layout": { +// "y": 1, +// "x": 2, +// "height": 15, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardAlertGraphConfig = ` +resource "datadog_dashboard" "alert_graph_dashboard" { + title = "Acceptance Test Alert Graph Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = true + widget { + alert_graph_definition { + alert_id = "895605" + viz_type = "timeseries" + } + } + widget { + alert_graph_definition { + alert_id = "895606" + viz_type = "toplist" + title = "Widget Title" + title_align = "right" + title_size = "16" + time = { + live_span = "1h" + } + } + } +} +` + +var datadogDashboardAlertGraphAsserts = []string{ + "title = Acceptance Test Alert Graph Widget Dashboard", + "widget.0.alert_graph_definition.0.alert_id = 895605", + "widget.1.alert_graph_definition.0.time.% = 1", + "widget.1.alert_graph_definition.0.title = Widget Title", + "is_read_only = true", + "widget.1.alert_graph_definition.0.title_size = 16", + "widget.1.alert_graph_definition.0.viz_type = toplist", + "widget.1.alert_graph_definition.0.time.live_span = 1h", + "widget.1.alert_graph_definition.0.alert_id = 895606", + "widget.0.alert_graph_definition.0.title_size =", + "description = Created using the Datadog provider in Terraform", + "widget.0.alert_graph_definition.0.title_align =", + "widget.0.alert_graph_definition.0.title =", + "widget.1.alert_graph_definition.0.title_align = right", + "layout_type = ordered", + "widget.0.alert_graph_definition.0.viz_type = timeseries", +} + +func TestAccDatadogDashboardAlertGraph(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardAlertGraphConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.alert_graph_dashboard", checkDashboardExists(accProvider), datadogDashboardAlertGraphAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardAlertGraph_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardAlertGraphConfig, + }, + { + ResourceName: "datadog_dashboard.alert_graph_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_alert_value_test.go b/datadog/resource_datadog_dashboard_alert_value_test.go new file mode 100644 index 000000000..aca1adfe6 --- /dev/null +++ b/datadog/resource_datadog_dashboard_alert_value_test.go @@ -0,0 +1,133 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Alert Value Example", +// "created_at": "2020-06-09T13:28:26.474869+00:00", +// "modified_at": "2020-06-09T13:29:06.581646+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "title": "", +// "title_align": "center", +// "text_align": "center", +// "precision": 1, +// "alert_id": "10605849", +// "type": "alert_value", +// "unit": "b" +// }, +// "layout": { +// "y": 2, +// "x": 8, +// "height": 8, +// "width": 15 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardAlertValueConfig = ` +resource "datadog_dashboard" "alert_value_dashboard" { + title = "Acceptance Test Alert Value Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = true + widget { + alert_value_definition { + alert_id = "895605" + } + } + widget { + alert_value_definition { + alert_id = "895606" + precision = 1 + unit = "b" + title_size = "16" + title_align = "center" + title = "Widget Title" + text_align = "center" + } + } +} +` + +var datadogDashboardAlertValueAsserts = []string{ + "widget.0.alert_value_definition.0.title_align =", + "widget.1.alert_value_definition.0.title_align = center", + "widget.1.alert_value_definition.0.text_align = center", + "widget.1.layout.% = 0", + "title = Acceptance Test Alert Value Widget Dashboard", + "description = Created using the Datadog provider in Terraform", + "widget.0.alert_value_definition.0.precision = 0", + "widget.1.alert_value_definition.0.title_size = 16", + "widget.1.alert_value_definition.0.precision = 1", + "widget.0.alert_value_definition.0.title_size =", + "widget.1.alert_value_definition.0.alert_id = 895606", + "widget.0.alert_value_definition.0.text_align =", + "layout_type = ordered", + "widget.0.alert_value_definition.0.title =", + "widget.0.alert_value_definition.0.unit =", + "widget.1.alert_value_definition.0.title = Widget Title", + "widget.0.alert_value_definition.0.alert_id = 895605", + "widget.1.alert_value_definition.0.unit = b", + "is_read_only = true", +} + +func TestAccDatadogDashboardAlertValue(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardAlertValueConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.alert_value_dashboard", checkDashboardExists(accProvider), datadogDashboardAlertValueAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardAlertValue_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardAlertValueConfig, + }, + { + ResourceName: "datadog_dashboard.alert_value_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_change_test.go b/datadog/resource_datadog_dashboard_change_test.go new file mode 100644 index 000000000..4b198aebb --- /dev/null +++ b/datadog/resource_datadog_dashboard_change_test.go @@ -0,0 +1,160 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Change Example", +// "created_at": "2020-06-09T13:01:22.235028+00:00", +// "modified_at": "2020-06-09T13:03:15.925532+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "title": "Sum of system.cpu.user over * by service,account", +// "title_align": "left", +// "time": { +// "live_span": "1h" +// }, +// "requests": [ +// { +// "change_type": "relative", +// "order_dir": "desc", +// "compare_to": "day_before", +// "q": "sum:system.cpu.user{*} by {service,account}", +// "show_present": true, +// "increase_good": false, +// "order_by": "change" +// } +// ], +// "type": "change" +// }, +// "layout": { +// "y": 6, +// "x": 9, +// "height": 15, +// "width": 47 +// }, +// "id": 1 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardChangeConfig = ` +resource "datadog_dashboard" "change_dashboard" { + title = "Acceptance Test Change Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = true + widget { + change_definition { + request { + q = "sum:system.cpu.user{*} by {service,account}" + } + } + } + + widget { + change_definition { + request { + q = "sum:system.cpu.user{*} by {service,account}" + compare_to = "day_before" + increase_good = "false" + order_by = "change" + change_type = "absolute" + order_dir = "desc" + show_present = "true" + } + title = "Sum of system.cpu.user over * by service,account" + title_size = "16" + title_align = "left" + time = { + live_span = "1h" + } + } + } +} +` + +var datadogDashboardChangeAsserts = []string{ + "widget.0.change_definition.0.request.0.q = sum:system.cpu.user{*} by {service,account}", + "widget.1.change_definition.0.title_align = left", + "widget.1.change_definition.0.request.0.change_type = absolute", + "widget.0.change_definition.0.request.0.order_dir =", + "widget.0.change_definition.0.title_size =", + "title = Acceptance Test Change Widget Dashboard", + "widget.0.change_definition.0.request.0.change_type =", + "widget.1.change_definition.0.title = Sum of system.cpu.user over * by service,account", + "widget.1.change_definition.0.title_size = 16", + "widget.1.change_definition.0.request.0.compare_to = day_before", + "is_read_only = true", + "widget.0.change_definition.0.title_align =", + "widget.0.change_definition.0.title =", + "widget.1.change_definition.0.request.0.q = sum:system.cpu.user{*} by {service,account}", + "widget.1.change_definition.0.request.0.show_present = true", + "widget.1.change_definition.0.request.0.order_by = change", + "layout_type = ordered", + "widget.1.change_definition.0.request.0.order_dir = desc", + "widget.0.change_definition.0.request.0.increase_good = false", + "widget.1.change_definition.0.request.0.increase_good = false", + "widget.0.change_definition.0.request.0.show_present = false", + "description = Created using the Datadog provider in Terraform", + "widget.0.change_definition.0.request.0.order_by =", + "widget.1.change_definition.0.time.live_span = 1h", + "widget.0.change_definition.0.request.0.compare_to =", +} + +func TestAccDatadogDashboardChange(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardChangeConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.change_dashboard", checkDashboardExists(accProvider), datadogDashboardChangeAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardChange_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardChangeConfig, + }, + { + ResourceName: "datadog_dashboard.change_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_check_status_test.go b/datadog/resource_datadog_dashboard_check_status_test.go new file mode 100644 index 000000000..742720bfa --- /dev/null +++ b/datadog/resource_datadog_dashboard_check_status_test.go @@ -0,0 +1,126 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Check Status Example", +// "created_at": "2020-06-09T12:59:18.872351+00:00", +// "modified_at": "2020-06-09T13:00:12.684566+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "title": "Agent Up", +// "title_align": "center", +// "group_by": [ +// "app" +// ], +// "type": "check_status", +// "check": "aws.ec2.host_status", +// "tags": [ +// "account:prod" +// ], +// "grouping": "cluster" +// }, +// "layout": { +// "y": 1, +// "x": 7, +// "height": 8, +// "width": 15 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardCheckStatusConfig = ` +resource "datadog_dashboard" "check_status_dashboard" { + title = "Acceptance Test Check Status Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + check_status_definition { + title = "Agent Up" + title_align = "center" + title_size = "16" + group_by = ["app"] + check = "aws.ec2.host_status" + tags = ["account:prod"] + grouping = "cluster" + } + } +} +` + +var datadogDashboardCheckStatusAsserts = []string{ + "widget.0.check_status_definition.0.group_by.0 = app", + "widget.0.check_status_definition.0.title_size = 16", + "widget.0.check_status_definition.0.check = aws.ec2.host_status", + "is_read_only = true", + "widget.0.check_status_definition.0.title = Agent Up", + "widget.0.check_status_definition.0.title_align = center", + "widget.0.check_status_definition.0.group =", + "title = Acceptance Test Check Status Widget Dashboard", + "widget.0.check_status_definition.0.grouping = cluster", + "widget.0.check_status_definition.0.tags.0 = account:prod", + "layout_type = ordered", + "description = Created using the Datadog provider in Terraform", +} + +func TestAccDatadogDashboardCheckStatus(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardCheckStatusConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.check_status_dashboard", checkDashboardExists(accProvider), datadogDashboardCheckStatusAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardCheckStatus_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardCheckStatusConfig, + }, + { + ResourceName: "datadog_dashboard.check_status_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_distribution_test.go b/datadog/resource_datadog_dashboard_distribution_test.go new file mode 100644 index 000000000..0ce2bab36 --- /dev/null +++ b/datadog/resource_datadog_dashboard_distribution_test.go @@ -0,0 +1,136 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Distribution Example", +// "created_at": "2020-06-09T13:22:05.545823+00:00", +// "modified_at": "2020-06-09T13:22:57.196703+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "13", +// "title": "Avg of system.cpu.user over account:prod by service,account", +// "title_align": "center", +// "time": { +// "live_span": "1d" +// }, +// "requests": [ +// { +// "q": "avg:system.cpu.user{account:prod} by {service,account}", +// "style": { +// "palette": "purple" +// } +// } +// ], +// "type": "distribution", +// "show_legend": true, +// "legend_size": "2" +// }, +// "layout": { +// "y": 3, +// "x": 2, +// "height": 15, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardDistributionConfig = ` +resource "datadog_dashboard" "distribution_dashboard" { + title = "Acceptance Test Distribution Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + distribution_definition { + title = "Avg of system.cpu.user over account:prod by service,account" + title_align = "left" + title_size = "16" + //show_legend = "true" + //legend_size = "2" + time = { + live_span = "1h" + } + request { + q = "avg:system.cpu.user{account:prod} by {service,account}" + style { + palette = "purple" + } + } + } + } +} +` + +var datadogDashboardDistributionAsserts = []string{ + "title = Acceptance Test Distribution Widget Dashboard", + "widget.0.distribution_definition.0.time.live_span = 1h", + "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", + "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", + "layout_type = ordered", + "is_read_only = true", +} + +func TestAccDatadogDashboardDistribution(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardDistributionConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.distribution_dashboard", checkDashboardExists(accProvider), datadogDashboardDistributionAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardDistribution_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardDistributionConfig, + }, + { + ResourceName: "datadog_dashboard.distribution_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_event_stream_test.go b/datadog/resource_datadog_dashboard_event_stream_test.go new file mode 100644 index 000000000..f3467bd00 --- /dev/null +++ b/datadog/resource_datadog_dashboard_event_stream_test.go @@ -0,0 +1,135 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Event Strem Example", +// "created_at": "2020-06-09T13:13:12.633530+00:00", +// "modified_at": "2020-06-09T13:13:39.449243+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "title": "", +// "title_align": "center", +// "tags_execution": "and", +// "time": { +// "live_span": "4h" +// }, +// "query": "*", +// "type": "event_stream", +// "event_size": "l" +// }, +// "layout": { +// "y": 2, +// "x": 0, +// "height": 38, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardEventStreamConfig = ` +resource "datadog_dashboard" "event_stream_dashboard" { + title = "Acceptance Test Event Stream Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "free" + is_read_only = "true" + + widget { + event_stream_definition { + title = "Widget Title" + title_align = "right" + title_size = "16" + tags_execution = "and" + query = "*" + event_size = "l" + time = { + live_span = "4h" + } + } + layout = { + height = 43 + width = 32 + x = 5 + y = 5 + } + } +} +` + +var datadogDashboardEventStreamAsserts = []string{ + "widget.0.layout.x = 5", + "widget.0.event_stream_definition.0.title_size = 16", + "widget.0.event_stream_definition.0.tags_execution = and", + "title = Acceptance Test Event Stream Widget Dashboard", + "widget.0.layout.y = 5", + "widget.0.event_stream_definition.0.title_align = right", + "widget.0.event_stream_definition.0.time.live_span = 4h", + "widget.0.layout.width = 32", + "widget.0.event_stream_definition.0.event_size = l", + "layout_type = free", + "description = Created using the Datadog provider in Terraform", + "is_read_only = true", + "widget.0.event_stream_definition.0.query = *", + "widget.0.event_stream_definition.0.title = Widget Title", + "widget.0.layout.height = 43", +} + +func TestAccDatadogDashboardEventStream(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardEventStreamConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.event_stream_dashboard", checkDashboardExists(accProvider), datadogDashboardEventStreamAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardEventStream_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardEventStreamConfig, + }, + { + ResourceName: "datadog_dashboard.event_stream_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_event_timeline_test.go b/datadog/resource_datadog_dashboard_event_timeline_test.go new file mode 100644 index 000000000..b35b60349 --- /dev/null +++ b/datadog/resource_datadog_dashboard_event_timeline_test.go @@ -0,0 +1,133 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Event Stream Example", +// "created_at": "2020-06-09T13:13:12.633530+00:00", +// "modified_at": "2020-06-09T13:13:39.449243+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "title": "", +// "title_align": "center", +// "tags_execution": "and", +// "time": { +// "live_span": "4h" +// }, +// "query": "*", +// "type": "event_stream", +// "event_size": "l" +// }, +// "layout": { +// "y": 2, +// "x": 0, +// "height": 38, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardEventTimelineConfig = ` +resource "datadog_dashboard" "event_timeline_dashboard" { + title = "Acceptance Test Event Timeline Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "free" + is_read_only = "true" + + widget { + event_timeline_definition { + title = "Widget Title" + title_align = "right" + title_size = "16" + tags_execution = "and" + query = "status:error" + time = { + live_span = "1h" + } + } + layout = { + height = 43 + width = 32 + x = 5 + y = 5 + } + } +} +` + +var datadogDashboardEventTimelineAsserts = []string{ + "widget.0.layout.y = 5", + "widget.0.event_timeline_definition.0.title_align = right", + "widget.0.layout.x = 5", + "description = Created using the Datadog provider in Terraform", + "widget.0.event_timeline_definition.0.time.live_span = 1h", + "title = Acceptance Test Event Timeline Widget Dashboard", + "is_read_only = true", + "widget.0.layout.width = 32", + "widget.0.event_timeline_definition.0.title_size = 16", + "layout_type = free", + "widget.0.event_timeline_definition.0.query = status:error", + "widget.0.event_timeline_definition.0.title = Widget Title", + "widget.0.event_timeline_definition.0.tags_execution = and", + "widget.0.layout.height = 43", +} + +func TestAccDatadogDashboardEventTimeline(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardEventTimelineConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.event_timeline_dashboard", checkDashboardExists(accProvider), datadogDashboardEventTimelineAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardEventTimeline_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardEventTimelineConfig, + }, + { + ResourceName: "datadog_dashboard.event_timeline_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_free_text_test.go b/datadog/resource_datadog_dashboard_free_text_test.go new file mode 100644 index 000000000..8a99b9705 --- /dev/null +++ b/datadog/resource_datadog_dashboard_free_text_test.go @@ -0,0 +1,122 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "Free Text - Example", +// "created_at": "2020-06-09T13:38:43.135928+00:00", +// "modified_at": "2020-06-09T13:39:37.055724+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "color": "#eb364b", +// "text": "Free Text", +// "type": "free_text", +// "font_size": "56", +// "text_align": "left" +// }, +// "layout": { +// "y": -2, +// "x": 1, +// "height": 6, +// "width": 24 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardFreeTextConfig = ` +resource "datadog_dashboard" "free_text_dashboard" { + title = "Acceptance Test Free Text Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "free" + is_read_only = "true" + + widget { + free_text_definition { + color = "#eb364b" + text = "Free Text" + font_size = "56" + text_align = "left" + } + layout = { + height = 43 + width = 32 + x = 5 + y = 5 + } + } +} +` + +var datadogDashboardFreeTextAsserts = []string{ + "widget.0.layout.y = 5", + "widget.0.free_text_definition.0.text = Free Text", + "layout_type = free", + "description = Created using the Datadog provider in Terraform", + "widget.0.free_text_definition.0.font_size = 56", + "is_read_only = true", + "widget.0.free_text_definition.0.color = #eb364b", + "widget.0.layout.width = 32", + "widget.0.layout.height = 43", + "widget.0.free_text_definition.0.text_align = left", + "title = Acceptance Test Free Text Widget Dashboard", + "widget.0.layout.x = 5", +} + +func TestAccDatadogDashboardFreeText(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardFreeTextConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.free_text_dashboard", checkDashboardExists(accProvider), datadogDashboardFreeTextAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardFreeText_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardFreeTextConfig, + }, + { + ResourceName: "datadog_dashboard.free_text_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_heatmap_test.go b/datadog/resource_datadog_dashboard_heatmap_test.go new file mode 100644 index 000000000..85923b06d --- /dev/null +++ b/datadog/resource_datadog_dashboard_heatmap_test.go @@ -0,0 +1,156 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Heatmap Example", +// "created_at": "2020-06-09T12:39:06.399949+00:00", +// "modified_at": "2020-06-09T12:40:51.704616+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "yaxis": { +// "max": "100" +// }, +// "title_align": "center", +// "requests": [ +// { +// "q": "avg:system.cpu.user{account:prod} by {app}", +// "style": { +// "palette": "blue" +// } +// } +// ], +// "time": { +// "live_span": "1mo" +// }, +// "title": "Avg of system.cpu.user over account:prod by app", +// "legend_size": "2", +// "type": "heatmap", +// "events": [ +// { +// "q": "env:prod", +// "tags_execution": "and" +// } +// ] +// }, +// "layout": { +// "y": 2, +// "x": 3, +// "height": 15, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardHeatMapConfig = ` +resource "datadog_dashboard" "heatmap_dashboard" { + title = "Acceptance Test Heatmap Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + heatmap_definition { + title = "Avg of system.cpu.user over account:prod by app" + title_align = "center" + title_size = "16" + yaxis { + max = "100" + } + request { + q = "avg:system.cpu.user{account:prod} by {app}" + style { + palette = "blue" + } + } + + time = { + live_span = "1mo" + } + //event { + // q = "env:prod" + // tags_execution = "and" + //} + //legend_size = "2" + } + } +} +` + +var datadogDashboardHeatMapAsserts = []string{ + "title = Acceptance Test Heatmap Widget Dashboard", + "description = Created using the Datadog provider in Terraform", + "layout_type = ordered", + "is_read_only = true", + "widget.0.heatmap_definition.0.title = Avg of system.cpu.user over account:prod by app", + "widget.0.heatmap_definition.0.title_align = center", + "widget.0.heatmap_definition.0.title_size = 16", + "widget.0.heatmap_definition.0.request.0.q = avg:system.cpu.user{account:prod} by {app}", + "widget.0.heatmap_definition.0.request.0.style.0.palette = blue", + "widget.0.heatmap_definition.0.yaxis.0.include_zero = false", + "widget.0.heatmap_definition.0.yaxis.0.label =", + "widget.0.heatmap_definition.0.yaxis.0.max = 100", + "widget.0.heatmap_definition.0.yaxis.0.scale =", + "widget.0.heatmap_definition.0.yaxis.0.min =", + "widget.0.heatmap_definition.0.time.live_span = 1mo", +} + +func TestAccDatadogDashboardHeatMap(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardHeatMapConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.heatmap_dashboard", checkDashboardExists(accProvider), datadogDashboardHeatMapAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardHeatMap_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardHeatMapConfig, + }, + { + ResourceName: "datadog_dashboard.heatmap_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_hostmap_test.go b/datadog/resource_datadog_dashboard_hostmap_test.go new file mode 100644 index 000000000..705838125 --- /dev/null +++ b/datadog/resource_datadog_dashboard_hostmap_test.go @@ -0,0 +1,162 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Hostmap Example", +// "created_at": "2020-06-09T13:05:44.107887+00:00", +// "modified_at": "2020-06-09T13:07:21.567789+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "style": { +// "fill_min": "10", +// "fill_max": "30", +// "palette": "YlOrRd", +// "palette_flip": true +// }, +// "title_size": "16", +// "title": "system.cpu.idle, system.cpu.user", +// "title_align": "center", +// "node_type": "host", +// "no_metric_hosts": true, +// "group": [ +// "region" +// ], +// "requests": { +// "size": { +// "q": "max:system.cpu.user{env:prod} by {host}" +// }, +// "fill": { +// "q": "avg:system.cpu.idle{env:prod} by {host}" +// } +// }, +// "no_group_hosts": true, +// "type": "hostmap", +// "scope": [ +// "env:prod" +// ] +// }, +// "layout": { +// "y": 2, +// "x": 3, +// "height": 22, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardHostMapConfig = ` +resource "datadog_dashboard" "hostmap_dashboard" { + title = "Acceptance Test Host Map Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + hostmap_definition { + style { + fill_min = "10" + fill_max = "30" + palette = "YlOrRd" + palette_flip = true + } + node_type = "host" + no_metric_hosts = "true" + group = ["region"] + request { + size { + q = "max:system.cpu.user{env:prod} by {host}" + } + fill { + q = "avg:system.cpu.idle{env:prod} by {host}" + } + } + no_group_hosts = "true" + scope = ["env:prod"] + title = "system.cpu.idle, system.cpu.user" + title_align = "right" + title_size = "16" + } + } +} +` + +var datadogDashboardHostMapAsserts = []string{ + "widget.0.hostmap_definition.0.style.0.palette_flip = true", + "widget.0.hostmap_definition.0.request.0.fill.0.q = avg:system.cpu.idle{env:prod} by {host}", + "widget.0.hostmap_definition.0.title = system.cpu.idle, system.cpu.user", + "widget.0.hostmap_definition.0.node_type = host", + "widget.0.hostmap_definition.0.title_align = right", + "widget.0.hostmap_definition.0.no_metric_hosts = true", + "description = Created using the Datadog provider in Terraform", + "layout_type = ordered", + "widget.0.hostmap_definition.0.style.0.palette = YlOrRd", + "widget.0.hostmap_definition.0.scope.0 = env:prod", + "widget.0.hostmap_definition.0.title_size = 16", + "widget.0.hostmap_definition.0.style.0.fill_max = 30", + "widget.0.hostmap_definition.0.style.0.fill_min = 10", + "widget.0.hostmap_definition.0.no_group_hosts = true", + "widget.0.hostmap_definition.0.request.0.size.0.q = max:system.cpu.user{env:prod} by {host}", + "is_read_only = true", + "title = Acceptance Test Host Map Widget Dashboard", + "widget.0.hostmap_definition.0.group.0 = region", +} + +func TestAccDatadogDashboardHostMap(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardHostMapConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.hostmap_dashboard", checkDashboardExists(accProvider), datadogDashboardHostMapAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardHostMap_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardHostMapConfig, + }, + { + ResourceName: "datadog_dashboard.hostmap_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_iframe_test.go b/datadog/resource_datadog_dashboard_iframe_test.go new file mode 100644 index 000000000..1f679d273 --- /dev/null +++ b/datadog/resource_datadog_dashboard_iframe_test.go @@ -0,0 +1,113 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - IFrame Example", +// "created_at": "2020-06-09T13:36:50.905652+00:00", +// "modified_at": "2020-06-09T13:37:07.261954+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "url": "https://en.wikipedia.org/wiki/Datadog", +// "type": "iframe" +// }, +// "layout": { +// "y": 2, +// "x": 18, +// "height": 12, +// "width": 12 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardIFrameConfig = ` +resource "datadog_dashboard" "iframe_dashboard" { + title = "Acceptance Test IFrame Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "free" + is_read_only = "true" + + widget { + iframe_definition { + url = "https://en.wikipedia.org/wiki/Datadog" + } + layout = { + height = 43 + width = 32 + x = 5 + y = 5 + } + } +} +` + +var datadogDashboardIFrameAsserts = []string{ + "description = Created using the Datadog provider in Terraform", + "is_read_only = true", + "widget.0.iframe_definition.0.url = https://en.wikipedia.org/wiki/Datadog", + "widget.0.layout.height = 43", + "title = Acceptance Test IFrame Widget Dashboard", + "widget.0.layout.x = 5", + "widget.0.layout.y = 5", + "layout_type = free", + "widget.0.layout.width = 32", +} + +func TestAccDatadogDashboardIFrame(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardIFrameConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.iframe_dashboard", checkDashboardExists(accProvider), datadogDashboardIFrameAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardIFrame_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardIFrameConfig, + }, + { + ResourceName: "datadog_dashboard.iframe_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_image_test.go b/datadog/resource_datadog_dashboard_image_test.go new file mode 100644 index 000000000..4b64c59d6 --- /dev/null +++ b/datadog/resource_datadog_dashboard_image_test.go @@ -0,0 +1,119 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Image Example", +// "created_at": "2020-06-09T13:35:49.700883+00:00", +// "modified_at": "2020-06-09T13:36:10.777106+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "url": "https://i.picsum.photos/id/826/200/300.jpg", +// "sizing": "fit", +// "margin": "small", +// "type": "image" +// }, +// "layout": { +// "y": 2, +// "x": 8, +// "height": 12, +// "width": 12 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardImageConfig = ` +resource "datadog_dashboard" "image_dashboard" { + title = "Acceptance Test Image Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "free" + is_read_only = "true" + + widget { + image_definition { + url = "https://i.picsum.photos/id/826/200/300.jpg" + sizing = "fit" + margin = "small" + } + layout = { + height = 43 + width = 32 + x = 5 + y = 5 + } + } +} +` + +var datadogDashboardImageAsserts = []string{ + "widget.0.image_definition.0.sizing = fit", + "title = Acceptance Test Image Widget Dashboard", + "widget.0.layout.y = 5", + "widget.0.layout.x = 5", + "widget.0.image_definition.0.margin = small", + "widget.0.layout.height = 43", + "layout_type = free", + "widget.0.layout.width = 32", + "is_read_only = true", + "description = Created using the Datadog provider in Terraform", + "widget.0.image_definition.0.url = https://i.picsum.photos/id/826/200/300.jpg", +} + +func TestAccDatadogDashboardImage(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardImageConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.image_dashboard", checkDashboardExists(accProvider), datadogDashboardImageAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardImage_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardImageConfig, + }, + { + ResourceName: "datadog_dashboard.image_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_log_stream_test.go b/datadog/resource_datadog_dashboard_log_stream_test.go new file mode 100644 index 000000000..e5b902124 --- /dev/null +++ b/datadog/resource_datadog_dashboard_log_stream_test.go @@ -0,0 +1,158 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Logstream Example", +// "created_at": "2020-06-09T13:29:37.131810+00:00", +// "modified_at": "2020-06-09T13:31:03.844403+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "sort": { +// "column": "time", +// "order": "desc" +// }, +// "show_message_column": true, +// "title_size": "16", +// "title": "Log Stream", +// "title_align": "right", +// "message_display": "expanded-md", +// "indexes": [], +// "columns": [ +// "core_host", +// "core_service" +// ], +// "time": { +// "live_span": "1d" +// }, +// "query": "status:error env:prod", +// "type": "log_stream", +// "show_date_column": true +// }, +// "layout": { +// "y": 1, +// "x": 1, +// "height": 36, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardLogStreamConfig = ` +resource "datadog_dashboard" "log_stream_dashboard" { + title = "Acceptance Test Log Stream Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "free" + is_read_only = "true" + + widget { + log_stream_definition { + title = "Log Stream" + title_align = "right" + title_size = "16" + show_message_column = "true" + message_display = "expanded-md" + query = "status:error env:prod" + show_date_column = "true" + indexes = [] + columns = ["core_host", "core_service"] + time = { + live_span = "1d" + } + sort { + column = "time" + order = "desc" + } + } + layout = { + height = 43 + width = 32 + x = 5 + y = 5 + } + } +} +` + +var datadogDashboardLogStreamAsserts = []string{ + "description = Created using the Datadog provider in Terraform", + "widget.0.log_stream_definition.0.query = status:error env:prod", + "widget.0.log_stream_definition.0.title_align = right", + "widget.0.log_stream_definition.0.show_date_column = true", + "widget.0.log_stream_definition.0.columns.0 = core_host", + "layout_type = free", + "widget.0.log_stream_definition.0.show_message_column = true", + "widget.0.log_stream_definition.0.time.live_span = 1d", + "widget.0.layout.width = 32", + "widget.0.layout.x = 5", + "is_read_only = true", + "widget.0.log_stream_definition.0.message_display = expanded-md", + "widget.0.layout.height = 43", + "title = Acceptance Test Log Stream Widget Dashboard", + "widget.0.log_stream_definition.0.columns.1 = core_service", + "widget.0.log_stream_definition.0.title_size = 16", + "widget.0.log_stream_definition.0.logset =", + "widget.0.layout.y = 5", + "widget.0.log_stream_definition.0.sort.0.column = time", + "widget.0.log_stream_definition.0.title = Log Stream", + "widget.0.log_stream_definition.0.sort.0.order = desc", +} + +func TestAccDatadogDashboardLogStream(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardLogStreamConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.log_stream_dashboard", checkDashboardExists(accProvider), datadogDashboardLogStreamAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardLogStream_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardLogStreamConfig, + }, + { + ResourceName: "datadog_dashboard.log_stream_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_manage_status_test.go b/datadog/resource_datadog_dashboard_manage_status_test.go new file mode 100644 index 000000000..a587d817f --- /dev/null +++ b/datadog/resource_datadog_dashboard_manage_status_test.go @@ -0,0 +1,146 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Manage Status Example", +// "created_at": "2020-06-09T13:24:12.975441+00:00", +// "modified_at": "2020-06-09T13:25:14.195517+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "sort": "triggered,desc", +// "count": 50, +// "title_size": "20", +// "title": "", +// "title_align": "center", +// "hide_zero_counts": true, +// "start": 0, +// "summary_type": "combined", +// "color_preference": "background", +// "query": "env:prod group_status:alert", +// "show_last_triggered": true, +// "type": "manage_status", +// "display_format": "countsAndList" +// }, +// "layout": { +// "y": 3, +// "x": 1, +// "height": 25, +// "width": 50 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardManageStatusConfig = ` +resource "datadog_dashboard" "manage_status_dashboard" { + title = "Acceptance Test Manage Status Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "free" + is_read_only = "true" + + widget { + manage_status_definition { + sort = "triggered,desc" + count = "50" + title_size = "20" + title = "" + title_align = "center" + hide_zero_counts = true + start = "0" + summary_type = "combined" + color_preference = "background" + query = "env:prod group_status:alert" + show_last_triggered = true + display_format = "countsAndList" + } + layout = { + height = 43 + width = 32 + x = 5 + y = 5 + } + } +} +` + +var datadogDashboardManageStatusAsserts = []string{ + "widget.0.manage_status_definition.0.color_preference = background", + "widget.0.layout.x = 5", + "widget.0.layout.height = 43", + "layout_type = free", + "is_read_only = true", + "widget.0.manage_status_definition.0.display_format = countsAndList", + "description = Created using the Datadog provider in Terraform", + "widget.0.layout.width = 32", + "widget.0.manage_status_definition.0.hide_zero_counts = true", + "widget.0.layout.y = 5", + "widget.0.manage_status_definition.0.summary_type = combined", + "widget.0.manage_status_definition.0.show_last_triggered = true", + "widget.0.manage_status_definition.0.title =", + "widget.0.manage_status_definition.0.title_size = 20", + "widget.0.manage_status_definition.0.sort = triggered,desc", + "widget.0.manage_status_definition.0.title_align = center", + "widget.0.manage_status_definition.0.start = 0", + "widget.0.manage_status_definition.0.count = 50", + "title = Acceptance Test Manage Status Widget Dashboard", + "widget.0.manage_status_definition.0.query = env:prod group_status:alert", +} + +func TestAccDatadogDashboardManageStatus(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardManageStatusConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.manage_status_dashboard", checkDashboardExists(accProvider), datadogDashboardManageStatusAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardManageStatus_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardManageStatusConfig, + }, + { + ResourceName: "datadog_dashboard.manage_status_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_note_test.go b/datadog/resource_datadog_dashboard_note_test.go new file mode 100644 index 000000000..2955834a2 --- /dev/null +++ b/datadog/resource_datadog_dashboard_note_test.go @@ -0,0 +1,121 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Notes Example", +// "created_at": "2020-06-09T13:40:21.730235+00:00", +// "modified_at": "2020-06-09T13:40:45.349378+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "tick_pos": "50%", +// "show_tick": true, +// "type": "note", +// "tick_edge": "bottom", +// "text_align": "center", +// "content": "This is a note widget", +// "font_size": "18", +// "background_color": "green" +// }, +// "layout": { +// "y": 3, +// "x": 7, +// "height": 24, +// "width": 18 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardNoteConfig = ` +resource "datadog_dashboard" "note_dashboard" { + title = "Acceptance Test Notes Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + note_definition { + tick_pos= "50%" + show_tick = true + tick_edge = "bottom" + text_align = "center" + content = "This is a note widget" + font_size = "18" + background_color = "green" + } + } +} +` + +var datadogDashboardNoteAsserts = []string{ + "description = Created using the Datadog provider in Terraform", + "widget.0.note_definition.0.content = This is a note widget", + "title = Acceptance Test Notes Widget Dashboard", + "widget.0.note_definition.0.font_size = 18", + "widget.0.note_definition.0.text_align = center", + "widget.0.note_definition.0.show_tick = true", + "widget.0.note_definition.0.tick_edge = bottom", + "layout_type = ordered", + "is_read_only = true", + "widget.0.note_definition.0.tick_pos = 50%", + "widget.0.note_definition.0.background_color = green", +} + +func TestAccDatadogDashboardNote(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardNoteConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.note_dashboard", checkDashboardExists(accProvider), datadogDashboardNoteAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardNote_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardNoteConfig, + }, + { + ResourceName: "datadog_dashboard.note_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_query_table_test.go b/datadog/resource_datadog_dashboard_query_table_test.go new file mode 100644 index 000000000..cc2d32153 --- /dev/null +++ b/datadog/resource_datadog_dashboard_query_table_test.go @@ -0,0 +1,210 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Query Table Example", +// "created_at": "2020-06-09T11:53:33.269271+00:00", +// "modified_at": "2020-06-09T11:57:11.580865+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "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", +// "value": 90, +// "comparator": "<" +// }, +// { +// "palette": "white_on_red", +// "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", +// "value": 50, +// "comparator": ">" +// } +// ], +// "alias": "system load" +// } +// ], +// "type": "query_table" +// }, +// "layout": { +// "y": 1, +// "x": 1, +// "height": 32, +// "width": 54 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardQueryTableConfig = ` +resource "datadog_dashboard" "query_table_dashboard" { + title = "Acceptance Test Query Table Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + query_table_definition { + title_size = "16" + title = "system.cpu.user, system.load.1" + title_align = "right" + time = { + live_span = "1d" + } + request { + aggregator = "max" + conditional_formats { + palette = "white_on_green" + value = 90 + comparator = "<" + } + conditional_formats { + palette = "white_on_red" + value = 90 + comparator = ">=" + } + q = "avg:system.cpu.user{account:prod} by {service, team}" + alias = "cpu user" + limit = 25 + order = "desc" + } + request { + q = "avg:system.load.1{*} by {service, team}" + aggregator = "last" + conditional_formats { + palette = "custom_bg" + value = 50 + comparator = ">" + } + alias = "system load" + } + } + } +} +` + +var datadogDashboardQueryTableAsserts = []string{ + "widget.0.query_table_definition.0.time.live_span = 1d", + "widget.0.query_table_definition.0.request.1.order =", + "widget.0.query_table_definition.0.request.0.conditional_formats.0.timeframe =", + "widget.0.query_table_definition.0.request.0.q = avg:system.cpu.user{account:prod} by {service, team}", + "widget.0.query_table_definition.0.request.0.conditional_formats.0.custom_fg_color =", + "widget.0.query_table_definition.0.request.1.conditional_formats.0.comparator = >", + "widget.0.query_table_definition.0.title_size = 16", + "widget.0.query_table_definition.0.request.0.conditional_formats.0.comparator = <", + "widget.0.query_table_definition.0.request.0.conditional_formats.0.value = 90", + "widget.0.query_table_definition.0.request.0.conditional_formats.1.image_url =", + "widget.0.query_table_definition.0.request.0.conditional_formats.1.hide_value = false", + "widget.0.query_table_definition.0.request.1.conditional_formats.0.timeframe =", + "description = Created using the Datadog provider in Terraform", + "widget.0.query_table_definition.0.request.0.conditional_formats.0.palette = white_on_green", + "widget.0.query_table_definition.0.request.0.conditional_formats.0.custom_bg_color =", + "widget.0.query_table_definition.0.request.1.q = avg:system.load.1{*} by {service, team}", + "title = Acceptance Test Query Table Widget Dashboard", + "widget.0.query_table_definition.0.request.0.conditional_formats.1.value = 90", + "widget.0.query_table_definition.0.request.0.conditional_formats.1.custom_bg_color =", + "widget.0.query_table_definition.0.request.1.aggregator = last", + "widget.0.query_table_definition.0.request.1.conditional_formats.0.custom_fg_color =", + "widget.0.query_table_definition.0.request.1.limit = 0", + "widget.0.query_table_definition.0.request.0.conditional_formats.0.hide_value = false", + "widget.0.query_table_definition.0.request.0.aggregator = max", + "widget.0.query_table_definition.0.request.1.conditional_formats.0.palette = custom_bg", + "widget.0.query_table_definition.0.request.1.alias = system load", + "widget.0.query_table_definition.0.request.0.order = desc", + "widget.0.query_table_definition.0.request.0.conditional_formats.0.image_url =", + "widget.0.query_table_definition.0.request.0.conditional_formats.1.comparator = >=", + "widget.0.query_table_definition.0.request.0.alias = cpu user", + "widget.0.query_table_definition.0.request.0.conditional_formats.1.palette = white_on_red", + "widget.0.query_table_definition.0.request.1.conditional_formats.0.value = 50", + "widget.0.query_table_definition.0.request.1.conditional_formats.0.custom_bg_color =", + "widget.0.query_table_definition.0.request.1.conditional_formats.0.image_url =", + "widget.0.query_table_definition.0.request.1.conditional_formats.0.hide_value = false", + "is_read_only = true", + "widget.0.query_table_definition.0.request.0.limit = 25", + "widget.0.query_table_definition.0.request.0.conditional_formats.1.timeframe =", + "widget.0.query_table_definition.0.request.0.conditional_formats.1.custom_fg_color =", + "layout_type = ordered", + "widget.0.query_table_definition.0.title = system.cpu.user, system.load.1", + "widget.0.query_table_definition.0.title_align = right", +} + +func TestAccDatadogDashboardQueryTable(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardQueryTableConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.query_table_dashboard", checkDashboardExists(accProvider), datadogDashboardQueryTableAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardQueryTable_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardQueryTableConfig, + }, + { + ResourceName: "datadog_dashboard.query_table_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_query_value_test.go b/datadog/resource_datadog_dashboard_query_value_test.go new file mode 100644 index 000000000..631d78b2c --- /dev/null +++ b/datadog/resource_datadog_dashboard_query_value_test.go @@ -0,0 +1,176 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": null, +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Query Value example", +// "created_at": "2020-06-09T11:41:15.788029+00:00", +// "modified_at": "2020-06-09T11:44:13.755796+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "title": "Avg of system.mem.free over account:prod", +// "title_align": "center", +// "custom_unit": "Gib", +// "precision": 3, +// "time": { +// "live_span": "1h" +// }, +// "autoscale": true, +// "requests": [ +// { +// "q": "avg:system.mem.free{account:prod}", +// "aggregator": "max", +// "conditional_formats": [ +// { +// "palette": "white_on_red", +// "value": 9, +// "comparator": "<" +// }, +// { +// "palette": "white_on_green", +// "value": 9, +// "comparator": ">=" +// } +// ] +// } +// ], +// "type": "query_value" +// }, +// "layout": { +// "y": 2, +// "x": 2, +// "height": 15, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardQueryValueConfig = ` +resource "datadog_dashboard" "query_value_dashboard" { + title = "Acceptance Test Query Value Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + query_value_definition { + title = "Avg of system.mem.free over account:prod" + title_align = "center" + title_size = "16" + custom_unit = "Gib" + precision = "3" + autoscale = "true" + request { + q = "avg:system.mem.free{account:prod}" + aggregator = "max" + conditional_formats { + palette = "white_on_red" + value = "9" + comparator = "<" + } + conditional_formats { + palette = "white_on_green" + value = "9" + comparator = ">=" + } + } + time = { + live_span = "1h" + } + } + } +} +` + +var datadogDashboardQueryValueAsserts = []string{ + "widget.0.query_value_definition.0.request.0.conditional_formats.0.comparator = <", + "widget.0.query_value_definition.0.time.live_span = 1h", + "widget.0.query_value_definition.0.request.0.conditional_formats.0.palette = white_on_red", + "widget.0.query_value_definition.0.request.0.conditional_formats.0.image_url =", + "widget.0.query_value_definition.0.precision = 3", + "widget.0.query_value_definition.0.request.0.aggregator = max", + "layout_type = ordered", + "widget.0.query_value_definition.0.request.0.conditional_formats.1.palette = white_on_green", + "widget.0.query_value_definition.0.request.0.conditional_formats.1.custom_fg_color =", + "widget.0.query_value_definition.0.request.0.conditional_formats.1.value = 9", + "widget.0.query_value_definition.0.autoscale = true", + "widget.0.query_value_definition.0.request.0.q = avg:system.mem.free{account:prod}", + "widget.0.query_value_definition.0.request.0.conditional_formats.0.custom_bg_color =", + "widget.0.query_value_definition.0.request.0.conditional_formats.1.comparator = >=", + "widget.0.query_value_definition.0.title_size = 16", + "widget.0.query_value_definition.0.custom_unit = Gib", + "widget.0.query_value_definition.0.title_align = center", + "widget.0.query_value_definition.0.request.0.conditional_formats.0.value = 9", + "widget.0.query_value_definition.0.request.0.conditional_formats.0.hide_value = false", + "widget.0.query_value_definition.0.request.0.conditional_formats.0.timeframe =", + "widget.0.query_value_definition.0.request.0.conditional_formats.1.image_url =", + "widget.0.query_value_definition.0.request.0.conditional_formats.1.hide_value = false", + "widget.0.query_value_definition.0.request.0.conditional_formats.1.timeframe =", + "widget.0.query_value_definition.0.text_align =", + "widget.0.query_value_definition.0.title = Avg of system.mem.free over account:prod", + "widget.0.query_value_definition.0.request.0.conditional_formats.1.custom_bg_color =", + "widget.0.query_value_definition.0.request.0.conditional_formats.# = 2", + "description = Created using the Datadog provider in Terraform", + "widget.0.query_value_definition.0.request.0.conditional_formats.0.custom_fg_color =", + "is_read_only = true", +} + +func TestAccDatadogDashboardQueryValue(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardQueryValueConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.query_value_dashboard", checkDashboardExists(accProvider), datadogDashboardQueryValueAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardQueryValue_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardQueryValueConfig, + }, + { + ResourceName: "datadog_dashboard.query_value_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_scatterplot_test.go b/datadog/resource_datadog_dashboard_scatterplot_test.go new file mode 100644 index 000000000..eb70647de --- /dev/null +++ b/datadog/resource_datadog_dashboard_scatterplot_test.go @@ -0,0 +1,181 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Scatterplot Example", +// "created_at": "2020-06-09T13:14:45.961870+00:00", +// "modified_at": "2020-06-09T13:20:09.535055+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "yaxis": { +// "scale": "log", +// "include_zero": false, +// "min": "1", +// "label": "mem (Gib)" +// }, +// "title_align": "right", +// "color_by_groups": [ +// "app" +// ], +// "xaxis": { +// "scale": "log", +// "max": "100", +// "min": "0", +// "label": "cpu (%)", +// "include_zero": false, +// }, +// "time": { +// "live_span": "15m" +// }, +// "title": "system.mem.used and system.cpu.user by service,team,app colored by app", +// "requests": { +// "y": { +// "q": "avg:system.mem.used{env:prod} by {service, team, app}", +// "aggregator": "avg" +// }, +// "x": { +// "q": "avg:system.cpu.user{account:prod} by {service, team, app}", +// "aggregator": "avg" +// } +// }, +// "type": "scatterplot" +// }, +// "layout": { +// "y": 3, +// "x": 13, +// "height": 15, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardScatterplotConfig = ` +resource "datadog_dashboard" "scatterplot_dashboard" { + title = "Acceptance Test Scatterplot Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + scatterplot_definition { + title_size = "16" + yaxis { + scale = "log" + include_zero = false + min = "1" + label = "mem (Gib)" + } + title_align = "right" + color_by_groups = ["app"] + xaxis { + scale = "log" + max = "100" + min = "0" + label = "cpu (%)" + include_zero = false + } + time = { + live_span = "15m" + } + title = "system.mem.used and system.cpu.user by service,team,app colored by app" + request { + y { + q = "avg:system.mem.used{env:prod} by {service, team, app}" + aggregator = "avg" + } + x { + q = "avg:system.cpu.user{account:prod} by {service, team, app}" + aggregator = "avg" + } + } + } + } +} +` + +var datadogDashboardScatterplotAsserts = []string{ + "widget.0.scatterplot_definition.0.xaxis.0.min = 0", + "widget.0.scatterplot_definition.0.color_by_groups.0 = app", + "widget.0.scatterplot_definition.0.title = system.mem.used and system.cpu.user by service,team,app colored by app", + "widget.0.scatterplot_definition.0.xaxis.0.max = 100", + "widget.0.scatterplot_definition.0.yaxis.0.scale = log", + "is_read_only = true", + "widget.0.scatterplot_definition.0.title_size = 16", + "widget.0.scatterplot_definition.0.yaxis.0.min = 1", + "widget.0.scatterplot_definition.0.yaxis.0.label = mem (Gib)", + "widget.0.scatterplot_definition.0.xaxis.0.include_zero = false", + "widget.0.scatterplot_definition.0.request.0.x.0.q = avg:system.cpu.user{account:prod} by {service, team, app}", + "widget.0.scatterplot_definition.0.title_align = right", + "layout_type = ordered", + "title = Acceptance Test Scatterplot Widget Dashboard", + "widget.0.scatterplot_definition.0.request.0.x.0.aggregator = avg", + "widget.0.scatterplot_definition.0.yaxis.0.include_zero = false", + "widget.0.scatterplot_definition.0.time.live_span = 15m", + "widget.0.scatterplot_definition.0.yaxis.0.max =", + "description = Created using the Datadog provider in Terraform", + "widget.0.scatterplot_definition.0.request.0.y.0.q = avg:system.mem.used{env:prod} by {service, team, app}", + "widget.0.scatterplot_definition.0.xaxis.0.label = cpu (%)", + "widget.0.scatterplot_definition.0.request.0.y.0.aggregator = avg", + "widget.0.scatterplot_definition.0.xaxis.0.scale = log", +} + +func TestAccDatadogDashboardScatterplot(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardScatterplotConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.scatterplot_dashboard", checkDashboardExists(accProvider), datadogDashboardScatterplotAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardScatterplot_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardScatterplotConfig, + }, + { + ResourceName: "datadog_dashboard.scatterplot_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_service_map_test.go b/datadog/resource_datadog_dashboard_service_map_test.go new file mode 100644 index 000000000..95cfc2a7a --- /dev/null +++ b/datadog/resource_datadog_dashboard_service_map_test.go @@ -0,0 +1,109 @@ +package datadog + +//import ( +// "testing" +// +// "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +//) +// +//// JSON export used as test scenario +////{ +//// "notify_list": [], +//// "description": "", +//// "author_name": "--redacted--", +//// "id": "--redacted--", +//// "url": "--redacted--", +//// "template_variables": [], +//// "is_read_only": false, +//// "title": "TF - Service Map Example", +//// "created_at": "2020-06-09T13:32:03.535027+00:00", +//// "modified_at": "2020-06-09T13:32:50.224757+00:00", +//// "author_handle": "--redacted--", +//// "widgets": [ +//// { +//// "definition": { +//// "title_size": "16", +//// "service": "master-db", +//// "title": "env: prod, datacenter:us1.prod.dog, service: master-db", +//// "title_align": "left", +//// "filters": [ +//// "env:prod", +//// "datacenter:us1.prod.dog" +//// ], +//// "type": "servicemap" +//// }, +//// "layout": { +//// "y": 3, +//// "x": -1, +//// "height": 15, +//// "width": 47 +//// }, +//// "id": 0 +//// } +//// ], +//// "layout_type": "free" +////} +// +//const datadogDashboardServiceMapConfig = ` +//resource "datadog_dashboard" "service_map_dashboard" { +// title = "Acceptance Test Service Map Widget Dashboard" +// description = "Created using the Datadog provider in Terraform" +// layout_type = "ordered" +// is_read_only = "true" +// +// widget { +// servicemap_definition { +// title_size = "16" +// service = "master-db" +// title = "env: prod, datacenter:us1.prod.dog, service: master-db" +// title_align = "left" +// filters = ["env:prod","datacenter:us1.prod.dog"] +// } +// } +//} +//` +// +//var datadogDashboardServiceMapAsserts = []string{ +//} +// +//func TestAccDatadogDashboardServiceMap(t *testing.T) { +// accProviders, cleanup := testAccProviders(t) +// defer cleanup(t) +// accProvider := testAccProvider(t, accProviders) +// +// resource.Test(t, resource.TestCase{ +// PreCheck: func() { testAccPreCheck(t) }, +// Providers: accProviders, +// CheckDestroy: checkDashboardDestroy(accProvider), +// Steps: []resource.TestStep{ +// { +// Config: datadogDashboardServiceMapConfig, +// Check: resource.ComposeTestCheckFunc( +// testCheckResourceAttrs("datadog_dashboard.service_map_dashboard", checkDashboardExists(accProvider), datadogDashboardServiceMapAsserts)..., +// ), +// }, +// }, +// }) +//} +// +//func TestAccDatadogDashboardServiceMap_import(t *testing.T) { +// accProviders, cleanup := testAccProviders(t) +// defer cleanup(t) +// accProvider := testAccProvider(t, accProviders) +// +// resource.Test(t, resource.TestCase{ +// PreCheck: func() { testAccPreCheck(t) }, +// Providers: accProviders, +// CheckDestroy: checkDashboardDestroy(accProvider), +// Steps: []resource.TestStep{ +// { +// Config: datadogDashboardServiceMapConfig, +// }, +// { +// ResourceName: "datadog_dashboard.service_map_dashboard", +// ImportState: true, +// ImportStateVerify: true, +// }, +// }, +// }) +//} diff --git a/datadog/resource_datadog_dashboard_slo_test.go b/datadog/resource_datadog_dashboard_slo_test.go new file mode 100644 index 000000000..266929c2b --- /dev/null +++ b/datadog/resource_datadog_dashboard_slo_test.go @@ -0,0 +1,130 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - SLO Example", +// "created_at": "2020-06-09T13:41:36.039693+00:00", +// "modified_at": "2020-06-09T13:41:58.724155+00:00", +// "author_handle": "--redacted--m", +// "widgets": [ +// { +// "definition": { +// "time_windows": [ +// "90d", +// "previous_week", +// "month_to_date" +// ], +// "title_size": "16", +// "show_error_budget": true, +// "title": "", +// "title_align": "center", +// "slo_id": "b4c7739b2af25f9d947f828730357832", +// "view_mode": "both", +// "view_type": "detail", +// "type": "slo" +// }, +// "layout": { +// "y": 3, +// "x": 5, +// "height": 21, +// "width": 60 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardSLOConfig = ` +resource "datadog_dashboard" "slo_dashboard" { + title = "Acceptance Test SLO Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + service_level_objective_definition { + time_windows = ["90d","previous_week","month_to_date"] + title_size = "16" + show_error_budget = true + title = "" + title_align = "center" + slo_id = "b4c7739b2af25f9d947f828730357832" + view_mode = "both" + view_type = "detail" + } + } +} +` + +var datadogDashboardSLOAsserts = []string{ + "widget.0.service_level_objective_definition.0.title_size = 16", + "is_read_only = true", + "title = Acceptance Test SLO Widget Dashboard", + "widget.0.service_level_objective_definition.0.slo_id = b4c7739b2af25f9d947f828730357832", + "widget.0.service_level_objective_definition.0.view_mode = both", + "description = Created using the Datadog provider in Terraform", + "widget.0.service_level_objective_definition.0.time_windows.1 = previous_week", + "widget.0.service_level_objective_definition.0.title_align = center", + "widget.0.service_level_objective_definition.0.view_type = detail", + "widget.0.service_level_objective_definition.0.show_error_budget = true", + "widget.0.service_level_objective_definition.0.time_windows.0 = 90d", + "widget.0.service_level_objective_definition.0.title =", + "widget.0.service_level_objective_definition.0.time_windows.2 = month_to_date", + "layout_type = ordered", +} + +func TestAccDatadogDashboardSLO(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardSLOConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.slo_dashboard", checkDashboardExists(accProvider), datadogDashboardSLOAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardSLO_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardSLOConfig, + }, + { + ResourceName: "datadog_dashboard.slo_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_test.go b/datadog/resource_datadog_dashboard_test.go index d8b43cafb..9de55fb26 100644 --- a/datadog/resource_datadog_dashboard_test.go +++ b/datadog/resource_datadog_dashboard_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/terraform" ) -const datadogDashboardConfig = ` +const datadogOrderedDashboardConfig = ` resource "datadog_dashboard" "ordered_dashboard" { title = "Acceptance Test Ordered Dashboard" description = "Created using the Datadog provider in Terraform" @@ -195,7 +195,7 @@ resource "datadog_dashboard" "ordered_dashboard" { widget { timeseries_definition { request { - q= "avg:system.cpu.user{app:general} by {env}" + q = "avg:system.cpu.user{app:general} by {env}" display_type = "line" style { palette = "warm" @@ -205,7 +205,7 @@ resource "datadog_dashboard" "ordered_dashboard" { metadata { expression = "avg:system.cpu.user{app:general} by {env}" alias_name = "Alpha" - } + } } request { log_query { @@ -265,7 +265,7 @@ resource "datadog_dashboard" "ordered_dashboard" { marker { display_type = "error dashed" label = " z=6 " - value = "y = 4" + value = "y=4" } marker { display_type = "ok solid" @@ -401,7 +401,9 @@ resource "datadog_dashboard" "ordered_dashboard" { } } } +` +const datadogFreeDashboardConfig = ` resource "datadog_dashboard" "free_dashboard" { title = "Acceptance Test Free Dashboard" description = "Created using the Datadog provider in Terraform" @@ -582,7 +584,361 @@ resource "datadog_dashboard" "free_dashboard" { } ` -func TestAccDatadogDashboard_update(t *testing.T) { +var datadogOrderedDashboardAsserts = []string{ + // Dashboard metadata + "title = Acceptance Test Ordered Dashboard", + "description = Created using the Datadog provider in Terraform", + "layout_type = ordered", + "is_read_only = true", + "widget.# = 15", + // Alert Graph widget + "widget.0.alert_graph_definition.0.alert_id = 895605", + "widget.0.alert_graph_definition.0.viz_type = timeseries", + "widget.0.alert_graph_definition.0.title = Widget Title", + "widget.0.alert_graph_definition.0.time.live_span = 1h", + // Alert Value widget + "widget.1.alert_value_definition.0.alert_id = 895605", + "widget.1.alert_value_definition.0.precision = 3", + "widget.1.alert_value_definition.0.unit = b", + "widget.1.alert_value_definition.0.text_align = center", + "widget.1.alert_value_definition.0.title = Widget Title", + // Change widget + "widget.2.change_definition.0.request.0.q = avg:system.load.1{env:staging} by {account}", + "widget.2.change_definition.0.request.0.change_type = absolute", + "widget.2.change_definition.0.request.0.compare_to = week_before", + "widget.2.change_definition.0.request.0.increase_good = true", + "widget.2.change_definition.0.request.0.order_by = name", + "widget.2.change_definition.0.request.0.order_dir = desc", + "widget.2.change_definition.0.request.0.show_present = true", + "widget.2.change_definition.0.title = Widget Title", + "widget.2.change_definition.0.time.live_span = 1h", + // Distribution widget + "widget.3.distribution_definition.0.request.0.q = avg:system.load.1{env:staging} by {account}", + "widget.3.distribution_definition.0.request.0.style.0.palette = warm", + "widget.3.distribution_definition.0.title = Widget Title", + "widget.3.distribution_definition.0.time.live_span = 1h", + // Check Status widget + "widget.4.check_status_definition.0.check = aws.ecs.agent_connected", + "widget.4.check_status_definition.0.grouping = cluster", + "widget.4.check_status_definition.0.group_by.# = 2", + "widget.4.check_status_definition.0.group_by.0 = account", + "widget.4.check_status_definition.0.group_by.1 = cluster", + "widget.4.check_status_definition.0.tags.# = 2", + "widget.4.check_status_definition.0.tags.0 = account:demo", + "widget.4.check_status_definition.0.tags.1 = cluster:awseb-ruthebdog-env-8-dn3m6u3gvk", + "widget.4.check_status_definition.0.title = Widget Title", + "widget.4.check_status_definition.0.time.live_span = 1h", + // Heatmap widget + "widget.5.heatmap_definition.0.request.0.q = avg:system.load.1{env:staging} by {account}", + "widget.5.heatmap_definition.0.request.0.style.0.palette = warm", + "widget.5.heatmap_definition.0.yaxis.0.min = 1", + "widget.5.heatmap_definition.0.yaxis.0.max = 2", + "widget.5.heatmap_definition.0.yaxis.0.include_zero = true", + "widget.5.heatmap_definition.0.yaxis.0.scale = sqrt", + "widget.5.heatmap_definition.0.title = Widget Title", + "widget.5.heatmap_definition.0.time.live_span = 1h", + // Hostmap widget + "widget.6.hostmap_definition.0.request.0.fill.0.q = avg:system.load.1{*} by {host}", + "widget.6.hostmap_definition.0.request.0.size.0.q = avg:memcache.uptime{*} by {host}", + "widget.6.hostmap_definition.0.node_type = container", + "widget.6.hostmap_definition.0.group.# = 2", + "widget.6.hostmap_definition.0.group.0 = host", + "widget.6.hostmap_definition.0.group.1 = region", + "widget.6.hostmap_definition.0.scope.# = 2", + "widget.6.hostmap_definition.0.scope.0 = region:us-east-1", + "widget.6.hostmap_definition.0.scope.1 = aws_account:727006795293", + "widget.6.hostmap_definition.0.style.0.palette = yellow_to_green", + "widget.6.hostmap_definition.0.style.0.palette_flip = true", + "widget.6.hostmap_definition.0.style.0.fill_min = 10", + "widget.6.hostmap_definition.0.style.0.fill_max = 20", + "widget.6.hostmap_definition.0.title = Widget Title", + // Note widget + "widget.7.note_definition.0.content = note text", + "widget.7.note_definition.0.background_color = pink", + "widget.7.note_definition.0.font_size = 14", + "widget.7.note_definition.0.text_align = center", + "widget.7.note_definition.0.show_tick = true", + "widget.7.note_definition.0.tick_edge = left", + "widget.7.note_definition.0.tick_pos = 50%", + // Query Value widget + "widget.8.query_value_definition.0.request.0.q = avg:system.load.1{env:staging} by {account}", + "widget.8.query_value_definition.0.request.0.aggregator = sum", + "widget.8.query_value_definition.0.request.0.conditional_formats.# = 2", + "widget.8.query_value_definition.0.request.0.conditional_formats.0.comparator = <", + "widget.8.query_value_definition.0.request.0.conditional_formats.0.value = 2", + "widget.8.query_value_definition.0.request.0.conditional_formats.0.palette = white_on_green", + "widget.8.query_value_definition.0.request.0.conditional_formats.1.comparator = >", + "widget.8.query_value_definition.0.request.0.conditional_formats.1.value = 2.2", + "widget.8.query_value_definition.0.request.0.conditional_formats.1.palette = white_on_red", + "widget.8.query_value_definition.0.autoscale = true", + "widget.8.query_value_definition.0.custom_unit = xx", + "widget.8.query_value_definition.0.precision = 4", + "widget.8.query_value_definition.0.title = Widget Title", + "widget.8.query_value_definition.0.time.live_span = 1h", + // Scatterplot widget + "widget.9.scatterplot_definition.0.request.0.x.0.q = avg:system.cpu.user{*} by {service, account}", + "widget.9.scatterplot_definition.0.request.0.x.0.aggregator = max", + "widget.9.scatterplot_definition.0.request.0.y.0.q = avg:system.mem.used{*} by {service, account}", + "widget.9.scatterplot_definition.0.request.0.y.0.aggregator = min", + "widget.9.scatterplot_definition.0.color_by_groups.# = 2", + "widget.9.scatterplot_definition.0.color_by_groups.0 = account", + "widget.9.scatterplot_definition.0.color_by_groups.1 = apm-role-group", + "widget.9.scatterplot_definition.0.xaxis.0.include_zero = true", + "widget.9.scatterplot_definition.0.xaxis.0.label = x", + "widget.9.scatterplot_definition.0.xaxis.0.max = 2000", + "widget.9.scatterplot_definition.0.xaxis.0.min = 1", + "widget.9.scatterplot_definition.0.xaxis.0.scale = pow", + "widget.9.scatterplot_definition.0.yaxis.0.include_zero = false", + "widget.9.scatterplot_definition.0.yaxis.0.label = y", + "widget.9.scatterplot_definition.0.yaxis.0.max = 2222", + "widget.9.scatterplot_definition.0.yaxis.0.min = 5", + "widget.9.scatterplot_definition.0.yaxis.0.scale = log", + "widget.9.scatterplot_definition.0.title = Widget Title", + "widget.9.scatterplot_definition.0.time.live_span = 1h", + // Timeseries widget + "widget.10.timeseries_definition.0.request.0.q = avg:system.cpu.user{app:general} by {env}", + "widget.10.timeseries_definition.0.request.0.display_type = line", + "widget.10.timeseries_definition.0.request.0.style.0.palette = warm", + "widget.10.timeseries_definition.0.request.0.style.0.line_type = dashed", + "widget.10.timeseries_definition.0.request.0.style.0.line_width = thin", + "widget.10.timeseries_definition.0.request.0.metadata.0.expression = avg:system.cpu.user{app:general} by {env}", + "widget.10.timeseries_definition.0.request.0.metadata.0.alias_name = Alpha", + "widget.10.timeseries_definition.0.request.1.log_query.0.index = mcnulty", + "widget.10.timeseries_definition.0.request.1.log_query.0.compute.aggregation = count", + "widget.10.timeseries_definition.0.request.1.log_query.0.compute.facet = @duration", + "widget.10.timeseries_definition.0.request.1.log_query.0.compute.interval = 5000", + "widget.10.timeseries_definition.0.request.1.log_query.0.search.query = status:info", + "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.# = 1", + "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.facet = host", + "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.limit = 10", + "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.aggregation = avg", + "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.facet = @duration", + "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.order = desc", + "widget.10.timeseries_definition.0.request.1.display_type = area", + "widget.10.timeseries_definition.0.request.2.apm_query.0.index = apm-search", + "widget.10.timeseries_definition.0.request.2.apm_query.0.compute.aggregation = count", + "widget.10.timeseries_definition.0.request.2.apm_query.0.compute.facet = @duration", + "widget.10.timeseries_definition.0.request.2.apm_query.0.compute.interval = 5000", + "widget.10.timeseries_definition.0.request.2.apm_query.0.search.query = type:web", + "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.# = 1", + "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.facet = resource_name", + "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.limit = 50", + "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.aggregation = avg", + "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.facet = @string_query.interval", + "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.order = desc", + "widget.10.timeseries_definition.0.request.2.display_type = bars", + "widget.10.timeseries_definition.0.request.3.process_query.0.metric = process.stat.cpu.total_pct", + "widget.10.timeseries_definition.0.request.3.process_query.0.search_by = error", + "widget.10.timeseries_definition.0.request.3.process_query.0.filter_by.# = 1", + "widget.10.timeseries_definition.0.request.3.process_query.0.filter_by.0 = active", + "widget.10.timeseries_definition.0.request.3.process_query.0.limit = 50", + "widget.10.timeseries_definition.0.request.3.display_type = area", + "widget.10.timeseries_definition.0.marker.# = 2", + "widget.10.timeseries_definition.0.marker.0.display_type = error dashed", + "widget.10.timeseries_definition.0.marker.0.label = z=6 ", + "widget.10.timeseries_definition.0.marker.0.value = y=4", + "widget.10.timeseries_definition.0.marker.1.display_type = ok solid", + "widget.10.timeseries_definition.0.marker.1.label = x=8 ", + "widget.10.timeseries_definition.0.marker.1.value = 10 < y < 999", + "widget.10.timeseries_definition.0.title = Widget Title", + "widget.10.timeseries_definition.0.show_legend = true", + "widget.10.timeseries_definition.0.legend_size = 2", + "widget.10.timeseries_definition.0.time.live_span = 1h", + "widget.10.timeseries_definition.0.event.0.q = sources:test tags:1", + "widget.10.timeseries_definition.0.event.1.q = sources:test tags:2", + "widget.10.timeseries_definition.0.yaxis.0.scale = log", + "widget.10.timeseries_definition.0.yaxis.0.include_zero = false", + "widget.10.timeseries_definition.0.yaxis.0.max = 100", + // Toplist widget + "widget.11.toplist_definition.0.request.0.q = avg:system.cpu.user{app:general} by {env}", + "widget.11.toplist_definition.0.request.0.conditional_formats.# = 2", + "widget.11.toplist_definition.0.request.0.conditional_formats.0.comparator = <", + "widget.11.toplist_definition.0.request.0.conditional_formats.0.value = 2", + "widget.11.toplist_definition.0.request.0.conditional_formats.0.palette = white_on_green", + "widget.11.toplist_definition.0.request.0.conditional_formats.1.comparator = >", + "widget.11.toplist_definition.0.request.0.conditional_formats.1.value = 2.2", + "widget.11.toplist_definition.0.request.0.conditional_formats.1.palette = white_on_red", + "widget.11.toplist_definition.0.title = Widget Title", + // Group widget + "widget.12.group_definition.0.layout_type = ordered", + "widget.12.group_definition.0.title = Group Widget", + "widget.12.group_definition.0.widget.# = 2", + // Inner Note widget + "widget.12.group_definition.0.widget.0.note_definition.0.content = cluster note widget", + "widget.12.group_definition.0.widget.0.note_definition.0.background_color = yellow", + "widget.12.group_definition.0.widget.0.note_definition.0.font_size = 16", + "widget.12.group_definition.0.widget.0.note_definition.0.text_align = left", + "widget.12.group_definition.0.widget.0.note_definition.0.show_tick = false", + "widget.12.group_definition.0.widget.0.note_definition.0.tick_edge = left", + "widget.12.group_definition.0.widget.0.note_definition.0.tick_pos = 50%", + // Inner Alert Graph widget + "widget.12.group_definition.0.widget.1.alert_graph_definition.0.alert_id = 123", + "widget.12.group_definition.0.widget.1.alert_graph_definition.0.viz_type = toplist", + "widget.12.group_definition.0.widget.1.alert_graph_definition.0.title = Alert Graph", + "widget.12.group_definition.0.widget.1.alert_graph_definition.0.time.live_span = 1h", + // Service Level Objective widget + "widget.13.service_level_objective_definition.0.title = Widget Title", + "widget.13.service_level_objective_definition.0.view_type = detail", + "widget.13.service_level_objective_definition.0.slo_id = 56789", + "widget.13.service_level_objective_definition.0.show_error_budget = true", + "widget.13.service_level_objective_definition.0.view_mode = overall", + "widget.13.service_level_objective_definition.0.time_windows.# = 2", + "widget.13.service_level_objective_definition.0.time_windows.0 = 7d", + "widget.13.service_level_objective_definition.0.time_windows.1 = previous_week", + // Query Table widget + "widget.14.query_table_definition.0.request.0.q = avg:system.load.1{env:staging} by {account}", + "widget.14.query_table_definition.0.request.0.conditional_formats.# = 2", + "widget.14.query_table_definition.0.request.0.conditional_formats.0.comparator = <", + "widget.14.query_table_definition.0.request.0.conditional_formats.0.value = 2", + "widget.14.query_table_definition.0.request.0.conditional_formats.0.palette = white_on_green", + "widget.14.query_table_definition.0.request.0.conditional_formats.1.comparator = >", + "widget.14.query_table_definition.0.request.0.conditional_formats.1.value = 2.2", + "widget.14.query_table_definition.0.request.0.conditional_formats.1.palette = white_on_red", + "widget.14.query_table_definition.0.request.0.aggregator = sum", + "widget.14.query_table_definition.0.request.0.limit = 10", + "widget.14.query_table_definition.0.title = Widget Title", + "widget.14.query_table_definition.0.time.live_span = 1h", + // Template Variables + "template_variable.# = 2", + "template_variable.0.name = var_1", + "template_variable.0.prefix = host", + "template_variable.0.default = aws", + "template_variable.1.name = var_2", + "template_variable.1.prefix = service_name", + "template_variable.1.default = autoscaling", + "description = Created using the Datadog provider in Terraform", + + // Template Variable Presets + "template_variable_preset.# = 2", + "template_variable_preset.0.name = preset_1", + "template_variable_preset.0.template_variable.0.name = var_1", + "template_variable_preset.0.template_variable.0.value = var_1_value", + "template_variable_preset.0.template_variable.1.name = var_2", + "template_variable_preset.0.template_variable.1.value = var_2_value", + "template_variable_preset.1.name = preset_2", + "template_variable_preset.1.template_variable.0.name = var_1", + "template_variable_preset.1.template_variable.0.value = var_1_value", +} + +var datadogFreeDashboardAsserts = []string{ + // Dashboard metadata + "title = Acceptance Test Free Dashboard", + "description = Created using the Datadog provider in Terraform", + "layout_type = free", + "is_read_only = false", + "widget.# = 8", + + // Event Stream widget + "widget.0.event_stream_definition.0.query = *", + "widget.0.event_stream_definition.0.event_size = l", + "widget.0.event_stream_definition.0.title = Widget Title", + "widget.0.event_stream_definition.0.title_size = 16", + "widget.0.event_stream_definition.0.title_align = left", + "widget.0.event_stream_definition.0.time.live_span = 1h", + "widget.0.layout.height = 43", + "widget.0.layout.width = 32", + "widget.0.layout.x = 5", + "widget.0.layout.y = 5", + // Event Timeline widget + "widget.1.event_timeline_definition.0.query = *", + "widget.1.event_timeline_definition.0.title = Widget Title", + "widget.1.event_timeline_definition.0.title_align = left", + "widget.1.event_timeline_definition.0.title_size = 16", + "widget.1.event_timeline_definition.0.time.live_span = 1h", + "widget.1.layout.height = 9", + "widget.1.layout.width = 65", + "widget.1.layout.x = 42", + "widget.1.layout.y = 73", + // Free Text widget + "widget.2.free_text_definition.0.text = free text content", + "widget.2.free_text_definition.0.color = #d00", + "widget.2.free_text_definition.0.font_size = 88", + "widget.2.free_text_definition.0.text_align = left", + "widget.2.layout.height = 20", + "widget.2.layout.width = 30", + "widget.2.layout.x = 42", + "widget.2.layout.y = 5", + // Iframe widget + "widget.3.iframe_definition.0.url = http://google.com", + // Image widget + "widget.4.image_definition.0.url = https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350", + "widget.4.image_definition.0.sizing = fit", + "widget.4.image_definition.0.margin = small", + "widget.4.layout.height = 20", + "widget.4.layout.width = 30", + "widget.4.layout.x = 77", + "widget.4.layout.y = 7", + // Log Stream widget + "widget.5.log_stream_definition.0.logset = 19", + "widget.5.log_stream_definition.0.query = error", + "widget.5.log_stream_definition.0.columns.# = 3", + "widget.5.log_stream_definition.0.columns.0 = core_host", + "widget.5.log_stream_definition.0.columns.1 = core_service", + "widget.5.log_stream_definition.0.columns.2 = tag_source", + "widget.5.log_stream_definition.0.show_date_column = true", + "widget.5.log_stream_definition.0.show_message_column = true", + "widget.5.log_stream_definition.0.message_display = expanded-md", + "widget.5.log_stream_definition.0.sort.0.column = time", + "widget.5.log_stream_definition.0.sort.0.order = desc", + "widget.5.layout.height = 36", + "widget.5.layout.width = 32", + "widget.5.layout.x = 5", + "widget.5.layout.y = 51", + // Manage Status widget + "widget.6.manage_status_definition.0.color_preference = text", + "widget.6.manage_status_definition.0.count = 50", + "widget.6.manage_status_definition.0.display_format = countsAndList", + "widget.6.manage_status_definition.0.hide_zero_counts = true", + "widget.6.manage_status_definition.0.query = type:metric", + "widget.6.manage_status_definition.0.show_last_triggered = true", + "widget.6.manage_status_definition.0.sort = status,asc", + "widget.6.manage_status_definition.0.start = 0", + "widget.6.manage_status_definition.0.summary_type = monitors", + "widget.6.manage_status_definition.0.title = Widget Title", + "widget.6.manage_status_definition.0.title_align = left", + "widget.6.manage_status_definition.0.title_size = 16", + "widget.6.layout.height = 40", + "widget.6.layout.width = 30", + "widget.6.layout.x = 112", + "widget.6.layout.y = 55", + // Trace Service widget + "widget.7.trace_service_definition.0.display_format = three_column", + "widget.7.trace_service_definition.0.env = datad0g.com", + "widget.7.trace_service_definition.0.service = alerting-cassandra", + "widget.7.trace_service_definition.0.show_breakdown = true", + "widget.7.trace_service_definition.0.show_distribution = true", + "widget.7.trace_service_definition.0.show_errors = true", + "widget.7.trace_service_definition.0.show_hits = true", + "widget.7.trace_service_definition.0.show_latency = false", + "widget.7.trace_service_definition.0.show_resource_list = false", + "widget.7.trace_service_definition.0.size_format = large", + "widget.7.trace_service_definition.0.span_name = cassandra.query", + "widget.7.trace_service_definition.0.title = alerting-cassandra #env:datad0g.com", + "widget.7.trace_service_definition.0.title_align = center", + "widget.7.trace_service_definition.0.title_size = 13", + "widget.7.trace_service_definition.0.time.live_span = 1h", + // Template Variables + "template_variable.# = 2", + "template_variable.0.default = aws", + "template_variable.0.name = var_1", + "template_variable.0.prefix = host", + "template_variable.1.default = autoscaling", + "template_variable.1.name = var_2", + "template_variable.1.prefix = service_name", + + // Template Variable Presets + "template_variable_preset.# = 2", + "template_variable_preset.0.name = preset_1", + "template_variable_preset.0.template_variable.0.name = var_1", + "template_variable_preset.0.template_variable.0.value = var_1_value", + "template_variable_preset.0.template_variable.1.name = var_2", + "template_variable_preset.0.template_variable.1.value = var_2_value", + "template_variable_preset.1.name = preset_2", + "template_variable_preset.1.template_variable.0.name = var_1", + "template_variable_preset.1.template_variable.0.value = var_1_value", +} + +func TestAccDatadogOrderedDashboard(t *testing.T) { accProviders, cleanup := testAccProviders(t) defer cleanup(t) accProvider := testAccProvider(t, accProviders) @@ -593,362 +949,29 @@ func TestAccDatadogDashboard_update(t *testing.T) { CheckDestroy: checkDashboardDestroy(accProvider), Steps: []resource.TestStep{ { - Config: datadogDashboardConfig, + Config: datadogOrderedDashboardConfig, Check: resource.ComposeTestCheckFunc( - checkDashboardExists(accProvider), - // Ordered layout dashboard - - // Dashboard metadata - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "title", "Acceptance Test Ordered Dashboard"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "description", "Created using the Datadog provider in Terraform"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "layout_type", "ordered"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "is_read_only", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.#", "15"), - // Alert Graph widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.0.alert_graph_definition.0.alert_id", "895605"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.0.alert_graph_definition.0.viz_type", "timeseries"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.0.alert_graph_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.0.alert_graph_definition.0.time.live_span", "1h"), - // Alert Value widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.1.alert_value_definition.0.alert_id", "895605"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.1.alert_value_definition.0.precision", "3"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.1.alert_value_definition.0.unit", "b"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.1.alert_value_definition.0.text_align", "center"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.1.alert_value_definition.0.title", "Widget Title"), - // Change widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.request.0.q", "avg:system.load.1{env:staging} by {account}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.request.0.change_type", "absolute"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.request.0.compare_to", "week_before"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.request.0.increase_good", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.request.0.order_by", "name"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.request.0.order_dir", "desc"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.request.0.show_present", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.2.change_definition.0.time.live_span", "1h"), - // Distribution widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.3.distribution_definition.0.request.0.q", "avg:system.load.1{env:staging} by {account}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.3.distribution_definition.0.request.0.style.0.palette", "warm"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.3.distribution_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.3.distribution_definition.0.time.live_span", "1h"), - // Check Status widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.check", "aws.ecs.agent_connected"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.grouping", "cluster"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.group_by.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.group_by.0", "account"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.group_by.1", "cluster"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.tags.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.tags.0", "account:demo"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.tags.1", "cluster:awseb-ruthebdog-env-8-dn3m6u3gvk"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.4.check_status_definition.0.time.live_span", "1h"), - // Heatmap widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.5.heatmap_definition.0.request.0.q", "avg:system.load.1{env:staging} by {account}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.5.heatmap_definition.0.request.0.style.0.palette", "warm"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.5.heatmap_definition.0.yaxis.0.min", "1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.5.heatmap_definition.0.yaxis.0.max", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.5.heatmap_definition.0.yaxis.0.include_zero", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.5.heatmap_definition.0.yaxis.0.scale", "sqrt"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.5.heatmap_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.5.heatmap_definition.0.time.live_span", "1h"), - // Hostmap widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.request.0.fill.0.q", "avg:system.load.1{*} by {host}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.request.0.size.0.q", "avg:memcache.uptime{*} by {host}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.node_type", "container"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.group.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.group.0", "host"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.group.1", "region"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.scope.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.scope.0", "region:us-east-1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.scope.1", "aws_account:727006795293"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.style.0.palette", "yellow_to_green"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.style.0.palette_flip", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.style.0.fill_min", "10"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.style.0.fill_max", "20"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.6.hostmap_definition.0.title", "Widget Title"), - // Note widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.7.note_definition.0.content", "note text"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.7.note_definition.0.background_color", "pink"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.7.note_definition.0.font_size", "14"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.7.note_definition.0.text_align", "center"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.7.note_definition.0.show_tick", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.7.note_definition.0.tick_edge", "left"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.7.note_definition.0.tick_pos", "50%"), - // Query Value widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.q", "avg:system.load.1{env:staging} by {account}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.aggregator", "sum"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.conditional_formats.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.conditional_formats.0.comparator", "<"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.conditional_formats.0.value", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.conditional_formats.0.palette", "white_on_green"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.conditional_formats.1.comparator", ">"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.conditional_formats.1.value", "2.2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.request.0.conditional_formats.1.palette", "white_on_red"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.autoscale", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.custom_unit", "xx"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.precision", "4"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.8.query_value_definition.0.time.live_span", "1h"), - // Scatterplot widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.request.0.x.0.q", "avg:system.cpu.user{*} by {service, account}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.request.0.x.0.aggregator", "max"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.request.0.y.0.q", "avg:system.mem.used{*} by {service, account}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.request.0.y.0.aggregator", "min"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.color_by_groups.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.color_by_groups.0", "account"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.color_by_groups.1", "apm-role-group"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.xaxis.0.include_zero", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.xaxis.0.label", "x"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.xaxis.0.max", "2000"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.xaxis.0.min", "1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.xaxis.0.scale", "pow"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.yaxis.0.include_zero", "false"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.yaxis.0.label", "y"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.yaxis.0.max", "2222"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.yaxis.0.min", "5"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.yaxis.0.scale", "log"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.9.scatterplot_definition.0.time.live_span", "1h"), - // Timeseries widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.0.q", "avg:system.cpu.user{app:general} by {env}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.0.display_type", "line"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.0.style.0.palette", "warm"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.0.style.0.line_type", "dashed"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.0.style.0.line_width", "thin"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.0.metadata.0.expression", "avg:system.cpu.user{app:general} by {env}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.0.metadata.0.alias_name", "Alpha"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.index", "mcnulty"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.compute.aggregation", "count"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.compute.facet", "@duration"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.compute.interval", "5000"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.search.query", "status:info"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.#", "1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.facet", "host"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.limit", "10"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.aggregation", "avg"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.facet", "@duration"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.order", "desc"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.1.display_type", "area"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.index", "apm-search"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.compute.aggregation", "count"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.compute.facet", "@duration"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.compute.interval", "5000"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.search.query", "type:web"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.#", "1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.facet", "resource_name"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.limit", "50"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.aggregation", "avg"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.facet", "@string_query.interval"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.order", "desc"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.2.display_type", "bars"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.3.process_query.0.metric", "process.stat.cpu.total_pct"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.3.process_query.0.search_by", "error"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.3.process_query.0.filter_by.#", "1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.3.process_query.0.filter_by.0", "active"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.3.process_query.0.limit", "50"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.request.3.display_type", "area"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.marker.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.marker.0.display_type", "error dashed"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.marker.0.label", " z=6 "), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.marker.0.value", "y = 4"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.marker.1.display_type", "ok solid"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.marker.1.label", " x=8 "), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.marker.1.value", "10 < y < 999"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.show_legend", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.legend_size", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.time.live_span", "1h"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.event.0.q", "sources:test tags:1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.event.1.q", "sources:test tags:2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.yaxis.0.scale", "log"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.yaxis.0.include_zero", "false"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.10.timeseries_definition.0.yaxis.0.max", "100"), - // Toplist widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.request.0.q", "avg:system.cpu.user{app:general} by {env}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.request.0.conditional_formats.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.request.0.conditional_formats.0.comparator", "<"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.request.0.conditional_formats.0.value", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.request.0.conditional_formats.0.palette", "white_on_green"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.request.0.conditional_formats.1.comparator", ">"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.request.0.conditional_formats.1.value", "2.2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.request.0.conditional_formats.1.palette", "white_on_red"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.11.toplist_definition.0.title", "Widget Title"), - // Group widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.layout_type", "ordered"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.title", "Group Widget"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.#", "2"), - // Inner Note widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.0.note_definition.0.content", "cluster note widget"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.0.note_definition.0.background_color", "yellow"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.0.note_definition.0.font_size", "16"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.0.note_definition.0.text_align", "left"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.0.note_definition.0.show_tick", "false"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.0.note_definition.0.tick_edge", "left"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.0.note_definition.0.tick_pos", "50%"), - // Inner Alert Graph widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.1.alert_graph_definition.0.alert_id", "123"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.1.alert_graph_definition.0.viz_type", "toplist"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.1.alert_graph_definition.0.title", "Alert Graph"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.12.group_definition.0.widget.1.alert_graph_definition.0.time.live_span", "1h"), - // Service Level Objective widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.13.service_level_objective_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.13.service_level_objective_definition.0.view_type", "detail"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.13.service_level_objective_definition.0.slo_id", "56789"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.13.service_level_objective_definition.0.show_error_budget", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.13.service_level_objective_definition.0.view_mode", "overall"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.13.service_level_objective_definition.0.time_windows.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.13.service_level_objective_definition.0.time_windows.0", "7d"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.13.service_level_objective_definition.0.time_windows.1", "previous_week"), - // Query Table widget - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.q", "avg:system.load.1{env:staging} by {account}"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.conditional_formats.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.conditional_formats.0.comparator", "<"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.conditional_formats.0.value", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.conditional_formats.0.palette", "white_on_green"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.conditional_formats.1.comparator", ">"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.conditional_formats.1.value", "2.2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.conditional_formats.1.palette", "white_on_red"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.aggregator", "sum"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.request.0.limit", "10"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "widget.14.query_table_definition.0.time.live_span", "1h"), - // Template Variables - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable.0.name", "var_1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable.0.prefix", "host"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable.0.default", "aws"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable.1.name", "var_2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable.1.prefix", "service_name"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable.1.default", "autoscaling"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "description", "Created using the Datadog provider in Terraform"), - - // Template Variable Presets - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.0.name", "preset_1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.0.template_variable.0.name", "var_1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.0.template_variable.0.value", "var_1_value"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.0.template_variable.1.name", "var_2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.0.template_variable.1.value", "var_2_value"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.1.name", "preset_2"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.1.template_variable.0.name", "var_1"), - resource.TestCheckResourceAttr("datadog_dashboard.ordered_dashboard", "template_variable_preset.1.template_variable.0.value", "var_1_value"), - - // Free layout dashboard - - // Dashboard metadata - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "title", "Acceptance Test Free Dashboard"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "description", "Created using the Datadog provider in Terraform"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "layout_type", "free"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "is_read_only", "false"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.#", "8"), + testCheckResourceAttrs("datadog_dashboard.ordered_dashboard", checkDashboardExists(accProvider), datadogOrderedDashboardAsserts)..., + ), + }, + }, + }) +} - // Event Stream widget - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.event_stream_definition.0.query", "*"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.event_stream_definition.0.event_size", "l"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.event_stream_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.event_stream_definition.0.title_size", "16"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.event_stream_definition.0.title_align", "left"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.event_stream_definition.0.time.live_span", "1h"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.layout.height", "43"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.layout.width", "32"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.layout.x", "5"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.0.layout.y", "5"), - // Event Timeline widget - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.event_timeline_definition.0.query", "*"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.event_timeline_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.event_timeline_definition.0.title_align", "left"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.event_timeline_definition.0.title_size", "16"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.event_timeline_definition.0.time.live_span", "1h"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.layout.height", "9"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.layout.width", "65"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.layout.x", "42"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.1.layout.y", "73"), - // Free Text widget - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.2.free_text_definition.0.text", "free text content"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.2.free_text_definition.0.color", "#d00"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.2.free_text_definition.0.font_size", "88"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.2.free_text_definition.0.text_align", "left"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.2.layout.height", "20"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.2.layout.width", "30"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.2.layout.x", "42"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.2.layout.y", "5"), - // Iframe widget - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.3.iframe_definition.0.url", "http://google.com"), - // Image widget - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.4.image_definition.0.url", "https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&h=350"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.4.image_definition.0.sizing", "fit"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.4.image_definition.0.margin", "small"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.4.layout.height", "20"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.4.layout.width", "30"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.4.layout.x", "77"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.4.layout.y", "7"), - // Log Stream widget - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.logset", "19"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.query", "error"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.columns.#", "3"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.columns.0", "core_host"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.columns.1", "core_service"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.columns.2", "tag_source"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.show_date_column", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.show_message_column", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.message_display", "expanded-md"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.sort.0.column", "time"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.log_stream_definition.0.sort.0.order", "desc"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.layout.height", "36"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.layout.width", "32"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.layout.x", "5"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.5.layout.y", "51"), - // Manage Status widget - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.color_preference", "text"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.count", "50"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.display_format", "countsAndList"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.hide_zero_counts", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.query", "type:metric"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.show_last_triggered", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.sort", "status,asc"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.start", "0"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.summary_type", "monitors"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.title", "Widget Title"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.title_align", "left"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.manage_status_definition.0.title_size", "16"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.layout.height", "40"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.layout.width", "30"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.layout.x", "112"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.6.layout.y", "55"), - // Trace Service widget - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.display_format", "three_column"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.env", "datad0g.com"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.service", "alerting-cassandra"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.show_breakdown", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.show_distribution", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.show_errors", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.show_hits", "true"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.show_latency", "false"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.show_resource_list", "false"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.size_format", "large"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.span_name", "cassandra.query"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.title", "alerting-cassandra #env:datad0g.com"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.title_align", "center"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.title_size", "13"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "widget.7.trace_service_definition.0.time.live_span", "1h"), - // Template Variables - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable.0.default", "aws"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable.0.name", "var_1"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable.0.prefix", "host"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable.1.default", "autoscaling"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable.1.name", "var_2"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable.1.prefix", "service_name"), +func TestAccDatadogFreeDashboard(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) - // Template Variable Presets - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.#", "2"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.0.name", "preset_1"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.0.template_variable.0.name", "var_1"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.0.template_variable.0.value", "var_1_value"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.0.template_variable.1.name", "var_2"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.0.template_variable.1.value", "var_2_value"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.1.name", "preset_2"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.1.template_variable.0.name", "var_1"), - resource.TestCheckResourceAttr("datadog_dashboard.free_dashboard", "template_variable_preset.1.template_variable.0.value", "var_1_value"), + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogFreeDashboardConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.free_dashboard", checkDashboardExists(accProvider), datadogFreeDashboardAsserts)..., ), }, }, @@ -966,13 +989,16 @@ func TestAccDatadogDashboard_import(t *testing.T) { CheckDestroy: checkDashboardDestroy(accProvider), Steps: []resource.TestStep{ { - Config: datadogDashboardConfig, + Config: datadogOrderedDashboardConfig, }, { ResourceName: "datadog_dashboard.ordered_dashboard", ImportState: true, ImportStateVerify: true, }, + { + Config: datadogFreeDashboardConfig, + }, { ResourceName: "datadog_dashboard.free_dashboard", ImportState: true, diff --git a/datadog/resource_datadog_dashboard_timeseries_test.go b/datadog/resource_datadog_dashboard_timeseries_test.go new file mode 100644 index 000000000..84146529e --- /dev/null +++ b/datadog/resource_datadog_dashboard_timeseries_test.go @@ -0,0 +1,621 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": null, +// "author_name": "--redacted--", +// "id": "--redacted--", +// "url": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "title": "TF - Timeseries example", +// "created_at": "2020-03-12T15:04:00.466540+00:00", +// "modified_at": "2020-06-09T10:15:58.451756+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "yaxis": { +// "max": "599999" +// }, +// "title_align": "left", +// "markers": [ +// { +// "display_type": "error dashed", +// "value": "y = 500000", +// "label": "y = 500000" +// } +// ], +// "show_legend": true, +// "requests": [ +// { +// "q": "avg:system.cpu.user{env:prod} by {app}", +// "style": { +// "line_width": "thin", +// "palette": "dog_classic", +// "line_type": "solid" +// }, +// "display_type": "line" +// }, +// { +// "style": { +// "line_width": "normal", +// "palette": "cool", +// "line_type": "solid" +// }, +// "display_type": "line", +// "log_query": { +// "index": "*", +// "search": { +// "query": "" +// }, +// "group_by": [ +// { +// "facet": "service", +// "sort": { +// "aggregation": "count", +// "order": "desc" +// }, +// "limit": 10 +// } +// ], +// "compute": { +// "aggregation": "count" +// } +// } +// }, +// { +// "style": { +// "line_width": "thick", +// "palette": "warm", +// "line_type": "dashed" +// }, +// "apm_query": { +// "index": "trace-search", +// "search": { +// "query": "" +// }, +// "group_by": [ +// { +// "facet": "status", +// "sort": { +// "facet": "env", +// "aggregation": "cardinality", +// "order": "desc" +// }, +// "limit": 10 +// } +// ], +// "compute": { +// "facet": "env", +// "interval": 1000, +// "aggregation": "cardinality" +// } +// }, +// "display_type": "line" +// }, +// { +// "style": { +// "line_width": "normal", +// "palette": "purple", +// "line_type": "solid" +// }, +// "process_query": { +// "search_by": "", +// "metric": "process.stat.cpu.total_pct.norm", +// "limit": 10, +// "filter_by": [ +// "account:prod" +// ] +// }, +// "display_type": "line" +// }, +// { +// "style": { +// "line_width": "normal", +// "palette": "orange", +// "line_type": "solid" +// }, +// "display_type": "area", +// "network_query": { +// "index": "netflow-search", +// "search": { +// "query": "network.transport:udp network.destination.ip:\"*\"" +// }, +// "group_by": [ +// { +// "facet": "source_region" +// }, +// { +// "facet": "dest_environment" +// } +// ], +// "compute": { +// "facet": "network.bytes_read", +// "aggregation": "sum" +// } +// } +// }, +// { +// "style": { +// "line_width": "normal", +// "palette": "grey", +// "line_type": "solid" +// }, +// "rum_query": { +// "index": "*", +// "search": { +// "query": "" +// }, +// "group_by": [ +// { +// "facet": "service", +// "sort": { +// "facet": "@duration", +// "aggregation": "avg", +// "order": "desc" +// }, +// "limit": 10 +// } +// ], +// "compute": { +// "facet": "@duration", +// "interval": 10, +// "aggregation": "avg" +// } +// }, +// "display_type": "area" +// }, +// { +// "style": { +// "line_width": "normal", +// "palette": "red", +// "line_type": "solid" +// }, +// "display_type": "line", +// "profilemetrics_query": { +// "index": "*", +// "search": { +// "query": "" +// }, +// "group_by": [ +// { +// "facet": "language", +// "sort": { +// "aggregation": "avg", +// "order": "desc" +// }, +// "limit": 10 +// } +// ], +// "compute": { +// "interval": 300000, +// "aggregation": "avg" +// } +// } +// }, +// { +// "style": { +// "line_width": "thin", +// "palette": "green", +// "line_type": "dotted" +// }, +// "security_query": { +// "index": "*", +// "search": { +// "query": "" +// }, +// "group_by": [ +// { +// "facet": "service", +// "sort": { +// "facet": "status", +// "aggregation": "cardinality", +// "order": "desc" +// }, +// "limit": 10 +// } +// ], +// "compute": { +// "facet": "status", +// "aggregation": "cardinality" +// } +// }, +// "display_type": "bars" +// } +// ], +// "time": { +// "live_span": "5m" +// }, +// "title": "system.cpu.user, env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...", +// "legend_size": "2", +// "type": "timeseries", +// "events": [ +// { +// "q": "sources:test tags:1", +// "tags_execution": "and" +// } +// ] +// }, +// "layout": { +// "y": 2, +// "x": 1, +// "height": 15, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardTimeseriesConfig = ` +resource "datadog_dashboard" "timeseries_dashboard" { + title = "Acceptance Test Timeseries Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + widget { + timeseries_definition { + title_size = "16" + title_align = "left" + show_legend = "true" + title = "system.cpu.user, env, process.stat.cpu.total_pct.norm, network.bytes_read, @d..." + legend_size = "2" + yaxis { + label = "" + min = "0" + include_zero = "true" + max = "599999" + scale = "" + } + marker { + display_type = "error dashed" + value = "y=500000" + label = "y=500000" + } + marker { + display_type = "warning dashed" + value = "y=400000" + label = "y=400000" + } + time = { + live_span = "5m" + } + event { + q = "sources:test tags:1" + tags_execution = "and" + } + request { + q = "avg:system.cpu.user{env:prod} by {app}" + style { + line_width = "thin" + palette = "dog_classic" + line_type = "solid" + } + display_type = "line" + } + request { + style { + line_width = "normal" + palette = "cool" + line_type = "solid" + } + display_type = "line" + log_query { + index = "*" + search = { + query = "" + } + group_by { + facet = "service" + sort = { + aggregation = "count" + order = "desc" + } + limit = "10" + } + compute = { + aggregation = "count" + } + } + } + request { + style { + line_width = "thick" + palette = "warm" + line_type = "dashed" + } + apm_query { + index = "trace-search" + search = { + query = "" + } + group_by { + facet = "status" + sort = { + facet = "env" + aggregation = "cardinality" + order = "desc" + } + limit = "10" + } + compute = { + facet = "env" + interval = "1000" + aggregation = "cardinality" + } + } + display_type = "line" + } + request { + style { + line_width = "normal" + palette = "purple" + line_type = "solid" + } + process_query { + search_by = "" + metric = "process.stat.cpu.total_pct.norm" + limit = "10" + filter_by = ["account:prod"] + } + display_type = "line" + } + //request { + // style { + // line_width = "normal" + // palette = "orange" + // line_type = "solid" + // } + // display_type = "area" + // network_query { + // index = "netflow-search" + // search { + // query = "network.transport:udp network.destination.ip:\"*\"" + // } + // group_by { + // facet = "source_region" + // } + // group_by { + // facet = "dest_environment" + // } + // compute { + // facet = "network.bytes_read" + // aggregation = "sum" + // } + // } + //} + //request { + // style { + // line_width = "normal" + // palette = "grey" + // line_type = "solid" + // } + // rum_query { + // index = "*" + // search { + // query = "" + // } + // group_by { + // facet = "service" + // sort = { + // facet = "@duration" + // aggregation = "avg" + // order = "desc" + // } + // limit = "10" + // } + // compute { + // facet = "@duration" + // interval = "10" + // aggregation = "avg" + // } + // } + // display_type = "area" + //} + //request { + // style { + // line_width = "normal" + // palette = "red" + // line_type = "solid" + // } + // display_type = "line" + // profilemetrics_query { + // index = "*" + // search { + // query = "" + // } + // group_by { + // facet = "language" + // sort = { + // aggregation = "avg" + // order = "desc" + // } + // limit = "10" + // } + // compute { + // interval = "300000" + // aggregation = "avg" + // } + // } + //} + //request { + // style { + // line_width = "thin" + // palette = "green" + // line_type = "dotted" + // } + // security_query { + // index = "*" + // search { + // query = "" + // } + // group_by { + // facet = "service" + // sort = { + // facet = "status" + // aggregation = "cardinality" + // order = "desc" + // } + // limit = "10" + // } + // compute { + // facet = "status" + // aggregation = "cardinality" + // } + // } + // display_type = "bars" + //} + } + } +} +` + +var datadogDashboardTimeseriesAsserts = []string{ + "title = Acceptance Test Timeseries Widget Dashboard", + "is_read_only = true", + "layout_type = ordered", + "description = Created using the Datadog provider in Terraform", + "widget.0.timeseries_definition.0.show_legend = true", + "widget.0.timeseries_definition.0.yaxis.0.min = 0", + "widget.0.timeseries_definition.0.yaxis.0.max = 599999", + "widget.0.timeseries_definition.0.yaxis.0.label =", + "widget.0.timeseries_definition.0.yaxis.0.include_zero = true", + "widget.0.timeseries_definition.0.yaxis.0.scale =", + "widget.0.timeseries_definition.0.legend_size = 2", + "widget.0.timeseries_definition.0.time.live_span = 5m", + "widget.0.timeseries_definition.0.title_align = left", + "widget.0.timeseries_definition.0.title = system.cpu.user, env, process.stat.cpu.total_pct.norm, network.bytes_read, @d...", + "widget.0.timeseries_definition.0.title_size = 16", + "widget.0.timeseries_definition.0.event.0.q = sources:test tags:1", + "widget.0.timeseries_definition.0.event.0.tags_execution = and", + "widget.0.timeseries_definition.0.marker.# = 2", + "widget.0.timeseries_definition.0.marker.0.label = y=500000", + "widget.0.timeseries_definition.0.marker.0.value = y=500000", + "widget.0.timeseries_definition.0.marker.0.display_type = error dashed", + "widget.0.timeseries_definition.0.marker.1.label = y=400000", + "widget.0.timeseries_definition.0.marker.1.display_type = warning dashed", + "widget.0.timeseries_definition.0.marker.1.value = y=400000", + "widget.0.timeseries_definition.0.request.# = 4", + "widget.0.timeseries_definition.0.request.0.style.0.line_width = thin", + "widget.0.timeseries_definition.0.request.0.style.0.line_type = solid", + "widget.0.timeseries_definition.0.request.0.process_query.# = 0", + "widget.0.timeseries_definition.0.request.0.metadata.# = 0", + "widget.0.timeseries_definition.0.request.0.log_query.# = 0", + "widget.0.timeseries_definition.0.request.0.display_type = line", + "widget.0.timeseries_definition.0.request.0.style.# = 1", + "widget.0.timeseries_definition.0.request.0.apm_query.# = 0", + "widget.0.timeseries_definition.0.request.0.style.0.palette = dog_classic", + "widget.0.timeseries_definition.0.request.0.q = avg:system.cpu.user{env:prod} by {app}", + "widget.0.timeseries_definition.0.request.1.log_query.0.index = *", + "widget.0.timeseries_definition.0.request.1.style.# = 1", + "widget.0.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.aggregation = count", + "widget.0.timeseries_definition.0.request.1.style.0.line_width = normal", + "widget.0.timeseries_definition.0.request.1.log_query.0.search.query =", + "widget.0.timeseries_definition.0.request.1.style.0.palette = cool", + "widget.0.timeseries_definition.0.request.1.log_query.0.compute.% = 1", + "widget.0.timeseries_definition.0.request.1.log_query.0.group_by.0.facet = service", + "widget.0.timeseries_definition.0.request.1.log_query.0.compute.aggregation = count", + "widget.0.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.order = desc", + "widget.0.timeseries_definition.0.request.1.metadata.# = 0", + "widget.0.timeseries_definition.0.request.1.q =", + "widget.0.timeseries_definition.0.request.1.log_query.0.search.% = 1", + "widget.0.timeseries_definition.0.request.1.apm_query.# = 0", + "widget.0.timeseries_definition.0.request.1.log_query.0.group_by.# = 1", + "widget.0.timeseries_definition.0.request.1.log_query.0.group_by.0.limit = 10", + "widget.0.timeseries_definition.0.request.1.style.0.line_type = solid", + "widget.0.timeseries_definition.0.request.1.log_query.0.group_by.0.sort.% = 2", + "widget.0.timeseries_definition.0.request.1.process_query.# = 0", + "widget.0.timeseries_definition.0.request.1.display_type = line", + "widget.0.timeseries_definition.0.request.1.log_query.# = 1", + "widget.0.timeseries_definition.0.request.3.style.0.line_type = solid", + "widget.0.timeseries_definition.0.request.3.process_query.0.metric = process.stat.cpu.total_pct.norm", + "widget.0.timeseries_definition.0.request.2.style.0.line_type = dashed", + "widget.0.timeseries_definition.0.request.2.display_type = line", + "widget.0.timeseries_definition.0.request.2.apm_query.0.group_by.0.facet = status", + "widget.0.timeseries_definition.0.request.2.apm_query.0.group_by.# = 1", + "widget.0.timeseries_definition.0.request.2.apm_query.# = 1", + "widget.0.timeseries_definition.0.request.2.process_query.# = 0", + "widget.0.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.order = desc", + "widget.0.timeseries_definition.0.request.2.apm_query.0.search.query =", + "widget.0.timeseries_definition.0.request.2.log_query.# = 0", + "widget.0.timeseries_definition.0.request.2.apm_query.0.compute.interval = 1000", + "widget.0.timeseries_definition.0.request.2.apm_query.0.compute.% = 3", + "widget.0.timeseries_definition.0.request.2.metadata.# = 0", + "widget.0.timeseries_definition.0.request.2.apm_query.0.search.% = 1", + "widget.0.timeseries_definition.0.request.2.style.0.line_width = thick", + "widget.0.timeseries_definition.0.request.2.q =", + "widget.0.timeseries_definition.0.request.2.style.0.palette = warm", + "widget.0.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.% = 3", + "widget.0.timeseries_definition.0.request.2.apm_query.0.compute.facet = env", + "widget.0.timeseries_definition.0.request.2.apm_query.0.group_by.0.limit = 10", + "widget.0.timeseries_definition.0.request.2.style.# = 1", + "widget.0.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.aggregation = cardinality", + "widget.0.timeseries_definition.0.request.2.apm_query.0.compute.aggregation = cardinality", + "widget.0.timeseries_definition.0.request.2.apm_query.0.group_by.0.sort.facet = env", + "widget.0.timeseries_definition.0.request.2.apm_query.0.index = trace-search", + "widget.0.timeseries_definition.0.request.3.log_query.# = 0", + "widget.0.timeseries_definition.0.request.3.process_query.0.search_by =", + "widget.0.timeseries_definition.0.request.3.style.# = 1", + "widget.0.timeseries_definition.0.request.3.metadata.# = 0", + "widget.0.timeseries_definition.0.request.3.process_query.0.limit = 10", + "widget.0.timeseries_definition.0.request.3.process_query.# = 1", + "widget.0.timeseries_definition.0.request.3.process_query.0.filter_by.0 = account:prod", + "widget.0.timeseries_definition.0.request.3.process_query.0.filter_by.# = 1", + "widget.0.timeseries_definition.0.request.3.q =", + "widget.0.timeseries_definition.0.request.3.display_type = line", + "widget.0.timeseries_definition.0.request.3.apm_query.# = 0", + "widget.0.timeseries_definition.0.request.3.style.0.palette = purple", + "widget.0.timeseries_definition.0.request.3.style.0.line_width = normal", +} + +func TestAccDatadogDashboardTimeseries(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardTimeseriesConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.timeseries_dashboard", checkDashboardExists(accProvider), datadogDashboardTimeseriesAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardTimeseries_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardTimeseriesConfig, + }, + { + ResourceName: "datadog_dashboard.timeseries_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_top_list_test.go b/datadog/resource_datadog_dashboard_top_list_test.go new file mode 100644 index 000000000..a742483bf --- /dev/null +++ b/datadog/resource_datadog_dashboard_top_list_test.go @@ -0,0 +1,146 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "id": "--redacted--", +// "title": "TF - Top List Example", +// "url": "--redacted--", +// "created_at": "2020-06-09T12:07:23.772156+00:00", +// "modified_at": "2020-06-09T12:10:02.808703+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "title_size": "16", +// "title": "Avg of system.core.user over account:prod by service,app", +// "title_align": "right", +// "time": { +// "live_span": "1w" +// }, +// "requests": [ +// { +// "q": "top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')", +// "conditional_formats": [ +// { +// "palette": "white_on_red", +// "value": 15000, +// "comparator": ">" +// } +// ] +// } +// ], +// "type": "toplist" +// }, +// "layout": { +// "y": 1, +// "x": 1, +// "height": 15, +// "width": 47 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardTopListConfig = ` +resource "datadog_dashboard" "top_list_dashboard" { + title = "Acceptance Test Top List Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "ordered" + is_read_only = "true" + + widget { + toplist_definition { + title_size = "16" + title = "Avg of system.core.user over account:prod by service,app" + title_align = "right" + time = { + live_span = "1w" + } + request { + q = "top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')" + conditional_formats { + palette = "white_on_red" + value = 15000 + comparator = ">" + } + } + } + } +} +` + +var datadogDashboardTopListAsserts = []string{ + "description = Created using the Datadog provider in Terraform", + "widget.0.toplist_definition.0.request.0.conditional_formats.0.timeframe =", + "widget.0.toplist_definition.0.request.0.conditional_formats.0.image_url =", + "layout_type = ordered", + "widget.0.toplist_definition.0.request.0.conditional_formats.0.comparator = >", + "title = Acceptance Test Top List Widget Dashboard", + "widget.0.toplist_definition.0.request.0.conditional_formats.0.custom_bg_color =", + "widget.0.toplist_definition.0.request.0.conditional_formats.0.palette = white_on_red", + "is_read_only = true", + "widget.0.toplist_definition.0.time.live_span = 1w", + "widget.0.toplist_definition.0.time.% = 1", + "widget.0.toplist_definition.0.request.0.conditional_formats.0.hide_value = false", + "widget.0.toplist_definition.0.request.0.q = top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')", + "widget.0.toplist_definition.0.title_size = 16", + "widget.0.toplist_definition.0.title_align = right", + "widget.0.toplist_definition.0.request.0.conditional_formats.0.value = 15000", + "widget.0.toplist_definition.0.title = Avg of system.core.user over account:prod by service,app", + "widget.0.toplist_definition.0.request.0.conditional_formats.0.custom_fg_color =", +} + +func TestAccDatadogDashboardTopList(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardTopListConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.top_list_dashboard", checkDashboardExists(accProvider), datadogDashboardTopListAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardTopList_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardTopListConfig, + }, + { + ResourceName: "datadog_dashboard.top_list_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} diff --git a/datadog/resource_datadog_dashboard_trace_service_test.go b/datadog/resource_datadog_dashboard_trace_service_test.go new file mode 100644 index 000000000..fe19bf71b --- /dev/null +++ b/datadog/resource_datadog_dashboard_trace_service_test.go @@ -0,0 +1,159 @@ +package datadog + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" +) + +// JSON export used as test scenario +//{ +// "notify_list": [], +// "description": "", +// "author_name": "--redacted--", +// "template_variables": [], +// "is_read_only": false, +// "id": "--redacted--", +// "title": "TF - Service Summary Example", +// "url": "--redacted--", +// "created_at": "2020-06-09T13:33:54.661635+00:00", +// "modified_at": "2020-06-09T13:34:41.222757+00:00", +// "author_handle": "--redacted--", +// "widgets": [ +// { +// "definition": { +// "span_name": "postgres.connection.rollback", +// "title_size": "16", +// "service": "postgres", +// "title": "postgres #env:datadoghq.com", +// "size_format": "large", +// "show_hits": true, +// "show_latency": true, +// "title_align": "center", +// "show_errors": true, +// "show_breakdown": true, +// "env": "datadoghq.com", +// "time": { +// "live_span": "30m" +// }, +// "show_distribution": true, +// "display_format": "three_column", +// "type": "trace_service", +// "show_resource_list": true +// }, +// "layout": { +// "y": 2, +// "x": 1, +// "height": 72, +// "width": 72 +// }, +// "id": 0 +// } +// ], +// "layout_type": "free" +//} + +const datadogDashboardTraceServiceConfig = ` +resource "datadog_dashboard" "trace_service_dashboard" { + title = "Acceptance Test Trace Service Widget Dashboard" + description = "Created using the Datadog provider in Terraform" + layout_type = "free" + is_read_only = "true" + + widget { + trace_service_definition { + span_name = "postgres.connection.rollback" + title_size = "16" + service = "postgres" + title = "postgres #env:datadoghq.com" + size_format = "large" + show_hits = true + show_latency = true + title_align = "center" + show_errors = true + show_breakdown = true + env = "datadoghq.com" + time = { + live_span = "30m" + } + show_distribution = true + display_format = "three_column" + show_resource_list = true + } + layout = { + height = 43 + width = 32 + x = 5 + y = 5 + } + } +} +` + +var datadogDashboardTraceServiceAsserts = []string{ + "widget.0.trace_service_definition.0.show_distribution = true", + "widget.0.trace_service_definition.0.title = postgres #env:datadoghq.com", + "is_read_only = true", + "widget.0.trace_service_definition.0.show_hits = true", + "widget.0.trace_service_definition.0.span_name = postgres.connection.rollback", + "widget.0.layout.height = 43", + "widget.0.trace_service_definition.0.size_format = large", + "widget.0.trace_service_definition.0.env = datadoghq.com", + "widget.0.layout.width = 32", + "layout_type = free", + "description = Created using the Datadog provider in Terraform", + "widget.0.trace_service_definition.0.display_format = three_column", + "widget.0.trace_service_definition.0.time.live_span = 30m", + "widget.0.trace_service_definition.0.show_resource_list = true", + "widget.0.trace_service_definition.0.show_errors = true", + "widget.0.trace_service_definition.0.title_align = center", + "widget.0.trace_service_definition.0.title_size = 16", + "widget.0.trace_service_definition.0.show_breakdown = true", + "widget.0.layout.x = 5", + "widget.0.layout.y = 5", + "widget.0.trace_service_definition.0.show_latency = true", + "widget.0.trace_service_definition.0.service = postgres", + "title = Acceptance Test Trace Service Widget Dashboard", +} + +func TestAccDatadogDashboardTraceService(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardTraceServiceConfig, + Check: resource.ComposeTestCheckFunc( + testCheckResourceAttrs("datadog_dashboard.trace_service_dashboard", checkDashboardExists(accProvider), datadogDashboardTraceServiceAsserts)..., + ), + }, + }, + }) +} + +func TestAccDatadogDashboardTraceService_import(t *testing.T) { + accProviders, cleanup := testAccProviders(t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardTraceServiceConfig, + }, + { + ResourceName: "datadog_dashboard.trace_service_dashboard", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +}