From d5d4a11290e6b27bfcca8f25ab17257c24526de4 Mon Sep 17 00:00:00 2001 From: Tone Date: Thu, 17 Sep 2020 11:32:16 +0200 Subject: [PATCH 1/5] Add dependencies between monitor, SLO & dashboards --- datadog/resource_datadog_dashboard.go | 1 + datadog/resource_datadog_service_level_objective.go | 1 + 2 files changed, 2 insertions(+) diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index b4f78fba0..393fb670b 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -3927,6 +3927,7 @@ func getServiceLevelObjectiveDefinitionSchema() map[string]*schema.Schema { "slo_id": { Type: schema.TypeString, Required: true, + ForceNew: true, }, "show_error_budget": { Type: schema.TypeBool, diff --git a/datadog/resource_datadog_service_level_objective.go b/datadog/resource_datadog_service_level_objective.go index f161b9bcb..f959931dc 100644 --- a/datadog/resource_datadog_service_level_objective.go +++ b/datadog/resource_datadog_service_level_objective.go @@ -114,6 +114,7 @@ func resourceDatadogServiceLevelObjective() *schema.Resource { ConflictsWith: []string{"query"}, Description: "A static set of monitor IDs to use as part of the SLO", Elem: &schema.Schema{Type: schema.TypeInt, MinItems: 1}, + ForceNew: true, }, // NOTE: This feature was introduced but it never worked and then it was removed. // We didn't trigger a major release since it never worked. However, this may be introduced later again. From 07e48c1415e04ef09f90a0850760b917678fb6d3 Mon Sep 17 00:00:00 2001 From: Tone Date: Thu, 17 Sep 2020 23:27:45 +0200 Subject: [PATCH 2/5] Test if a new monitor trigger a force recreate on slo --- ...elObjective_NewMonitorForceRecreate.freeze | 1 + ...evelObjective_NewMonitorForceRecreate.yaml | 2516 +++++++++++++++++ ...ce_datadog_service_level_objective_test.go | 110 + 3 files changed, 2627 insertions(+) create mode 100644 datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.freeze create mode 100644 datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.yaml diff --git a/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.freeze b/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.freeze new file mode 100644 index 000000000..91cbc8fbb --- /dev/null +++ b/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.freeze @@ -0,0 +1 @@ +2020-09-17T23:25:17.035277142+02:00 \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.yaml b/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.yaml new file mode 100644 index 000000000..76b9917c6 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.yaml @@ -0,0 +1,2516 @@ +--- +version: 1 +interactions: +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5913640659921199325" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 17 Sep 2020 21:25:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Qun3wOuA/hQDIFGQqCVlq+iNpWCXkp0WuL8O89aP44h3eJ/Ies+yK10ByBbIISnG + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3557462235553524323" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 17 Sep 2020 21:25:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - POuDbGLugqXrJfoVh1EySG2rrzsK54DWLRF5/pTAPkxizo7RlYf80RrCYTzc0hnv + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3998157153207276745" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor + method: POST + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name + for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - JpSPTIQ3ADIUVR7tKVVULYhgssheTcmYaILqA7y+vRKHVMoWYI3X+n8nhC2vhKFP + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "499" + X-Ratelimit-Reset: + - "2" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5299209823609073142" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340627 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name + for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - s0LsNvQsMm21RUzMLDODd6jiqqojzRfEoHLrnASSfK5zaa+QnpY16tmznkR4zVSs + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2999" + X-Ratelimit-Reset: + - "2" + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"description":"some updated description about foo SLO","id":"","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1480677226107497812" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo + method: POST + response: + body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"}],"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - mpg/BCzsUMOxVwcAuQg/6c40bDAb3ejXVT4tkiODN0ExybQ/Ia68faurJX6CivjX + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "499" + X-Ratelimit-Reset: + - "42" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2900927378434530323" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - O3O7xE5uwHtX7J0LqZ8TwbNGWo9Sdsox9lgU7fr/GZp13UzdkbKQZW76fPVpoSDj + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "261862774234434720" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/22340627 + method: GET + response: + body: '{"errors": ["SLO not found: 22340627 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, 17 Sep 2020 21:25: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.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7584229608177933056" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nuSFLkQ1s7gwoRNAfifc8jXTyjLsWBSRPtQKveq6qMTKGNJs/ULg6uo/9G1YZzFs + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4200370911076919751" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 17 Sep 2020 21:25:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - nFyTUry7tLSCWgKgQTsGO10dBCh8TOEhHGgwdexQMnQchHPTOyo6yaXIidoJXR1X + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8485911241188668230" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 17 Sep 2020 21:25:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - s0LsNvQsMm21RUzMLDODd6jiqqojzRfEoHLrnASSfK5zaa+QnpY16tmznkR4zVSs + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7101137599982765697" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor + method: POST + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name + for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - AqBVHmyy+L9zrCUEAQ2Jd2pwskksgC+7nOsWqbNjcjcM+9M/ChipUo2OR6Q8oPwE + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "498" + X-Ratelimit-Reset: + - "1" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4792862802382515037" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340630 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name + for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:19 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - pM+XKBj4qFLZ8yMOGFimFFWK4TZi4eDSQXhACYRLW8peTFy6SOt656nT+bVYauOi + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2998" + X-Ratelimit-Reset: + - "1" + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"description":"some updated description about foo SLO","id":"","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7596289587828729867" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo + method: POST + response: + body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"}],"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Rk64tCoF3V07+a4szeABxTtZIJ+mXpZWikk4VsgNuvqwu3MpGXqLHxCVHOt9N39v + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "498" + X-Ratelimit-Reset: + - "40" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8383607456063721579" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - laGkCMnt9yzADERvt5/nU5tJ2BKmoQx1BUE4x31rlC7mriAyKM9Zk5E+JikpAz3V + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "9222902821215744285" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - +TTazL1HF8qoxYARkG/60PGoq8sbkYkmqeurNry46zV0aHqBZfUrKqxtiyo42NRf + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1038537830567060544" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 17 Sep 2020 21:25:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Et2YiqVRxti9EZo6Gk/yyRrgDmYxZuoE62JE6GLJjDYX0PgDmkmo9d4ASFrtRIDj + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6456694714321368410" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340630 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name + for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - s0LsNvQsMm21RUzMLDODd6jiqqojzRfEoHLrnASSfK5zaa+QnpY16tmznkR4zVSs + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2999" + X-Ratelimit-Reset: + - "10" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7059955863305941404" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340630 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name + for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - d31ebXSBBNIfMRbwTUSeNjY3IxejCQxGK8GB7MdTMNs7w40n94in+BXmkLo5BsFJ + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2998" + X-Ratelimit-Reset: + - "10" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2440694564131368435" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DWKI7VfCUqAo/A5Bt78Xxe/X4KYslPnCs7Op8wV0HLmiqy7vAxg4/ViL6IoVzy03 + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3254398792891804959" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - zdUdESDt99y2SVrNik+lLSBmyFFFNlFUO4zEnFYNO3qGTBg30VN2+XGqoJzWlOgd + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5290817507996703689" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 17 Sep 2020 21:25:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Kee9VS5NjjPfA/YHh7xlRIB+loWgKfgYfbh+K0I50KRAhLkjH2oXj4YLUubPn5Pt + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2433662807571082881" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340630 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name + for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EsLH6+rdgSqeLdBeq9HZpt+45W9grH+dHsUtM9XuCxYJqQJyctcAVJKfVBiasXIW + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2997" + X-Ratelimit-Reset: + - "9" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6234645386776570371" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340630 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name + for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RNjkldB/U7jBomuDwniiFl3adRN7VFY0k6iblOqPBlb/lnmtli0Xp6qAxW+GhOfn + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2996" + X-Ratelimit-Reset: + - "9" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3033305019174658064" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - G84mPdYpSAGk3Cn+ow9K78cPip5wn5xve1MIezJYJmKYQLcpCyyPvAIMLsVAC7W/ + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4432079289447416190" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - I0yEH4xFhLuk+yM2GIR/dtCF29+DEBKb58kq6TOpApqsa53yIh0t7lSVmFnrgEx+ + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2116301005472120234" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + method: DELETE + response: + body: '{"data":["17b840a9186b5b7ebe036c193888fd60"],"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:22 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - VFEd9WEYHg4A4gkQ37Kh8VC+38V/yfH2X0MUdUVsECnCE1FSV9c52Sqrn7OQ0Mvj + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "49810226123591859" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340630 + method: DELETE + response: + body: '{"deleted_monitor_id":22340630}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:22 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - GzqFsJiHmsMG2ZkgPZxP4KU7BbP1543ieTDBlTOcSv7mMVZ5sYoywme9ykeCrzfU + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5709512008761597133" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/22340630 + method: GET + response: + body: '{"errors": ["SLO not found: 22340630 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, 17 Sep 2020 21:25:22 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.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6701310785581729005" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + method: GET + response: + body: '{"errors": ["SLO not found: 17b840a9186b5b7ebe036c193888fd60 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, 17 Sep 2020 21:25:22 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.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6866330030858693717" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 17 Sep 2020 21:25:22 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:22 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - iYQ/kN+Mucmn5lrokThXQXO7/WpLJkz6FPOiR0S18ewUC8B+Ld2MxmzWaRyon32u + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "948678055389641768" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340627 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name + for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - h/IXnJS1M5zKHh5ujv7CkNFB4pqHSDVrmy+nI86u4Ciy2MfrEYtp+07i0sugqnf8 + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2995" + X-Ratelimit-Reset: + - "7" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2963686579038711386" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340627 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name + for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 2V6J6bfi8Lp+2UjnPdTvcW5IjbRGxJrhStYZW/ACt/za6xfDiK/Y5IuDyUadsRtA + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2994" + X-Ratelimit-Reset: + - "7" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "395817607419057329" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8362688155966474549" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - X0denazzCFz4lg/ZyHfGjeZ1VIa7rKO/7Z2KZkRqN6haxCsk2JhjcqemiVcx/PmK + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7072450290444163473" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Thu, 17 Sep 2020 21:25:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - DRZWTHDeKolQqk6GEAFoSVDF1cV93C/z8xwO7umb9e0luQPYr8BUl8IXxXdpfaM5 + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6132755825976675797" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340627 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name + for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - U6D+zHwhpLcyO0Eu02dM74d99H/EBAKoYzfZlZJm0EgywWQgfESFIq6V9eRQe6Gm + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2993" + X-Ratelimit-Reset: + - "6" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8380391466152589892" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340627 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name + for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - CUBCyaoXY2JdeHi5oQm4sg9onCJMsjgVJ5jLk2ugM2iR7uz4Q+lvjzDdvtcYDFC3 + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2992" + X-Ratelimit-Reset: + - "6" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7808194180991402559" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - POuDbGLugqXrJfoVh1EySG2rrzsK54DWLRF5/pTAPkxizo7RlYf80RrCYTzc0hnv + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7618354030043679540" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - IEUzjgpnyUrp74lH2dqPweGXNQU7es3CY44HHPIdy7aSNeimMebMvcKCoCgyWWVx + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "314697125847582178" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + method: DELETE + response: + body: '{"data":["595414c16ced5658be2ee984ebded698"],"error":null}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - sbJ6i3VupQQcT7EDgPAdOxGmcKsvZJqf4l3SlQaWZNaaFfahh7BdNF3x5CttmH4Q + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2275366474563266511" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/monitor/22340627 + method: DELETE + response: + body: '{"deleted_monitor_id":22340627}' + headers: + Cache-Control: + - 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, 17 Sep 2020 21:25:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FP8Y2ks6/+u/R8ikARtQQYvp9IVj9nSQPYtAt3WVuBjumgKP35t8vnUuGfeHdr64 + X-Dd-Version: + - "35.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "237301997618622721" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/22340627 + method: GET + response: + body: '{"errors": ["SLO not found: 22340627 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, 17 Sep 2020 21:25: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.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2505414163922857468" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2011180226383939329" + url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + method: GET + response: + body: '{"errors": ["SLO not found: 595414c16ced5658be2ee984ebded698 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, 17 Sep 2020 21:25: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.3054346" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/resource_datadog_service_level_objective_test.go b/datadog/resource_datadog_service_level_objective_test.go index 869b1047f..3d22c0f46 100644 --- a/datadog/resource_datadog_service_level_objective_test.go +++ b/datadog/resource_datadog_service_level_objective_test.go @@ -101,6 +101,58 @@ resource "datadog_service_level_objective" "foo" { }`, uniq) } +func testAccCheckDatadogServiceLevelObjectiveConfigMonitor(uniq string) string { + return fmt.Sprintf(` +resource "datadog_monitor" "foo" { + name = "Name for monitor foo" + type = "query alert" + message = "some message Notify: @hipchat-channel" + query = "avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') >= 1" +} + +resource "datadog_service_level_objective" "foo" { + name = "%s" + type = "monitor" + description = "some updated description about foo SLO" + + thresholds { + timeframe = "7d" + target = 99.5 + warning = 99.8 + } + + monitor_ids = [ + datadog_monitor.foo.id + ] +}`, uniq) +} + +func testAccCheckDatadogServiceLevelObjectiveConfigForceRecreate(uniq string) string { + return fmt.Sprintf(` +resource "datadog_monitor" "foo" { + name = "Name for monitor foo" + type = "metric alert" + message = "some message Notify: @hipchat-channel" + query = "avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} > 2" +} + +resource "datadog_service_level_objective" "foo" { + name = "%s" + type = "monitor" + description = "some updated description about foo SLO" + + thresholds { + timeframe = "7d" + target = 99.5 + warning = 99.8 + } + + monitor_ids = [ + datadog_monitor.foo.id + ] +}`, uniq) +} + // tests func TestAccDatadogServiceLevelObjective_Basic(t *testing.T) { @@ -226,8 +278,66 @@ func TestAccDatadogServiceLevelObjective_InvalidMonitor(t *testing.T) { }) } +func TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate(t *testing.T) { + accProviders, clock, cleanup := testAccProviders(t, initRecorder(t)) + sloName := uniqueEntityName(clock, t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: testAccCheckDatadogServiceLevelObjectiveDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: testAccCheckDatadogServiceLevelObjectiveConfigMonitor(sloName), + Check: func(firstState *terraform.State) error { + firstSloId, _ := getSloIdHelper(firstState, accProvider) + resource.TestCheckResourceAttr("datadog_service_level_objective.foo", "id", firstSloId) + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: testAccCheckDatadogServiceLevelObjectiveDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: testAccCheckDatadogServiceLevelObjectiveConfigForceRecreate(sloName), + Check: func(secondState *terraform.State) error { + secondSloId, _ := getSloIdHelper(secondState, accProvider) + if secondSloId == firstSloId { + return fmt.Errorf("resource id may have change if the resource as been recreated") + } + return nil + }, + }, + }, + }) + return nil + }, + }, + }, + }) +} + // helpers +func getSloIdHelper(s *terraform.State, accProvider *schema.Provider) (string, error) { + providerConf := accProvider.Meta().(*ProviderConfiguration) + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 + for _, r := range s.RootModule().Resources { + sloResp, _, err := datadogClientV1.ServiceLevelObjectivesApi.GetSLO(authV1, r.Primary.ID).Execute() + if err != nil { + if strings.Contains(strings.ToLower(err.Error()), "not found") { + continue + } + return "", fmt.Errorf("received an error retrieving service level objective %s", err) + } + data := sloResp.GetData() + return data.GetId(), err + } + return "", fmt.Errorf("service level objective not found in current state") +} + func destroyServiceLevelObjectiveHelper(s *terraform.State, authV1 context.Context, datadogClientV1 *datadogV1.APIClient) error { for _, r := range s.RootModule().Resources { if r.Primary.ID != "" { From ab436bc6a8b30f2ac7d238faf0287636e46f6453 Mon Sep 17 00:00:00 2001 From: Tone Date: Fri, 18 Sep 2020 08:14:44 +0200 Subject: [PATCH 3/5] Add second test: monitor -> slo -> dashboard force recreate --- .github/workflows/test.yml | 1 + ...ogDashboard_NewMonitorForceRecreate.freeze | 1 + ...adogDashboard_NewMonitorForceRecreate.yaml | 3660 +++++++++++++++++ datadog/provider_test.go | 1 + ...rce_datadog_dashboard_dependencies_test.go | 167 + ...ce_datadog_service_level_objective_test.go | 18 +- 6 files changed, 3841 insertions(+), 7 deletions(-) create mode 100644 datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.freeze create mode 100644 datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.yaml create mode 100644 datadog/resource_datadog_dashboard_dependencies_test.go diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 947b98f2d..802ba2b13 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,6 +27,7 @@ jobs: env: GOFLAGS: "-mod=vendor" strategy: + fail-fast: false matrix: platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} diff --git a/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.freeze b/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.freeze new file mode 100644 index 000000000..811ef1bbf --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.freeze @@ -0,0 +1 @@ +2020-09-18T09:28:09.353490045+02:00 \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.yaml b/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.yaml new file mode 100644 index 000000000..d365f8c99 --- /dev/null +++ b/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.yaml @@ -0,0 +1,3660 @@ +--- +version: 1 +interactions: +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2006566260464116916" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:10 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:10 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - fD4Z/lU+RXqTTZ3a6QzIYIS71jYdOWOeKg+9gi8WTYoWGc4ju4awlLTlSP1eWtSz + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5225118977691285612" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - CUBCyaoXY2JdeHi5oQm4sg9onCJMsjgVJ5jLk2ugM2iR7uz4Q+lvjzDdvtcYDFC3 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2914478322941483529" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor + method: POST + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name + for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:12 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:12 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - pv0z9DOVfESVNK6d1tOJ7YfC31qHNEzJNjdRZStq3qVP6piD/gWCa9pwKd90Upzy + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "499" + X-Ratelimit-Reset: + - "8" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6975014618562122544" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361726 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name + for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - NVdxML/FOEgLJzsz37XLTVVLcoGTHoJzcuGu2ZwX+JAXQfJkO87pOpfJK6E0a8TN + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2999" + X-Ratelimit-Reset: + - "7" + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"description":"some updated description about foo SLO","id":"","monitor_ids":[22361726],"name":"Name for slo foo","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2288389017186500267" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo + method: POST + response: + body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name + for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"}],"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 1rfLNqcZg9qSlP5q1ooqPXZYUps72EabW3bwUPmbzupUim8D/FM4EJTrmumpukR0 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "499" + X-Ratelimit-Reset: + - "47" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4854781295462036155" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name + for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:13 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:13 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - RCObiQ2dtM/JQUOdAbTQmIrpsZR5eT9bZEwE14hAfjq3x8DBTBCy/8ina/nQCRGE + X-Dd-Version: + - "35.3055101" + 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":[],"template_variables":[],"title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","widgets":[{"definition":{"show_error_budget":true,"slo_id":"bc0d8813320a525f810fc78f492d2a74","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: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8336456126365935619" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard + method: POST + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"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: + - Fri, 18 Sep 2020 07:28:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - mpg/BCzsUMOxVwcAuQg/6c40bDAb3ejXVT4tkiODN0ExybQ/Ia68faurJX6CivjX + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5934565943716518123" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"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: + - Fri, 18 Sep 2020 07:28:15 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:15 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5132424911747064373" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/22361726 + method: GET + response: + body: '{"errors": ["SLO not found: 22361726 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: + - Fri, 18 Sep 2020 07:28:16 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3840738053292832132" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/xkv-w7g-fi2 + method: GET + response: + body: '{"message": "The resource could not be found.

\n\n\n", "code": + "404 Not Found", "title": "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: + - Fri, 18 Sep 2020 07:28:16 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1850566298787386843" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name + for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:16 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:16 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BZ+RYjLsV2y+9XXNTM/Wbkdcz3DkJnqgQFCAf9xIIxOOOd9x3Em2wjhPfW0piM2C + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8030758856598943690" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/22361726 + method: GET + response: + body: '{"errors": ["Dashboard with ID 22361726 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: + - Fri, 18 Sep 2020 07:28:17 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3388499676114161915" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"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: + - Fri, 18 Sep 2020 07:28:17 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:17 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BZ+RYjLsV2y+9XXNTM/Wbkdcz3DkJnqgQFCAf9xIIxOOOd9x3Em2wjhPfW0piM2C + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4036837974372389486" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:18 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:18 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7ZZAowMV9z1Vr+0y/WbNkvcDUXbHQ7uNKkyZU3E6k00RqTwxh53CgITxXoDQsQqv + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2882915363340943174" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8421521194810307379" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor + method: POST + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name + for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - mpg/BCzsUMOxVwcAuQg/6c40bDAb3ejXVT4tkiODN0ExybQ/Ia68faurJX6CivjX + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "499" + X-Ratelimit-Reset: + - "10" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7953251754162098449" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361728 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name + for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - ZTMib3S/rZeXw/RhaeaehRILC7QJAaERfyf3m4/am8FN44e9rxbkPcmk4YzKBISj + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2999" + X-Ratelimit-Reset: + - "10" + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"description":"some updated description about foo SLO","id":"","monitor_ids":[22361728],"name":"Name for slo foo","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - CreateSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1836838062475992595" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo + method: POST + response: + body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name + for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"}],"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:20 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:20 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - tdTmMoV7+JDwW/bGwbEbuDbCx6X5ibRoYri9oHX2lv21D7sMnra9kH9myxv1lNT4 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "498" + X-Ratelimit-Reset: + - "40" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4985704039988769218" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name + for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 1KMr27QHAQHDfYPOMxdkaV+JBh/1ku8yD6KIlLr2d217iUuzksir9gh+Nfb7tVhq + X-Dd-Version: + - "35.3055101" + 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":[],"template_variables":[],"title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","widgets":[{"definition":{"show_error_budget":true,"slo_id":"d703cf099b4d5f6f945634c7d56d5658","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: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8018425461699508056" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard + method: POST + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"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: + - Fri, 18 Sep 2020 07:28:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - BOgijYhCo0CttPnSWZcLYHKTePSgoxVuOq+kB6EUYRO9ebsORT5Z6Oj0yUoAyx8n + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7967764216345839488" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"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: + - Fri, 18 Sep 2020 07:28:23 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:23 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - motUb+3MrSbL60qP2VQvKfticEMFw/ITb9aZ1t0IvCT8MphWULXKj1d6mnYOkJDn + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2478703564499429140" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name + for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - FP8Y2ks6/+u/R8ikARtQQYvp9IVj9nSQPYtAt3WVuBjumgKP35t8vnUuGfeHdr64 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7547304874817604058" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/22361728 + method: GET + response: + body: '{"errors": ["Dashboard with ID 22361728 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: + - Fri, 18 Sep 2020 07:28: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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3139252888448400090" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"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: + - Fri, 18 Sep 2020 07:28:24 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:24 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - rbGMi63XY6ETkPw9boG8yUDqogZ/1IN0Hh4Igu952urF41BH1CFuhykimklaERoh + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3218406139048061618" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:25 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:25 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 2V6J6bfi8Lp+2UjnPdTvcW5IjbRGxJrhStYZW/ACt/za6xfDiK/Y5IuDyUadsRtA + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5410789038465790420" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361728 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name + for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:27 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - /waQ67o9EXsAiQILmFHWOTHDJ6E+x7ROC0G8iNmC+2lV58E3PSGYbXj1H62A/c+u + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2998" + X-Ratelimit-Reset: + - "3" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "707314572236546041" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361728 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name + for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:27 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 1P9wTBqAbIBgrelvLhZC6yMU4dh3hoPJxqgVxGKRZAP7KGr8YPkzxcmHF9q0g7sB + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2997" + X-Ratelimit-Reset: + - "3" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1832284554547543466" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name + for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:27 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - wPy9KjXl2oNb+h2/g04nAXAfCw85Ldy7iFswtPRipzmiU2125I+aoUKIFsQZLFpS + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3598065800175456985" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name + for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:27 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:27 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 4/n0qOsNbcCLs0O62LExTPssq0SdRyX2Rk0dgQQIozMoViHF7e4pyB0ZeXOioNEA + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "415870223211673456" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"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: + - Fri, 18 Sep 2020 07:28:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - AqBVHmyy+L9zrCUEAQ2Jd2pwskksgC+7nOsWqbNjcjcM+9M/ChipUo2OR6Q8oPwE + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "866123605879816137" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"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: + - Fri, 18 Sep 2020 07:28:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UPwGSEkEo+aTtV9/qlvsM9xVIKq1xypRG0bv22kO1eeJfu8bY+H+f1xOa3JlvZhZ + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "277355744827945926" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - EsLH6+rdgSqeLdBeq9HZpt+45W9grH+dHsUtM9XuCxYJqQJyctcAVJKfVBiasXIW + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6282755999497314969" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361728 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name + for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 8fXgGAAoNDkfuneKCnTnqB8DKjHLTs+9UWiAzHHQVcEGbAPX4uItc5+97fNEvGUG + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2999" + X-Ratelimit-Reset: + - "7" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7657980954353342499" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361728 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name + for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - PXsBn7cqKzggIvyD8j5x5jml9M2/eD36uWUijJ+SgilVHKKIZzr4rqQ7/eRsKvdS + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2998" + X-Ratelimit-Reset: + - "7" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1518624295287087028" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name + for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - uojSfqpCYY9AwY7aycpZQD3hO7T80nZIcDt4g+j01Bv5djiJZ4W5RUKWXT+Lgp1R + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5539688174043704617" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name + for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:34 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:34 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - TlObKNxJC6mRjORAptBjah7X7IZlZoWDhxDuIhUdNUMmnkpihyb67mpyYPwy4Xl5 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4333699894276807083" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"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: + - Fri, 18 Sep 2020 07:28:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:35 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 5H2EXEXOPQC4s7BfWBFjlM6rKywFNh1Cf33eK1xYuPFdBfR+3y2m7Dyr75gZ4kw1 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4660239078453321899" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"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: + - Fri, 18 Sep 2020 07:28:35 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:35 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - oARhNtI/6EvWShO4AFzODjV25iS4y9uHctlNmddhrc7oiR5CBUO6OzfRiwtsABEM + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4887731896976472513" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + method: DELETE + response: + body: '{"deleted_dashboard_id":"xmc-4rf-8fr"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 7QEcyEeiQNfV/0gu5JIpTHXljtLMqyFtDSs67sHgArYEiV5BVrC9iQFEWV1cGojK + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2651538566740551738" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + method: DELETE + response: + body: '{"data":["d703cf099b4d5f6f945634c7d56d5658"],"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:38 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - GzqFsJiHmsMG2ZkgPZxP4KU7BbP1543ieTDBlTOcSv7mMVZ5sYoywme9ykeCrzfU + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8561864731884798585" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361728 + method: DELETE + response: + body: '{"deleted_monitor_id":22361728}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:38 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 0dpwUqkfQHWkgXeMRxMzd53GmXFItYtBrsUmywck00fH892lNzaBVoL155iIFepa + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "423688981897464862" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/d703cf099b4d5f6f945634c7d56d5658 + method: GET + response: + body: '{"errors": ["Dashboard with ID d703cf099b4d5f6f945634c7d56d5658 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: + - Fri, 18 Sep 2020 07:28:39 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6996267975141773197" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + method: GET + response: + body: '{"errors": ["Dashboard with ID xmc-4rf-8fr 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: + - Fri, 18 Sep 2020 07:28:39 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4688122164518333742" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/22361728 + method: GET + response: + body: '{"errors": ["Dashboard with ID 22361728 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: + - Fri, 18 Sep 2020 07:28:39 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5435821424267306187" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:39 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:39 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Rk64tCoF3V07+a4szeABxTtZIJ+mXpZWikk4VsgNuvqwu3MpGXqLHxCVHOt9N39v + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2118078318509281708" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361726 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name + for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:42 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - UQGqB8QYBhbqBtDjVVq40cE5WX9x4FZih8SPsFskLrXqfppNa0WZMVINwgYOpNqd + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2999" + X-Ratelimit-Reset: + - "8" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1212840373538247538" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361726 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name + for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:42 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - kU8oLj3zrGL/NsMXNRXUrvjc5SX7m5Zi20YpnuFt2mcszekWqSDwHwhFasJc2aus + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2998" + X-Ratelimit-Reset: + - "8" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1404084466977614272" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name + for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:42 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - sbJ6i3VupQQcT7EDgPAdOxGmcKsvZJqf4l3SlQaWZNaaFfahh7BdNF3x5CttmH4Q + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "6911195482040826959" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name + for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:42 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:42 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 1rfLNqcZg9qSlP5q1ooqPXZYUps72EabW3bwUPmbzupUim8D/FM4EJTrmumpukR0 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2142298224302164380" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"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: + - Fri, 18 Sep 2020 07:28:43 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:43 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - jQnCQ800IM9+AhjSbgOLP1olAAN0Zx3e3JL4dG9omKhKnkmdw7EJe7yfXnjuT+74 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8148738367776132940" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"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: + - Fri, 18 Sep 2020 07:28:44 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:43 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - M827keIeHgZeqezhGzPP+Gd5GSRighH0alcGV+l2b9IPZcm0Qit9YxQBjvzL4SO1 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + Dd-Operation-Id: + - ValidateMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8625445549798702090" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST + response: + body: '{}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:44 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:44 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Lz3XQmS/aMrD2s8dTb68gJQbMlDQb/2odnJX/DHsjHnv1C9na1q4YNvmnKcr4AfX + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7498801958427984525" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361726 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name + for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:48 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:47 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - cdvpcwnkjuISrw6rfWS7apTmBr9FZehyT0DDN5M25OjQvVqdwR/v3ItBF4P2Rbv7 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2997" + X-Ratelimit-Reset: + - "3" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8532430684854113650" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361726 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name + for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:48 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:48 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 6IhQMEQHjYL1ZYwBd1xPnaqhoM5GIKrVP4vKHrLdyvV0W9ZbpSld8lY0ehD40SZe + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2996" + X-Ratelimit-Reset: + - "2" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1602283649478999378" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name + for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:48 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:48 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 4800hhM5D8qj6yrPc+dlMvhUa+SbSJAXG/yPCxJaOKK9a5IkPxDsNnyOdNMLl2nJ + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1140638044985162277" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + method: GET + response: + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name + for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:48 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:48 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8309843645901828302" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"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: + - Fri, 18 Sep 2020 07:28:49 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:49 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - tdTmMoV7+JDwW/bGwbEbuDbCx6X5ibRoYri9oHX2lv21D7sMnra9kH9myxv1lNT4 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3005338453209854170" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + method: GET + response: + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"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: + - Fri, 18 Sep 2020 07:28:49 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:49 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - Y0Wuc8E3+SpVlnTzK4RUu97zkN6KtouappB64/8RP7vhb/NV3oylxGvm6vZWDPy/ + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1497529788198080778" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + method: DELETE + response: + body: '{"deleted_dashboard_id":"xkv-w7g-fi2"}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:52 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:52 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - JNmeA3l0ccOXtA8wh8DpQGSmyIQ4z3r0Sqn1W1sQHkMGKxYzMqf/DJpF1RAS+Dpy + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "889894419447951590" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + method: DELETE + response: + body: '{"data":["bc0d8813320a525f810fc78f492d2a74"],"error":null}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - jQnCQ800IM9+AhjSbgOLP1olAAN0Zx3e3JL4dG9omKhKnkmdw7EJe7yfXnjuT+74 + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - DeleteMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "8549489179065680129" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/monitor/22361726 + method: DELETE + response: + body: '{"deleted_monitor_id":22361726}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 18 Sep 2020 07:28:53 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:53 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - 92/tpeRQ0by9nn7WsSPyVyXsoLNu8gimYih2BuL6sJV2amfIFPaN8R5eGATyWG3E + X-Dd-Version: + - "35.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5178577032312941722" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/22361726 + method: GET + response: + body: '{"errors": ["Dashboard with ID 22361726 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: + - Fri, 18 Sep 2020 07:28:53 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1390886100915678503" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/bc0d8813320a525f810fc78f492d2a74 + method: GET + response: + body: '{"errors": ["Dashboard with ID bc0d8813320a525f810fc78f492d2a74 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: + - Fri, 18 Sep 2020 07:28:53 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDashboard + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3626598142838187370" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "2934919586361899259" + url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + method: GET + response: + body: '{"errors": ["Dashboard with ID xkv-w7g-fi2 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: + - Fri, 18 Sep 2020 07:28:53 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.3055101" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found + code: 404 + duration: "" diff --git a/datadog/provider_test.go b/datadog/provider_test.go index 956b7aafa..63776bac7 100644 --- a/datadog/provider_test.go +++ b/datadog/provider_test.go @@ -47,6 +47,7 @@ var testFiles2EndpointTags = map[string]string{ "resource_datadog_dashboard_alert_value_test": "dashboards", "resource_datadog_dashboard_change_test": "dashboards", "resource_datadog_dashboard_check_status_test": "dashboards", + "resource_datadog_dashboard_dependencies_test": "dashboards", "resource_datadog_dashboard_distribution_test": "dashboards", "resource_datadog_dashboard_event_stream_test": "dashboards", "resource_datadog_dashboard_event_timeline_test": "dashboards", diff --git a/datadog/resource_datadog_dashboard_dependencies_test.go b/datadog/resource_datadog_dashboard_dependencies_test.go new file mode 100644 index 000000000..6ee176b08 --- /dev/null +++ b/datadog/resource_datadog_dashboard_dependencies_test.go @@ -0,0 +1,167 @@ +package datadog + +import ( + "fmt" + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/terraform" + "strings" + "testing" +) + +func datadogDashboardDepConfig(uniq string) string { + return fmt.Sprintf(` +resource "datadog_monitor" "foo" { + name = "Name for monitor foo" + type = "query alert" + message = "some message Notify: @hipchat-channel" + query = "avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') >= 1" +} + +resource "datadog_service_level_objective" "foo" { + name = "Name for slo foo" + type = "monitor" + description = "some updated description about foo SLO" + + thresholds { + timeframe = "7d" + target = 99.5 + warning = 99.8 + } + + monitor_ids = [ + datadog_monitor.foo.id + ] +} + +resource "datadog_dashboard" "foo" { + title = "%s" + 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 = datadog_service_level_objective.foo.id + view_mode = "both" + view_type = "detail" + } + } +}`, uniq) +} + +func datadogDashboardDepChangedConfig(uniq string) string { + return fmt.Sprintf( + `resource "datadog_monitor" "foo" { + name = "Name for monitor foo" + type = "metric alert" + message = "some message Notify: @hipchat-channel" + query = "avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} > 2" +} + +resource "datadog_service_level_objective" "foo" { + name = "Name for slo foo" + type = "monitor" + description = "some updated description about foo SLO" + + thresholds { + timeframe = "7d" + target = 99.5 + warning = 99.8 + } + + monitor_ids = [ + datadog_monitor.foo.id + ] +} + +resource "datadog_dashboard" "foo" { + title = "%s" + 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 = datadog_service_level_objective.foo.id + view_mode = "both" + view_type = "detail" + } + } +}`, uniq) +} + +func TestAccDatadogDashboard_NewMonitorForceRecreate(t *testing.T) { + accProviders, clock, cleanup := testAccProviders(t, initRecorder(t)) + dbName := uniqueEntityName(clock, t) + defer cleanup(t) + accProvider := testAccProvider(t, accProviders) + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + Steps: []resource.TestStep{ + { + Config: datadogDashboardDepConfig(dbName), + Check: func(firstState *terraform.State) error { + firstSloId, _ := getSloIdHelper(firstState, accProvider) + firstDbId, _ := getDbIdHelper(firstState, accProvider) + resource.TestCheckResourceAttr("datadog_service_level_objective.foo", "id", firstSloId) + resource.TestCheckResourceAttr("datadog_dashboard.foo", "id", firstDbId) + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, + CheckDestroy: checkDashboardDestroy(accProvider), + Steps: []resource.TestStep{ + { + Config: datadogDashboardDepChangedConfig(dbName), + Check: resource.ComposeAggregateTestCheckFunc( + checkThatSloHasBeenForcedToBeRecreated(accProvider, firstSloId), + checkThatDashboardHasBeenForcedToBeRecreated(accProvider, firstDbId), + ), + }, + }, + }) + return nil + }, + }, + }, + }) +} + +func checkThatDashboardHasBeenForcedToBeRecreated(accProvider *schema.Provider, previousDbId string) func(state *terraform.State) error { + return func(state *terraform.State) error { + secondDbId, _ := getDbIdHelper(state, accProvider) + if secondDbId == previousDbId { + return fmt.Errorf("dashboard id may have change if the resource as been recreated") + } + return nil + } +} + +func getDbIdHelper(state *terraform.State, accProvider *schema.Provider) (string, error) { + providerConf := accProvider.Meta().(*ProviderConfiguration) + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 + for _, r := range state.RootModule().Resources { + dbResp, _, err := datadogClientV1.DashboardsApi.GetDashboard(authV1, r.Primary.ID).Execute() + if err != nil { + if strings.Contains(strings.ToLower(err.Error()), "not found") { + continue + } + return "", fmt.Errorf("received an error retrieving dashboard %s", err) + } + return dbResp.GetId(), err + } + return "", fmt.Errorf("dashboard not found in current state") +} diff --git a/datadog/resource_datadog_service_level_objective_test.go b/datadog/resource_datadog_service_level_objective_test.go index 3d22c0f46..455e42209 100644 --- a/datadog/resource_datadog_service_level_objective_test.go +++ b/datadog/resource_datadog_service_level_objective_test.go @@ -301,13 +301,7 @@ func TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate(t *testing.T) { Steps: []resource.TestStep{ { Config: testAccCheckDatadogServiceLevelObjectiveConfigForceRecreate(sloName), - Check: func(secondState *terraform.State) error { - secondSloId, _ := getSloIdHelper(secondState, accProvider) - if secondSloId == firstSloId { - return fmt.Errorf("resource id may have change if the resource as been recreated") - } - return nil - }, + Check: checkThatSloHasBeenForcedToBeRecreated(accProvider, firstSloId), }, }, }) @@ -318,6 +312,16 @@ func TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate(t *testing.T) { }) } +func checkThatSloHasBeenForcedToBeRecreated(accProvider *schema.Provider, previousSloId string) func(s *terraform.State) error { + return func(s *terraform.State) error { + secondSloId, _ := getSloIdHelper(s, accProvider) + if secondSloId == previousSloId { + return fmt.Errorf("slo id may have change if the resource as been recreated") + } + return nil + } +} + // helpers func getSloIdHelper(s *terraform.State, accProvider *schema.Provider) (string, error) { From d3f55392723bf0504335ceb730fa63a4cd8d2c4f Mon Sep 17 00:00:00 2001 From: Tone Date: Fri, 18 Sep 2020 21:28:51 +0200 Subject: [PATCH 4/5] Try to fix test suite for macos and windows --- .github/workflows/test.yml | 1 - datadog/resource_datadog_dashboard_dependencies_test.go | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 802ba2b13..947b98f2d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,6 @@ jobs: env: GOFLAGS: "-mod=vendor" strategy: - fail-fast: false matrix: platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} diff --git a/datadog/resource_datadog_dashboard_dependencies_test.go b/datadog/resource_datadog_dashboard_dependencies_test.go index 6ee176b08..0a03eb4fe 100644 --- a/datadog/resource_datadog_dashboard_dependencies_test.go +++ b/datadog/resource_datadog_dashboard_dependencies_test.go @@ -119,9 +119,8 @@ func TestAccDatadogDashboard_NewMonitorForceRecreate(t *testing.T) { resource.TestCheckResourceAttr("datadog_service_level_objective.foo", "id", firstSloId) resource.TestCheckResourceAttr("datadog_dashboard.foo", "id", firstDbId) resource.Test(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - Providers: accProviders, - CheckDestroy: checkDashboardDestroy(accProvider), + PreCheck: func() { testAccPreCheck(t) }, + Providers: accProviders, Steps: []resource.TestStep{ { Config: datadogDashboardDepChangedConfig(dbName), From c047a8fbae43945a91f4daf5b8bad6cd77937440 Mon Sep 17 00:00:00 2001 From: Tone Date: Fri, 23 Oct 2020 17:44:10 +0200 Subject: [PATCH 5/5] fix review comments and rebase --- ...ogDashboard_NewMonitorForceRecreate.freeze | 2 +- ...adogDashboard_NewMonitorForceRecreate.yaml | 1743 +++++++++-------- ...elObjective_NewMonitorForceRecreate.freeze | 2 +- ...evelObjective_NewMonitorForceRecreate.yaml | 1385 +++++++++---- ...rce_datadog_dashboard_dependencies_test.go | 12 +- ...ce_datadog_service_level_objective_test.go | 8 +- 6 files changed, 1915 insertions(+), 1237 deletions(-) diff --git a/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.freeze b/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.freeze index 811ef1bbf..987d73da5 100644 --- a/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.freeze +++ b/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.freeze @@ -1 +1 @@ -2020-09-18T09:28:09.353490045+02:00 \ No newline at end of file +2020-10-23T17:32:17.364588604+02:00 \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.yaml b/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.yaml index d365f8c99..504307575 100644 --- a/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.yaml +++ b/datadog/cassettes/TestAccDatadogDashboard_NewMonitorForceRecreate.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -14,13 +14,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2006566260464116916" + - "1948230220303102177" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -37,22 +37,22 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:10 GMT + - Fri, 23 Oct 2020 15:32:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:10 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - fD4Z/lU+RXqTTZ3a6QzIYIS71jYdOWOeKg+9gi8WTYoWGc4ju4awlLTlSP1eWtSz + - GzqFsJiHmsMG2ZkgPZxP4KU7BbP1543ieTDBlTOcSv7mMVZ5sYoywme9ykeCrzfU X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -60,7 +60,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -71,13 +71,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5225118977691285612" + - "4691757685226751736" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -94,22 +94,22 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:12 GMT + - Fri, 23 Oct 2020 15:32:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:12 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:20 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - CUBCyaoXY2JdeHi5oQm4sg9onCJMsjgVJ5jLk2ugM2iR7uz4Q+lvjzDdvtcYDFC3 + - jQnCQ800IM9+AhjSbgOLP1olAAN0Zx3e3JL4dG9omKhKnkmdw7EJe7yfXnjuT+74 X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -117,7 +117,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -128,21 +128,20 @@ interactions: - CreateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2914478322941483529" + - "3575514456172628041" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/monitor method: POST response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name - for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -154,13 +153,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:12 GMT + - Fri, 23 Oct 2020 15:32:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:12 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:20 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -169,9 +168,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pv0z9DOVfESVNK6d1tOJ7YfC31qHNEzJNjdRZStq3qVP6piD/gWCa9pwKd90Upzy + - RQNZxTpzmnYtqewiwDnwjOIeDPnPlPWTnfmCTuKeHAaJNSGMGGndPJBReO57sp0w X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -181,7 +180,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "8" + - "10" status: 200 OK code: 200 duration: "" @@ -195,21 +194,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "6975014618562122544" + - "397168793582621972" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361726 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name - for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -221,13 +219,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:13 GMT + - Fri, 23 Oct 2020 15:32:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:13 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +234,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - NVdxML/FOEgLJzsz37XLTVVLcoGTHoJzcuGu2ZwX+JAXQfJkO87pOpfJK6E0a8TN + - E8kYJH6Hb74I4gS4d8oTnZBbKR38RfM4isuhSW09hK2ARkJHcJxE0DNPxSd582jS X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -248,13 +246,79 @@ interactions: X-Ratelimit-Remaining: - "2999" X-Ratelimit-Reset: - - "7" + - "9" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "1328592529669226805" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 23 Oct 2020 15:32:21 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:21 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - hhAfI9DpjHRbHS2z+2prVh0mHwAun3McFDOF8AzNv8c8J6c/l2q8Kye8syKGTxkY + X-Dd-Version: + - "35.3246947" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2998" + X-Ratelimit-Reset: + - "9" status: 200 OK code: 200 duration: "" - request: body: | - {"description":"some updated description about foo SLO","id":"","monitor_ids":[22361726],"name":"Name for slo foo","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} + {"description":"some updated description about foo SLO","id":"","monitor_ids":[24670340],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} form: {} headers: Accept: @@ -265,19 +329,18 @@ interactions: - CreateSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2288389017186500267" + - "1850363837204298953" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/slo method: POST response: body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name - for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"}],"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"e0c8ba7efe1850f08231e9f28fff9051","monitor_ids":[24670340],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467141,"tags":[],"modified_at":1603467141,"type":"monitor"}],"error":null}' headers: Cache-Control: - no-cache @@ -288,13 +351,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:13 GMT + - Fri, 23 Oct 2020 15:32:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:13 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -303,9 +366,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 1rfLNqcZg9qSlP5q1ooqPXZYUps72EabW3bwUPmbzupUim8D/FM4EJTrmumpukR0 + - yHg1SN54kOfDRp2Aod0BXYSVxFx21V1jRKSkwPBeHEmd2sEVS/QK2WhkC8rNJWsm X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -315,7 +378,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "47" + - "39" status: 200 OK code: 200 duration: "" @@ -329,19 +392,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4854781295462036155" + - "5860287547940656740" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/e0c8ba7efe1850f08231e9f28fff9051 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name - for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"e0c8ba7efe1850f08231e9f28fff9051","monitor_ids":[24670340],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467141,"tags":[],"modified_at":1603467141,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -352,13 +414,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:13 GMT + - Fri, 23 Oct 2020 15:32:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:13 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -367,17 +429,25 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - RCObiQ2dtM/JQUOdAbTQmIrpsZR5eT9bZEwE14hAfjq3x8DBTBCy/8ina/nQCRGE + - NVN1vUIP943yBv5BrKvNkq9LhGENimQCGx913v3GQzIJuXIMEzcrTlr1CpALPFWv X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11999" + X-Ratelimit-Reset: + - "39" 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":[],"template_variables":[],"title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","widgets":[{"definition":{"show_error_budget":true,"slo_id":"bc0d8813320a525f810fc78f492d2a74","time_windows":["90d","previous_week","month_to_date"],"title_align":"center","title_size":"16","type":"slo","view_mode":"both","view_type":"detail"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","widgets":[{"definition":{"show_error_budget":true,"slo_id":"e0c8ba7efe1850f08231e9f28fff9051","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: @@ -388,18 +458,18 @@ interactions: - CreateDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8336456126365935619" + - "5826048986378766017" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/dashboard method: POST response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7qp-c6i-xpk","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/7qp-c6i-xpk/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:23.924492+00:00","modified_at":"2020-10-23T15:32:23.924492+00:00","author_handle":"t.proum@gmail.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":"e0c8ba7efe1850f08231e9f28fff9051","view_mode":"both","type":"slo"},"id":1951145830713243}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -410,13 +480,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:15 GMT + - Fri, 23 Oct 2020 15:32:24 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:15 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:23 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -425,9 +495,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mpg/BCzsUMOxVwcAuQg/6c40bDAb3ejXVT4tkiODN0ExybQ/Ia68faurJX6CivjX + - sQOy8a0Uobuto7YUtlnbqZIuXh5uDLMP34xhBMJaioPr6917JNPh2PehnbSMnQ69 X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -443,18 +513,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5934565943716518123" + - "6400697580299142745" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/7qp-c6i-xpk method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7qp-c6i-xpk","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/7qp-c6i-xpk/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:23.924492+00:00","modified_at":"2020-10-23T15:32:23.924492+00:00","author_handle":"t.proum@gmail.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":"e0c8ba7efe1850f08231e9f28fff9051","view_mode":"both","type":"slo"},"id":1951145830713243}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -465,13 +535,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:15 GMT + - Fri, 23 Oct 2020 15:32:24 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:15 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:24 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -480,9 +550,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS + - gxfSlUtZJz4/cDPBxW1+YhseAnu5514ckuMWbI3rl8N4exeAZPF+KTE0BQhrBgSI X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -498,17 +568,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5132424911747064373" + - "5561774081013928067" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/22361726 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/7qp-c6i-xpk method: GET response: - body: '{"errors": ["SLO not found: 22361726 not found"]}' + body: '{"message": "The resource could not be found.

\n\n\n", "code": + "404 Not Found", "title": "Not Found"}' headers: Cache-Control: - no-cache @@ -519,7 +590,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:16 GMT + - Fri, 23 Oct 2020 15:32:24 GMT Dd-Pool: - dogweb Pragma: @@ -531,7 +602,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 404 Not Found @@ -547,18 +618,17 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3840738053292832132" + - "7127943072786460740" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/xkv-w7g-fi2 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/24670340 method: GET response: - body: '{"message": "The resource could not be found.

\n\n\n", "code": - "404 Not Found", "title": "Not Found"}' + body: '{"errors": ["SLO not found: 24670340 not found"]}' headers: Cache-Control: - no-cache @@ -569,7 +639,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:16 GMT + - Fri, 23 Oct 2020 15:32:25 GMT Dd-Pool: - dogweb Pragma: @@ -581,9 +651,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11998" + X-Ratelimit-Reset: + - "35" status: 404 Not Found code: 404 duration: "" @@ -597,19 +675,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1850566298787386843" + - "2001266211157756204" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/e0c8ba7efe1850f08231e9f28fff9051 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name - for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"e0c8ba7efe1850f08231e9f28fff9051","monitor_ids":[24670340],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467141,"tags":[],"modified_at":1603467141,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -620,13 +697,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:16 GMT + - Fri, 23 Oct 2020 15:32:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:16 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -635,11 +712,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - BZ+RYjLsV2y+9XXNTM/Wbkdcz3DkJnqgQFCAf9xIIxOOOd9x3Em2wjhPfW0piM2C + - 7QEcyEeiQNfV/0gu5JIpTHXljtLMqyFtDSs67sHgArYEiV5BVrC9iQFEWV1cGojK X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11997" + X-Ratelimit-Reset: + - "35" status: 200 OK code: 200 duration: "" @@ -653,17 +738,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8030758856598943690" + - "4198997520765912029" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/22361726 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/7qp-c6i-xpk method: GET response: - body: '{"errors": ["Dashboard with ID 22361726 not found"]}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7qp-c6i-xpk","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/7qp-c6i-xpk/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:23.924492+00:00","modified_at":"2020-10-23T15:32:23.924492+00:00","author_handle":"t.proum@gmail.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":"e0c8ba7efe1850f08231e9f28fff9051","view_mode":"both","type":"slo"},"id":1951145830713243}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -674,74 +760,81 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:17 GMT + - Fri, 23 Oct 2020 15:32:25 GMT Dd-Pool: - dogweb Pragma: - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:25 GMT; + secure; HttpOnly Strict-Transport-Security: - max-age=15724800; Vary: - Accept-Encoding X-Content-Type-Options: - nosniff + X-Dd-Debug: + - 5H2EXEXOPQC4s7BfWBFjlM6rKywFNh1Cf33eK1xYuPFdBfR+3y2m7Dyr75gZ4kw1 X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN - status: 404 Not Found - code: 404 + status: 200 OK + code: 200 duration: "" - request: - body: "" + body: | + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: - application/json + Content-Type: + - application/json Dd-Operation-Id: - - GetDashboard + - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3388499676114161915" + - "8449573935178900671" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 - method: GET + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"layout_type":"ordered"}' + body: '{}' headers: Cache-Control: - no-cache Connection: - keep-alive + Content-Length: + - "2" Content-Security-Policy: - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:17 GMT + - Fri, 23 Oct 2020 15:32:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:17 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff X-Dd-Debug: - - BZ+RYjLsV2y+9XXNTM/Wbkdcz3DkJnqgQFCAf9xIIxOOOd9x3Em2wjhPfW0piM2C + - 3AvoK4pndynA7PY/liBTdpx9AsQktJu+aWgi7foN678xjM6qh6SX+QmI+4s5bpFv X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -749,7 +842,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -760,13 +853,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4036837974372389486" + - "1290418299847110248" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -783,22 +876,22 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:18 GMT + - Fri, 23 Oct 2020 15:32:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:18 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7ZZAowMV9z1Vr+0y/WbNkvcDUXbHQ7uNKkyZU3E6k00RqTwxh53CgITxXoDQsQqv + - cwBlcFIcwDsv4IobSK5BCzc5xYE7Ob8qdF8Udq49IJhq23UAvY7SHKc1FyJJqC66 X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -806,7 +899,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -814,80 +907,87 @@ interactions: Content-Type: - application/json Dd-Operation-Id: - - ValidateMonitor + - CreateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2882915363340943174" + - "7976663389092381120" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/validate + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor method: POST response: - body: '{}' + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: - no-cache Connection: - keep-alive - Content-Length: - - "2" Content-Security-Policy: - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:20 GMT + - Fri, 23 Oct 2020 15:32:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Dd-Debug: - - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS + - QgQu/iPnCQXRgWPQKBm0M4xipFcbwl50MnRHSjKNayyZv/6KjuJNpOhY5+udaeL8 X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "498" + X-Ratelimit-Reset: + - "2" status: 200 OK code: 200 duration: "" - request: - body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + body: "" form: {} headers: Accept: - application/json - Content-Type: - - application/json Dd-Operation-Id: - - CreateMonitor + - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8421521194810307379" + - "586458336110186168" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor - method: POST + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 + method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name - for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -899,13 +999,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:20 GMT + - Fri, 23 Oct 2020 15:32:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -914,19 +1014,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mpg/BCzsUMOxVwcAuQg/6c40bDAb3ejXVT4tkiODN0ExybQ/Ia68faurJX6CivjX + - YNPvfo/A+kRa92W7PZNTiFcSJq6YGkB9TIlX47+pHHndNDZ3ZySmub3fInFxn6Db X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "500" + - "3000" X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "499" + - "2997" X-Ratelimit-Reset: - - "10" + - "2" status: 200 OK code: 200 duration: "" @@ -940,20 +1040,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7953251754162098449" + - "2733131359728131094" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361728 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name - for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -965,13 +1064,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:20 GMT + - Fri, 23 Oct 2020 15:32:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -980,9 +1079,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ZTMib3S/rZeXw/RhaeaehRILC7QJAaERfyf3m4/am8FN44e9rxbkPcmk4YzKBISj + - hw3ZauSSamfHLo55DFwif1/mO6RiYSc0/libBchlIMnyWX9rK7JgS3Pek5rkz683 X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -990,15 +1089,15 @@ interactions: X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "2999" + - "2996" X-Ratelimit-Reset: - - "10" + - "1" status: 200 OK code: 200 duration: "" - request: body: | - {"description":"some updated description about foo SLO","id":"","monitor_ids":[22361728],"name":"Name for slo foo","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} + {"description":"some updated description about foo SLO","id":"","monitor_ids":[24670372],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} form: {} headers: Accept: @@ -1009,19 +1108,18 @@ interactions: - CreateSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1836838062475992595" + - "8229038317117787122" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/slo method: POST response: body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name - for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"}],"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d84eb0bfe4f05d3ba8d783b17c761e3e","monitor_ids":[24670372],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467149,"tags":[],"modified_at":1603467149,"type":"monitor"}],"error":null}' headers: Cache-Control: - no-cache @@ -1032,13 +1130,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:20 GMT + - Fri, 23 Oct 2020 15:32:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1047,9 +1145,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tdTmMoV7+JDwW/bGwbEbuDbCx6X5ibRoYri9oHX2lv21D7sMnra9kH9myxv1lNT4 + - WInJ5NoKnWsGfpc5/7O8IFkOGqBCSPXHlW+v7fDYTqv2rGTGsFEBI9cuh2tqdLoD X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1059,7 +1157,7 @@ interactions: X-Ratelimit-Remaining: - "498" X-Ratelimit-Reset: - - "40" + - "31" status: 200 OK code: 200 duration: "" @@ -1073,19 +1171,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4985704039988769218" + - "4804972903080806622" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/d84eb0bfe4f05d3ba8d783b17c761e3e method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name - for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d84eb0bfe4f05d3ba8d783b17c761e3e","monitor_ids":[24670372],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467149,"tags":[],"modified_at":1603467149,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1096,13 +1193,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:21 GMT + - Fri, 23 Oct 2020 15:32:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:21 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1111,17 +1208,25 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 1KMr27QHAQHDfYPOMxdkaV+JBh/1ku8yD6KIlLr2d217iUuzksir9gh+Nfb7tVhq + - gOE+aFCHWuxgDnurm/juvZNkjdmweNjl464qle0N/zRJcc4Hspd926ElnnqPP95G X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11996" + X-Ratelimit-Reset: + - "31" 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":[],"template_variables":[],"title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","widgets":[{"definition":{"show_error_budget":true,"slo_id":"d703cf099b4d5f6f945634c7d56d5658","time_windows":["90d","previous_week","month_to_date"],"title_align":"center","title_size":"16","type":"slo","view_mode":"both","view_type":"detail"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","widgets":[{"definition":{"show_error_budget":true,"slo_id":"d84eb0bfe4f05d3ba8d783b17c761e3e","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: @@ -1132,18 +1237,18 @@ interactions: - CreateDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8018425461699508056" + - "6692414182501082214" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/dashboard method: POST response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"w63-v3g-x5u","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/w63-v3g-x5u/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:32.232414+00:00","modified_at":"2020-10-23T15:32:32.232414+00:00","author_handle":"t.proum@gmail.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":"d84eb0bfe4f05d3ba8d783b17c761e3e","view_mode":"both","type":"slo"},"id":5317316635488568}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -1154,13 +1259,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:23 GMT + - Fri, 23 Oct 2020 15:32:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:23 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1169,9 +1274,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - BOgijYhCo0CttPnSWZcLYHKTePSgoxVuOq+kB6EUYRO9ebsORT5Z6Oj0yUoAyx8n + - DRZWTHDeKolQqk6GEAFoSVDF1cV93C/z8xwO7umb9e0luQPYr8BUl8IXxXdpfaM5 X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1187,18 +1292,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7967764216345839488" + - "809832235109915884" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/w63-v3g-x5u method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"w63-v3g-x5u","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/w63-v3g-x5u/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:32.232414+00:00","modified_at":"2020-10-23T15:32:32.232414+00:00","author_handle":"t.proum@gmail.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":"d84eb0bfe4f05d3ba8d783b17c761e3e","view_mode":"both","type":"slo"},"id":5317316635488568}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -1209,13 +1314,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:23 GMT + - Fri, 23 Oct 2020 15:32:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:23 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1224,9 +1329,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - motUb+3MrSbL60qP2VQvKfticEMFw/ITb9aZ1t0IvCT8MphWULXKj1d6mnYOkJDn + - BZ+RYjLsV2y+9XXNTM/Wbkdcz3DkJnqgQFCAf9xIIxOOOd9x3Em2wjhPfW0piM2C X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1242,19 +1347,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2478703564499429140" + - "8637473436811118052" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/w63-v3g-x5u method: GET response: - body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name - for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + body: '{"message": "The resource could not be found.

\n\n\n", "code": + "404 Not Found", "title": "Not Found"}' headers: Cache-Control: - no-cache @@ -1265,28 +1369,23 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:24 GMT + - Fri, 23 Oct 2020 15:32:33 GMT Dd-Pool: - dogweb Pragma: - no-cache - Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:24 GMT; - secure; HttpOnly Strict-Transport-Security: - max-age=15724800; Vary: - Accept-Encoding X-Content-Type-Options: - nosniff - X-Dd-Debug: - - FP8Y2ks6/+u/R8ikARtQQYvp9IVj9nSQPYtAt3WVuBjumgKP35t8vnUuGfeHdr64 X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN - status: 200 OK - code: 200 + status: 404 Not Found + code: 404 duration: "" - request: body: "" @@ -1295,20 +1394,21 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetDashboard + - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7547304874817604058" + - "205196485740935753" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/22361728 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/d84eb0bfe4f05d3ba8d783b17c761e3e method: GET response: - body: '{"errors": ["Dashboard with ID 22361728 not found"]}' + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d84eb0bfe4f05d3ba8d783b17c761e3e","monitor_ids":[24670372],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467149,"tags":[],"modified_at":1603467149,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1319,23 +1419,36 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:24 GMT + - Fri, 23 Oct 2020 15:32:33 GMT Dd-Pool: - dogweb Pragma: - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:33 GMT; + secure; HttpOnly Strict-Transport-Security: - max-age=15724800; Vary: - Accept-Encoding X-Content-Type-Options: - nosniff + X-Dd-Debug: + - O3O7xE5uwHtX7J0LqZ8TwbNGWo9Sdsox9lgU7fr/GZp13UzdkbKQZW76fPVpoSDj X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN - status: 404 Not Found - code: 404 + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11995" + X-Ratelimit-Reset: + - "27" + status: 200 OK + code: 200 duration: "" - request: body: "" @@ -1347,18 +1460,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3139252888448400090" + - "3924522684085277838" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/w63-v3g-x5u method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"w63-v3g-x5u","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/w63-v3g-x5u/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:32.232414+00:00","modified_at":"2020-10-23T15:32:32.232414+00:00","author_handle":"t.proum@gmail.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":"d84eb0bfe4f05d3ba8d783b17c761e3e","view_mode":"both","type":"slo"},"id":5317316635488568}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -1369,13 +1482,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:24 GMT + - Fri, 23 Oct 2020 15:32:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:24 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1384,9 +1497,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - rbGMi63XY6ETkPw9boG8yUDqogZ/1IN0Hh4Igu952urF41BH1CFuhykimklaERoh + - ilZ2Tz4sOtnH2tGRqlD9p6NDcucj4gVBdvczlxiOPhY/AWnWhycAWjVucOU5/NQA X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1394,7 +1507,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -1405,13 +1518,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3218406139048061618" + - "761532727996462427" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -1428,24 +1541,89 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:25 GMT + - Fri, 23 Oct 2020 15:32:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - qQXsO+f4B3HCvLT+wx7LVBDCKoA9+mEzcYYTapfT4+npOWtAMz9R4B+8HSWkVhsm + X-Dd-Version: + - "35.3246947" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7868795196583833183" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 23 Oct 2020 15:32:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:25 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2V6J6bfi8Lp+2UjnPdTvcW5IjbRGxJrhStYZW/ACt/za6xfDiK/Y5IuDyUadsRtA + - uhKf3DOQ/asSODSNh+771Jj2mAFRCrXnSErQegeSH33qVMu18OG0v+JTvu/HjcV7 X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2999" + X-Ratelimit-Reset: + - "7" status: 200 OK code: 200 duration: "" @@ -1459,20 +1637,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5410789038465790420" + - "2187621990635288234" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361728 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name - for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1484,13 +1661,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:27 GMT + - Fri, 23 Oct 2020 15:32:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:27 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1499,9 +1676,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /waQ67o9EXsAiQILmFHWOTHDJ6E+x7ROC0G8iNmC+2lV58E3PSGYbXj1H62A/c+u + - VbuXVkM6abYwIF9A0EUx/hxlOb2fUYUuj3PZZOBGVUtLSPf9Jpa+BbRUppU4yJ6y X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1511,7 +1688,7 @@ interactions: X-Ratelimit-Remaining: - "2998" X-Ratelimit-Reset: - - "3" + - "4" status: 200 OK code: 200 duration: "" @@ -1525,20 +1702,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "707314572236546041" + - "2822171762586666309" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361728 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name - for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1550,13 +1726,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:27 GMT + - Fri, 23 Oct 2020 15:32:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:27 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1565,9 +1741,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 1P9wTBqAbIBgrelvLhZC6yMU4dh3hoPJxqgVxGKRZAP7KGr8YPkzxcmHF9q0g7sB + - FELlv8T8VRoaBxHjLbAG9Fvj68G6pP0FZF7JKMI72/5H4OtG/s8AVYiF1c9f4D6g X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1577,7 +1753,7 @@ interactions: X-Ratelimit-Remaining: - "2997" X-Ratelimit-Reset: - - "3" + - "4" status: 200 OK code: 200 duration: "" @@ -1591,19 +1767,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1832284554547543466" + - "7583259932372449190" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/d84eb0bfe4f05d3ba8d783b17c761e3e method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name - for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d84eb0bfe4f05d3ba8d783b17c761e3e","monitor_ids":[24670372],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467149,"tags":[],"modified_at":1603467149,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1614,13 +1789,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:27 GMT + - Fri, 23 Oct 2020 15:32:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:27 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1629,11 +1804,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - wPy9KjXl2oNb+h2/g04nAXAfCw85Ldy7iFswtPRipzmiU2125I+aoUKIFsQZLFpS + - laGkCMnt9yzADERvt5/nU5tJ2BKmoQx1BUE4x31rlC7mriAyKM9Zk5E+JikpAz3V X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11994" + X-Ratelimit-Reset: + - "24" status: 200 OK code: 200 duration: "" @@ -1647,19 +1830,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3598065800175456985" + - "2468658623575784513" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/d84eb0bfe4f05d3ba8d783b17c761e3e method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name - for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d84eb0bfe4f05d3ba8d783b17c761e3e","monitor_ids":[24670372],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467149,"tags":[],"modified_at":1603467149,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1670,13 +1852,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:27 GMT + - Fri, 23 Oct 2020 15:32:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:27 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1685,11 +1867,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 4/n0qOsNbcCLs0O62LExTPssq0SdRyX2Rk0dgQQIozMoViHF7e4pyB0ZeXOioNEA + - M5AkO8bVyO5yuX6OQA9nCjANXZokYPd2NqFZwMNyvfQQbQnBskFTa6rdUllh6BsX X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11993" + X-Ratelimit-Reset: + - "24" status: 200 OK code: 200 duration: "" @@ -1703,18 +1893,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "415870223211673456" + - "5358793209209160808" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/w63-v3g-x5u method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"w63-v3g-x5u","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/w63-v3g-x5u/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:32.232414+00:00","modified_at":"2020-10-23T15:32:32.232414+00:00","author_handle":"t.proum@gmail.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":"d84eb0bfe4f05d3ba8d783b17c761e3e","view_mode":"both","type":"slo"},"id":5317316635488568}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -1725,13 +1915,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:29 GMT + - Fri, 23 Oct 2020 15:32:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:29 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1740,9 +1930,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - AqBVHmyy+L9zrCUEAQ2Jd2pwskksgC+7nOsWqbNjcjcM+9M/ChipUo2OR6Q8oPwE + - YUzGVvPO6U9s4YDcAehC8chdShvAB/4ui8eck/ZCafPignncGB/BO6U/rVr9hrIe X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1758,18 +1948,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "866123605879816137" + - "8109418006578149391" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/w63-v3g-x5u method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"w63-v3g-x5u","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/w63-v3g-x5u/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:32.232414+00:00","modified_at":"2020-10-23T15:32:32.232414+00:00","author_handle":"t.proum@gmail.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":"d84eb0bfe4f05d3ba8d783b17c761e3e","view_mode":"both","type":"slo"},"id":5317316635488568}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -1780,13 +1970,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:29 GMT + - Fri, 23 Oct 2020 15:32:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:29 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1795,9 +1985,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - UPwGSEkEo+aTtV9/qlvsM9xVIKq1xypRG0bv22kO1eeJfu8bY+H+f1xOa3JlvZhZ + - Y9+v2iJC/5twluKZH+Abk+sCd7+zW2qB+wWhdwPtTfzsXiAGXu1np/KJsw5b93OQ X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1805,7 +1995,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -1816,13 +2006,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "277355744827945926" + - "3235122811774284520" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -1839,22 +2029,22 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:30 GMT + - Fri, 23 Oct 2020 15:32:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:29 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - EsLH6+rdgSqeLdBeq9HZpt+45W9grH+dHsUtM9XuCxYJqQJyctcAVJKfVBiasXIW + - hhAfI9DpjHRbHS2z+2prVh0mHwAun3McFDOF8AzNv8c8J6c/l2q8Kye8syKGTxkY X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1870,20 +2060,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "6282755999497314969" + - "1347137623272883254" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361728 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name - for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1895,13 +2084,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:33 GMT + - Fri, 23 Oct 2020 15:32:39 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:33 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:39 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1910,9 +2099,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 8fXgGAAoNDkfuneKCnTnqB8DKjHLTs+9UWiAzHHQVcEGbAPX4uItc5+97fNEvGUG + - oqlClNgBffXSYxjxM4MXW8YBCUkTvkeEyGekJFD2ia4zlDKNcD3ROot7wMYW8Xj+ X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1920,9 +2109,9 @@ interactions: X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "2999" + - "2996" X-Ratelimit-Reset: - - "7" + - "1" status: 200 OK code: 200 duration: "" @@ -1936,20 +2125,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7657980954353342499" + - "1107631814446519846" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361728 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22361728,"multi":true,"name":"Name - for monitor foo","created":"2020-09-18T07:28:20.525129+00:00","created_at":1600414100000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:20.525129+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1961,13 +2149,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:33 GMT + - Fri, 23 Oct 2020 15:32:42 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:33 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:42 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1976,9 +2164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PXsBn7cqKzggIvyD8j5x5jml9M2/eD36uWUijJ+SgilVHKKIZzr4rqQ7/eRsKvdS + - JGlWx87vjxzcVRF7plc107v2ByhH6ulQ34FTks4+z+qF42As7SYEoQXA/cO3iKfw X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1986,9 +2174,9 @@ interactions: X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "2998" + - "2999" X-Ratelimit-Reset: - - "7" + - "8" status: 200 OK code: 200 duration: "" @@ -1999,23 +2187,24 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetSLO + - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1518624295287087028" + - "8314277984445248226" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 method: GET response: - body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name - for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' - headers: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670372,"multi":true,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:28.714228+00:00","created_at":1603467148000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:28.714228+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: Cache-Control: - no-cache Connection: @@ -2025,13 +2214,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:33 GMT + - Fri, 23 Oct 2020 15:32:42 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:33 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:42 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2040,11 +2229,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - uojSfqpCYY9AwY7aycpZQD3hO7T80nZIcDt4g+j01Bv5djiJZ4W5RUKWXT+Lgp1R + - Et2YiqVRxti9EZo6Gk/yyRrgDmYxZuoE62JE6GLJjDYX0PgDmkmo9d4ASFrtRIDj X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2998" + X-Ratelimit-Reset: + - "8" status: 200 OK code: 200 duration: "" @@ -2058,19 +2255,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5539688174043704617" + - "5029801619012540124" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/d84eb0bfe4f05d3ba8d783b17c761e3e method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d703cf099b4d5f6f945634c7d56d5658","monitor_ids":[22361728],"name":"Name - for slo foo","created_at":1600414100,"tags":[],"modified_at":1600414100,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d84eb0bfe4f05d3ba8d783b17c761e3e","monitor_ids":[24670372],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467149,"tags":[],"modified_at":1603467149,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -2081,13 +2277,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:34 GMT + - Fri, 23 Oct 2020 15:32:42 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:34 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:42 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2096,11 +2292,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - TlObKNxJC6mRjORAptBjah7X7IZlZoWDhxDuIhUdNUMmnkpihyb67mpyYPwy4Xl5 + - YMUurOrBBSQDW8c48zSvcN5vlrEH+LpXx/tElldVcj/y8fT1cTjwsBugqb97UH4Q X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11992" + X-Ratelimit-Reset: + - "18" status: 200 OK code: 200 duration: "" @@ -2111,21 +2315,21 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetDashboard + - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4333699894276807083" + - "5129516718490534927" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/d84eb0bfe4f05d3ba8d783b17c761e3e method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"layout_type":"ordered"}' + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"d84eb0bfe4f05d3ba8d783b17c761e3e","monitor_ids":[24670372],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467149,"tags":[],"modified_at":1603467149,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -2136,13 +2340,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:35 GMT + - Fri, 23 Oct 2020 15:32:42 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:35 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:42 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2151,11 +2355,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 5H2EXEXOPQC4s7BfWBFjlM6rKywFNh1Cf33eK1xYuPFdBfR+3y2m7Dyr75gZ4kw1 + - A4zC5dDmz3QSTWXoflmdTKsS5dpIBJJrn2zMHspFpRSdDDnIHcmGhVikJ7NEySaP X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11991" + X-Ratelimit-Reset: + - "18" status: 200 OK code: 200 duration: "" @@ -2169,18 +2381,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4660239078453321899" + - "6369091104599921880" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/w63-v3g-x5u method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xmc-4rf-8fr","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xmc-4rf-8fr/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:23.436764+00:00","modified_at":"2020-09-18T07:28:23.436764+00:00","author_handle":"t.proum@gmail.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":"d703cf099b4d5f6f945634c7d56d5658","view_mode":"both","type":"slo"},"id":7210196877494862}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"w63-v3g-x5u","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/w63-v3g-x5u/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:32.232414+00:00","modified_at":"2020-10-23T15:32:32.232414+00:00","author_handle":"t.proum@gmail.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":"d84eb0bfe4f05d3ba8d783b17c761e3e","view_mode":"both","type":"slo"},"id":5317316635488568}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -2191,13 +2403,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:35 GMT + - Fri, 23 Oct 2020 15:32:43 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:35 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:43 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2206,9 +2418,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - oARhNtI/6EvWShO4AFzODjV25iS4y9uHctlNmddhrc7oiR5CBUO6OzfRiwtsABEM + - q5LZgdQyaeyVGPNSaYfaXI15usQY6VerSpOcr6YoOhwKyednUK9qVYPwCUtgztbj X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -2221,20 +2433,21 @@ interactions: Accept: - application/json Dd-Operation-Id: - - DeleteDashboard + - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4887731896976472513" + - "1738648890065683544" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr - method: DELETE + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/w63-v3g-x5u + method: GET response: - body: '{"deleted_dashboard_id":"xmc-4rf-8fr"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"w63-v3g-x5u","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/w63-v3g-x5u/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:32.232414+00:00","modified_at":"2020-10-23T15:32:32.232414+00:00","author_handle":"t.proum@gmail.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":"d84eb0bfe4f05d3ba8d783b17c761e3e","view_mode":"both","type":"slo"},"id":5317316635488568}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -2245,13 +2458,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:38 GMT + - Fri, 23 Oct 2020 15:32:43 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:38 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:43 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2260,9 +2473,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7QEcyEeiQNfV/0gu5JIpTHXljtLMqyFtDSs67sHgArYEiV5BVrC9iQFEWV1cGojK + - sQOy8a0Uobuto7YUtlnbqZIuXh5uDLMP34xhBMJaioPr6917JNPh2PehnbSMnQ69 X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -2275,20 +2488,20 @@ interactions: Accept: - application/json Dd-Operation-Id: - - DeleteSLO + - DeleteDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2651538566740551738" + - "7272153390826860593" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/d703cf099b4d5f6f945634c7d56d5658 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/w63-v3g-x5u method: DELETE response: - body: '{"data":["d703cf099b4d5f6f945634c7d56d5658"],"error":null}' + body: '{"deleted_dashboard_id":"w63-v3g-x5u"}' headers: Cache-Control: - no-cache @@ -2299,13 +2512,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:38 GMT + - Fri, 23 Oct 2020 15:32:46 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:38 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:46 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2314,9 +2527,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - GzqFsJiHmsMG2ZkgPZxP4KU7BbP1543ieTDBlTOcSv7mMVZ5sYoywme9ykeCrzfU + - mpg/BCzsUMOxVwcAuQg/6c40bDAb3ejXVT4tkiODN0ExybQ/Ia68faurJX6CivjX X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -2329,20 +2542,20 @@ interactions: Accept: - application/json Dd-Operation-Id: - - DeleteMonitor + - DeleteSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8561864731884798585" + - "5823154594981442193" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361728 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/d84eb0bfe4f05d3ba8d783b17c761e3e method: DELETE response: - body: '{"deleted_monitor_id":22361728}' + body: '{"data":["d84eb0bfe4f05d3ba8d783b17c761e3e"],"error":null}' headers: Cache-Control: - no-cache @@ -2353,13 +2566,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:39 GMT + - Fri, 23 Oct 2020 15:32:47 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:38 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:47 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2368,11 +2581,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0dpwUqkfQHWkgXeMRxMzd53GmXFItYtBrsUmywck00fH892lNzaBVoL155iIFepa + - UEVa9FQA61TUB+NQw/amsaV/PvKGDe6B7Iu18qIdbOf3lwJS9wn1eAJvwt8jgGYV X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11999" + X-Ratelimit-Reset: + - "13" status: 200 OK code: 200 duration: "" @@ -2383,20 +2604,20 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetDashboard + - DeleteMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "423688981897464862" + - "7170766093620402315" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/d703cf099b4d5f6f945634c7d56d5658 - method: GET + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670372 + method: DELETE response: - body: '{"errors": ["Dashboard with ID d703cf099b4d5f6f945634c7d56d5658 not found"]}' + body: '{"deleted_monitor_id":24670372}' headers: Cache-Control: - no-cache @@ -2407,176 +2628,149 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:39 GMT + - Fri, 23 Oct 2020 15:32:47 GMT Dd-Pool: - dogweb Pragma: - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:47 GMT; + secure; HttpOnly Strict-Transport-Security: - max-age=15724800; Vary: - Accept-Encoding X-Content-Type-Options: - nosniff + X-Dd-Debug: + - 7QEcyEeiQNfV/0gu5JIpTHXljtLMqyFtDSs67sHgArYEiV5BVrC9iQFEWV1cGojK X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN - status: 404 Not Found - code: 404 + status: 200 OK + code: 200 duration: "" - request: - body: "" + body: | + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) - X-Datadog-Parent-Id: - - "6996267975141773197" - X-Datadog-Sampling-Priority: - - "1" - X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xmc-4rf-8fr - method: GET - response: - body: '{"errors": ["Dashboard with ID xmc-4rf-8fr 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: - - Fri, 18 Sep 2020 07:28:39 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.3055101" - X-Frame-Options: - - SAMEORIGIN - status: 404 Not Found - code: 404 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json Dd-Operation-Id: - - GetDashboard + - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4688122164518333742" + - "1222225572512268080" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/22361728 - method: GET + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/validate + method: POST response: - body: '{"errors": ["Dashboard with ID 22361728 not found"]}' + body: '{}' headers: Cache-Control: - no-cache Connection: - keep-alive + Content-Length: + - "2" Content-Security-Policy: - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:39 GMT + - Fri, 23 Oct 2020 15:32:47 GMT Dd-Pool: - dogweb Pragma: - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:47 GMT; + secure; HttpOnly Strict-Transport-Security: - max-age=15724800; - Vary: - - Accept-Encoding X-Content-Type-Options: - nosniff + X-Dd-Debug: + - VfsOYTBPajdIURjGpWdSf1qbyO21kEmlCNna/tfODfKKzbp6OFbIz8G+Qerctd6m X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN - status: 404 Not Found - code: 404 + status: 200 OK + code: 200 duration: "" - request: - body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + body: "" form: {} headers: Accept: - application/json - Content-Type: - - application/json Dd-Operation-Id: - - ValidateMonitor + - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5435821424267306187" + - "6627248823772376811" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/validate - method: POST + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 + method: GET response: - body: '{}' + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: - no-cache Connection: - keep-alive - Content-Length: - - "2" Content-Security-Policy: - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:39 GMT + - Fri, 23 Oct 2020 15:32:47 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:39 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:47 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Dd-Debug: - - Rk64tCoF3V07+a4szeABxTtZIJ+mXpZWikk4VsgNuvqwu3MpGXqLHxCVHOt9N39v + - lgQawiZEOFHj/SKplEcqOwzaMI6OQtdSQ9dotiTxYUar2ksXhijPkw9yrBoSKHNa X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2997" + X-Ratelimit-Reset: + - "3" status: 200 OK code: 200 duration: "" @@ -2590,21 +2784,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2118078318509281708" + - "2494367006314061345" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361726 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name - for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -2616,13 +2809,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:42 GMT + - Fri, 23 Oct 2020 15:32:50 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:42 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:50 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2631,9 +2824,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - UQGqB8QYBhbqBtDjVVq40cE5WX9x4FZih8SPsFskLrXqfppNa0WZMVINwgYOpNqd + - kz7POzMRR1DtZrw59X15p2pAWXtFgVtBoSlzXFcGszy5lhwGx7f8GB820VUZODrm X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -2643,7 +2836,7 @@ interactions: X-Ratelimit-Remaining: - "2999" X-Ratelimit-Reset: - - "8" + - "10" status: 200 OK code: 200 duration: "" @@ -2657,21 +2850,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1212840373538247538" + - "5082022448754608861" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361726 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name - for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -2683,13 +2875,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:42 GMT + - Fri, 23 Oct 2020 15:32:50 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:42 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:50 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2698,9 +2890,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - kU8oLj3zrGL/NsMXNRXUrvjc5SX7m5Zi20YpnuFt2mcszekWqSDwHwhFasJc2aus + - JNmeA3l0ccOXtA8wh8DpQGSmyIQ4z3r0Sqn1W1sQHkMGKxYzMqf/DJpF1RAS+Dpy X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -2710,7 +2902,7 @@ interactions: X-Ratelimit-Remaining: - "2998" X-Ratelimit-Reset: - - "8" + - "10" status: 200 OK code: 200 duration: "" @@ -2724,19 +2916,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1404084466977614272" + - "5623371764533980278" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/e0c8ba7efe1850f08231e9f28fff9051 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name - for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"e0c8ba7efe1850f08231e9f28fff9051","monitor_ids":[24670340],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467141,"tags":[],"modified_at":1603467141,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -2747,13 +2938,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:42 GMT + - Fri, 23 Oct 2020 15:32:50 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:42 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:50 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2762,11 +2953,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - sbJ6i3VupQQcT7EDgPAdOxGmcKsvZJqf4l3SlQaWZNaaFfahh7BdNF3x5CttmH4Q + - DMzWnlnvmcVWit+nOzgpRgMecUZPFvENKg8LkKYn4Tsj68gJTKm0BuKxCJH0FFN4 X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11990" + X-Ratelimit-Reset: + - "10" status: 200 OK code: 200 duration: "" @@ -2780,19 +2979,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "6911195482040826959" + - "648437443567269862" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/e0c8ba7efe1850f08231e9f28fff9051 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name - for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"e0c8ba7efe1850f08231e9f28fff9051","monitor_ids":[24670340],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467141,"tags":[],"modified_at":1603467141,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -2803,13 +3001,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:42 GMT + - Fri, 23 Oct 2020 15:32:50 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:42 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:50 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2818,11 +3016,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 1rfLNqcZg9qSlP5q1ooqPXZYUps72EabW3bwUPmbzupUim8D/FM4EJTrmumpukR0 + - /AIuUBUzXheMzx1cvxhB+WjJEVZnNytkpRgIpTWZSwENaLk6ZqapvZetzfxbHHYM X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11989" + X-Ratelimit-Reset: + - "10" status: 200 OK code: 200 duration: "" @@ -2836,18 +3042,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2142298224302164380" + - "3765228750058796439" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/7qp-c6i-xpk method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7qp-c6i-xpk","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/7qp-c6i-xpk/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:23.924492+00:00","modified_at":"2020-10-23T15:32:23.924492+00:00","author_handle":"t.proum@gmail.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":"e0c8ba7efe1850f08231e9f28fff9051","view_mode":"both","type":"slo"},"id":1951145830713243}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -2858,13 +3064,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:43 GMT + - Fri, 23 Oct 2020 15:32:51 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:43 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:51 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2873,9 +3079,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - jQnCQ800IM9+AhjSbgOLP1olAAN0Zx3e3JL4dG9omKhKnkmdw7EJe7yfXnjuT+74 + - eG/dd216xDODxUvrkXQT4VhVvMIAMIlvHBW+Kcmtt6jQYter/nugfyVImQIwF/gz X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -2891,18 +3097,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8148738367776132940" + - "6070050007574810831" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/7qp-c6i-xpk method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7qp-c6i-xpk","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/7qp-c6i-xpk/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:23.924492+00:00","modified_at":"2020-10-23T15:32:23.924492+00:00","author_handle":"t.proum@gmail.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":"e0c8ba7efe1850f08231e9f28fff9051","view_mode":"both","type":"slo"},"id":1951145830713243}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -2913,13 +3119,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:44 GMT + - Fri, 23 Oct 2020 15:32:52 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:43 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:52 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2928,9 +3134,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - M827keIeHgZeqezhGzPP+Gd5GSRighH0alcGV+l2b9IPZcm0Qit9YxQBjvzL4SO1 + - Wu8XyxdUJ940l1hlQ/4Scl2Xta78KG1wkfVN63sn1HQ3Sk/ZYNPBQ2v2fbOhjvmn X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -2938,7 +3144,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -2949,13 +3155,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8625445549798702090" + - "5024657893623892639" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" + - "3622223612360355715" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -2972,22 +3178,22 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:44 GMT + - Fri, 23 Oct 2020 15:32:52 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:44 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:52 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Lz3XQmS/aMrD2s8dTb68gJQbMlDQb/2odnJX/DHsjHnv1C9na1q4YNvmnKcr4AfX + - zMJDTIeaITirZf9FedmyCj+4WXuqmfQREjdA1T11xGKF1XQWYK1Ifc+omhARu60w X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -3003,21 +3209,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7498801958427984525" + - "4516975604524779465" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361726 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name - for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -3029,13 +3234,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:48 GMT + - Fri, 23 Oct 2020 15:32:53 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:47 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:53 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3044,9 +3249,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - cdvpcwnkjuISrw6rfWS7apTmBr9FZehyT0DDN5M25OjQvVqdwR/v3ItBF4P2Rbv7 + - sbJ6i3VupQQcT7EDgPAdOxGmcKsvZJqf4l3SlQaWZNaaFfahh7BdNF3x5CttmH4Q X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -3056,7 +3261,7 @@ interactions: X-Ratelimit-Remaining: - "2997" X-Ratelimit-Reset: - - "3" + - "7" status: 200 OK code: 200 duration: "" @@ -3070,21 +3275,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8532430684854113650" + - "4431688662178114497" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361726 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22361726,"multi":false,"name":"Name - for monitor foo","created":"2020-09-18T07:28:12.936465+00:00","created_at":1600414092000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-18T07:28:12.936465+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -3096,13 +3300,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:48 GMT + - Fri, 23 Oct 2020 15:32:56 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:48 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:56 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3111,9 +3315,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 6IhQMEQHjYL1ZYwBd1xPnaqhoM5GIKrVP4vKHrLdyvV0W9ZbpSld8lY0ehD40SZe + - WMqkdiu/k4tYC8oJLm7ZFuFlnIXAYAXwOPQoxLtj7bgJQppYJErVkGl/2/O/+zpm X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -3123,7 +3327,7 @@ interactions: X-Ratelimit-Remaining: - "2996" X-Ratelimit-Reset: - - "2" + - "4" status: 200 OK code: 200 duration: "" @@ -3134,22 +3338,24 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetSLO + - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1602283649478999378" + - "4180705875451880404" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 method: GET response: - body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name - for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":24670340,"multi":false,"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created":"2020-10-23T15:32:20.954453+00:00","created_at":1603467140000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:32:20.954453+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: - no-cache @@ -3160,13 +3366,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:48 GMT + - Fri, 23 Oct 2020 15:32:56 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:48 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:56 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3175,11 +3381,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 4800hhM5D8qj6yrPc+dlMvhUa+SbSJAXG/yPCxJaOKK9a5IkPxDsNnyOdNMLl2nJ + - /JpmMVMj888oDBhNstrXwRRTcjtQP5tKL1A6NwxlJyR/zX9A94/1rKY8MfQgr5Ro X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2995" + X-Ratelimit-Reset: + - "4" status: 200 OK code: 200 duration: "" @@ -3193,19 +3407,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1140638044985162277" + - "6211442578362760219" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/e0c8ba7efe1850f08231e9f28fff9051 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bc0d8813320a525f810fc78f492d2a74","monitor_ids":[22361726],"name":"Name - for slo foo","created_at":1600414093,"tags":[],"modified_at":1600414093,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"e0c8ba7efe1850f08231e9f28fff9051","monitor_ids":[24670340],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467141,"tags":[],"modified_at":1603467141,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -3216,13 +3429,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:48 GMT + - Fri, 23 Oct 2020 15:32:56 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:48 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:56 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3231,11 +3444,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS + - 2WpVLT6XfnIg4Icl10Bkfr2LmWju5l1mcL3EeaTPuJ+k4vOzKW0gcbyPFosLZlNj X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11988" + X-Ratelimit-Reset: + - "4" status: 200 OK code: 200 duration: "" @@ -3246,21 +3467,21 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetDashboard + - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8309843645901828302" + - "7036625916513961739" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/e0c8ba7efe1850f08231e9f28fff9051 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"layout_type":"ordered"}' + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"e0c8ba7efe1850f08231e9f28fff9051","monitor_ids":[24670340],"name":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","created_at":1603467141,"tags":[],"modified_at":1603467141,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -3271,13 +3492,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:49 GMT + - Fri, 23 Oct 2020 15:32:56 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:49 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:56 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3286,11 +3507,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tdTmMoV7+JDwW/bGwbEbuDbCx6X5ibRoYri9oHX2lv21D7sMnra9kH9myxv1lNT4 + - D6xOASGs+SeSoSr1onTNqEyFDtjQwnjR937DW7eQT5G8CxiOSfzMZ/Hv6SqRh+8b X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11987" + X-Ratelimit-Reset: + - "4" status: 200 OK code: 200 duration: "" @@ -3304,18 +3533,18 @@ interactions: - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3005338453209854170" + - "6978348449471493364" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/7qp-c6i-xpk method: GET response: body: '{"notify_list":[],"description":"Created using the Datadog provider in - Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xkv-w7g-fi2","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1600414089","url":"/dashboard/xkv-w7g-fi2/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1600414089","created_at":"2020-09-18T07:28:15.718253+00:00","modified_at":"2020-09-18T07:28:15.718253+00:00","author_handle":"t.proum@gmail.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":"bc0d8813320a525f810fc78f492d2a74","view_mode":"both","type":"slo"},"id":1387398701172994}],"layout_type":"ordered"}' + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7qp-c6i-xpk","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/7qp-c6i-xpk/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:23.924492+00:00","modified_at":"2020-10-23T15:32:23.924492+00:00","author_handle":"t.proum@gmail.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":"e0c8ba7efe1850f08231e9f28fff9051","view_mode":"both","type":"slo"},"id":1951145830713243}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -3326,13 +3555,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:49 GMT + - Fri, 23 Oct 2020 15:32:57 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:49 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:57 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3341,9 +3570,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Y0Wuc8E3+SpVlnTzK4RUu97zkN6KtouappB64/8RP7vhb/NV3oylxGvm6vZWDPy/ + - RQNZxTpzmnYtqewiwDnwjOIeDPnPlPWTnfmCTuKeHAaJNSGMGGndPJBReO57sp0w X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -3356,20 +3585,21 @@ interactions: Accept: - application/json Dd-Operation-Id: - - DeleteDashboard + - GetDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1497529788198080778" + - "5259619095221597102" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 - method: DELETE + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/7qp-c6i-xpk + method: GET response: - body: '{"deleted_dashboard_id":"xkv-w7g-fi2"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in + Terraform","author_name":"Tony Proum","template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7qp-c6i-xpk","title":"tf-TestAccDatadogDashboard_NewMonitorForceRecreate-local-1603467137","url":"/dashboard/7qp-c6i-xpk/tf-testaccdatadogdashboardnewmonitorforcerecreate-local-1603467137","created_at":"2020-10-23T15:32:23.924492+00:00","modified_at":"2020-10-23T15:32:23.924492+00:00","author_handle":"t.proum@gmail.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":"e0c8ba7efe1850f08231e9f28fff9051","view_mode":"both","type":"slo"},"id":1951145830713243}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -3380,13 +3610,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:52 GMT + - Fri, 23 Oct 2020 15:32:58 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:52 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:32:58 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3395,9 +3625,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JNmeA3l0ccOXtA8wh8DpQGSmyIQ4z3r0Sqn1W1sQHkMGKxYzMqf/DJpF1RAS+Dpy + - KcNcHUGB08YdugVH3r9bPpps+kNHA5hdt/i0HnHlCpX4wCTIXYMJnhyM7E+8Tni0 X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -3410,20 +3640,20 @@ interactions: Accept: - application/json Dd-Operation-Id: - - DeleteSLO + - DeleteDashboard User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "889894419447951590" + - "7586694379576219948" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/slo/bc0d8813320a525f810fc78f492d2a74 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/dashboard/7qp-c6i-xpk method: DELETE response: - body: '{"data":["bc0d8813320a525f810fc78f492d2a74"],"error":null}' + body: '{"deleted_dashboard_id":"7qp-c6i-xpk"}' headers: Cache-Control: - no-cache @@ -3434,13 +3664,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:53 GMT + - Fri, 23 Oct 2020 15:33:00 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:53 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:33:00 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3449,9 +3679,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - jQnCQ800IM9+AhjSbgOLP1olAAN0Zx3e3JL4dG9omKhKnkmdw7EJe7yfXnjuT+74 + - Q8knEw82SgGErSuAaD0RuA7obbJQJNFXaFmNNzPtQBtywdtSi82Z9gGaD787DJ0K X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -3464,20 +3694,20 @@ interactions: Accept: - application/json Dd-Operation-Id: - - DeleteMonitor + - DeleteSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8549489179065680129" + - "292695024812280454" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/monitor/22361726 + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/slo/e0c8ba7efe1850f08231e9f28fff9051 method: DELETE response: - body: '{"deleted_monitor_id":22361726}' + body: '{"data":["e0c8ba7efe1850f08231e9f28fff9051"],"error":null}' headers: Cache-Control: - no-cache @@ -3488,13 +3718,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:53 GMT + - Fri, 23 Oct 2020 15:33:01 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 25-Sep-2020 07:28:53 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:33:01 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -3503,11 +3733,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 92/tpeRQ0by9nn7WsSPyVyXsoLNu8gimYih2BuL6sJV2amfIFPaN8R5eGATyWG3E + - nHGjqTbGmPRJGWoHEDsaMxmZCicxo5Y/AObJEW+YW63Ub16t9U+JqCkAyvEnf+xI X-Dd-Version: - - "35.3055101" + - "35.3246892" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11999" + X-Ratelimit-Reset: + - "59" status: 200 OK code: 200 duration: "" @@ -3518,118 +3756,20 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) - X-Datadog-Parent-Id: - - "5178577032312941722" - X-Datadog-Sampling-Priority: - - "1" - X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/22361726 - method: GET - response: - body: '{"errors": ["Dashboard with ID 22361726 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: - - Fri, 18 Sep 2020 07:28:53 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.3055101" - X-Frame-Options: - - SAMEORIGIN - status: 404 Not Found - code: 404 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) - X-Datadog-Parent-Id: - - "1390886100915678503" - X-Datadog-Sampling-Priority: - - "1" - X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/bc0d8813320a525f810fc78f492d2a74 - method: GET - response: - body: '{"errors": ["Dashboard with ID bc0d8813320a525f810fc78f492d2a74 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: - - Fri, 18 Sep 2020 07:28:53 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.3055101" - X-Frame-Options: - - SAMEORIGIN - status: 404 Not Found - code: 404 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard + - DeleteMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3626598142838187370" + - "2400132862258678047" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2934919586361899259" - url: https://api.datadoghq.com/api/v1/dashboard/xkv-w7g-fi2 - method: GET + - "3622223612360355715" + url: https://api.datadoghq.com/api/v1/monitor/24670340 + method: DELETE response: - body: '{"errors": ["Dashboard with ID xkv-w7g-fi2 not found"]}' + body: '{"deleted_monitor_id":24670340}' headers: Cache-Control: - no-cache @@ -3640,21 +3780,26 @@ interactions: Content-Type: - application/json Date: - - Fri, 18 Sep 2020 07:28:53 GMT + - Fri, 23 Oct 2020 15:33:01 GMT Dd-Pool: - dogweb Pragma: - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:33:01 GMT; + secure; HttpOnly Strict-Transport-Security: - max-age=15724800; Vary: - Accept-Encoding X-Content-Type-Options: - nosniff + X-Dd-Debug: + - WmMtMFngDL31sZYuYCiUaMFRtAs90zyIJHnMIoB4iHZztA/Ona9SnOav516bWmh7 X-Dd-Version: - - "35.3055101" + - "35.3246947" X-Frame-Options: - SAMEORIGIN - status: 404 Not Found - code: 404 + status: 200 OK + code: 200 duration: "" diff --git a/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.freeze b/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.freeze index 91cbc8fbb..b9216aa02 100644 --- a/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.freeze +++ b/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.freeze @@ -1 +1 @@ -2020-09-17T23:25:17.035277142+02:00 \ No newline at end of file +2020-10-23T17:37:20.107792802+02:00 \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.yaml b/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.yaml index 76b9917c6..58c38bb45 100644 --- a/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.yaml +++ b/datadog/cassettes/TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -14,13 +14,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5913640659921199325" + - "6387938699028686127" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -37,22 +37,22 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:17 GMT + - Fri, 23 Oct 2020 15:37:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:17 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Qun3wOuA/hQDIFGQqCVlq+iNpWCXkp0WuL8O89aP44h3eJ/Ies+yK10ByBbIISnG + - chc/Ua/VlFggLuiJmJEWtOjiWKu2FOjUYS91CLY/GE8MSguAZUcjuIV2bgSw80Sv X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -60,7 +60,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -71,13 +71,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3557462235553524323" + - "3809002014965879361" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -94,22 +94,22 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:17 GMT + - Fri, 23 Oct 2020 15:37:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:17 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - POuDbGLugqXrJfoVh1EySG2rrzsK54DWLRF5/pTAPkxizo7RlYf80RrCYTzc0hnv + - DMzWnlnvmcVWit+nOzgpRgMecUZPFvENKg8LkKYn4Tsj68gJTKm0BuKxCJH0FFN4 X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -117,7 +117,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -128,21 +128,20 @@ interactions: - CreateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3998157153207276745" + - "1369550088961170139" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor method: POST response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name - for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -154,13 +153,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:18 GMT + - Fri, 23 Oct 2020 15:37:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:18 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -169,9 +168,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JpSPTIQ3ADIUVR7tKVVULYhgssheTcmYaILqA7y+vRKHVMoWYI3X+n8nhC2vhKFP + - sKAY0l5Dq+9OdN3cdjnBmv3dOgVdaJs4B9XR5o+IUZC5EZY9C+nnqv+YslWCCjmi X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -181,7 +180,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "2" + - "4" status: 200 OK code: 200 duration: "" @@ -195,21 +194,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5299209823609073142" + - "1796367189435610770" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340627 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name - for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -221,13 +219,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:18 GMT + - Fri, 23 Oct 2020 15:37:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:18 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +234,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - s0LsNvQsMm21RUzMLDODd6jiqqojzRfEoHLrnASSfK5zaa+QnpY16tmznkR4zVSs + - D6xOASGs+SeSoSr1onTNqEyFDtjQwnjR937DW7eQT5G8CxiOSfzMZ/Hv6SqRh+8b X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -248,35 +246,35 @@ interactions: X-Ratelimit-Remaining: - "2999" X-Ratelimit-Reset: - - "2" + - "4" status: 200 OK code: 200 duration: "" - request: - body: | - {"description":"some updated description about foo SLO","id":"","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} + body: "" form: {} headers: Accept: - application/json - Content-Type: - - application/json Dd-Operation-Id: - - CreateSLO + - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1480677226107497812" + - "6203745200841288769" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo - method: POST + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 + method: GET response: - body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"}],"error":null}' + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: - no-cache @@ -287,13 +285,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:18 GMT + - Fri, 23 Oct 2020 15:37:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:18 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -302,44 +300,47 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mpg/BCzsUMOxVwcAuQg/6c40bDAb3ejXVT4tkiODN0ExybQ/Ia68faurJX6CivjX + - LkSOFVoHBcsyBoPbYbYfcEWZoNcVif5SL5dX3LvvR/J4mRuKXGmrGqdm859yDQ2v X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "500" + - "3000" X-Ratelimit-Period: - - "60" + - "10" X-Ratelimit-Remaining: - - "499" + - "2998" X-Ratelimit-Reset: - - "42" + - "4" status: 200 OK code: 200 duration: "" - request: - body: "" + body: | + {"description":"some updated description about foo SLO","id":"","monitor_ids":[24670529],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} form: {} headers: Accept: - application/json + Content-Type: + - application/json Dd-Operation-Id: - - GetSLO + - CreateSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2900927378434530323" + - "2182165909958447240" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 - method: GET + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo + method: POST response: - body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"2002246b7c5a54859512fad5863e5bc9","monitor_ids":[24670529],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467446,"tags":[],"modified_at":1603467446,"type":"monitor"}],"error":null}' headers: Cache-Control: - no-cache @@ -350,13 +351,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:18 GMT + - Fri, 23 Oct 2020 15:37:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:18 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -365,11 +366,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - O3O7xE5uwHtX7J0LqZ8TwbNGWo9Sdsox9lgU7fr/GZp13UzdkbKQZW76fPVpoSDj + - saoIV/FA/z8H0gcXHP3CQ32hxYowRdGCvx+QRO7UdacLP4hVHOLNCuxXnf6LPRGD X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "500" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "499" + X-Ratelimit-Reset: + - "34" status: 200 OK code: 200 duration: "" @@ -383,17 +392,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "261862774234434720" + - "681937840927130686" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/22340627 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/2002246b7c5a54859512fad5863e5bc9 method: GET response: - body: '{"errors": ["SLO not found: 22340627 not found"]}' + body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"2002246b7c5a54859512fad5863e5bc9","monitor_ids":[24670529],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467446,"tags":[],"modified_at":1603467446,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -404,23 +414,36 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:19 GMT + - Fri, 23 Oct 2020 15:37:27 GMT Dd-Pool: - dogweb Pragma: - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:27 GMT; + secure; HttpOnly Strict-Transport-Security: - max-age=15724800; Vary: - Accept-Encoding X-Content-Type-Options: - nosniff + X-Dd-Debug: + - GVd3H6+s0wOEEQNbWfOlfSTR2GEFs46b/AVWKmAErR/5auOQpwMvzy3i6o9DNymz X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN - status: 404 Not Found - code: 404 + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11999" + X-Ratelimit-Reset: + - "33" + status: 200 OK + code: 200 duration: "" - request: body: "" @@ -432,18 +455,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7584229608177933056" + - "3752377500541393086" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/2002246b7c5a54859512fad5863e5bc9 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"2002246b7c5a54859512fad5863e5bc9","monitor_ids":[24670529],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467446,"tags":[],"modified_at":1603467446,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -454,13 +477,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:19 GMT + - Fri, 23 Oct 2020 15:37:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -469,17 +492,25 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nuSFLkQ1s7gwoRNAfifc8jXTyjLsWBSRPtQKveq6qMTKGNJs/ULg6uo/9G1YZzFs + - AqBVHmyy+L9zrCUEAQ2Jd2pwskksgC+7nOsWqbNjcjcM+9M/ChipUo2OR6Q8oPwE X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11998" + X-Ratelimit-Reset: + - "33" status: 200 OK code: 200 duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -490,13 +521,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4200370911076919751" + - "3905036790612774654" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -513,22 +544,22 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:19 GMT + - Fri, 23 Oct 2020 15:37:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - nFyTUry7tLSCWgKgQTsGO10dBCh8TOEhHGgwdexQMnQchHPTOyo6yaXIidoJXR1X + - u6DvYk2HTsv9JK8VlfzAetNutf1Eel5LZX1SupoC065LdrYdAgOwtNj060V1NNiO X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -536,7 +567,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -547,13 +578,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8485911241188668230" + - "2134358176541721422" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -570,22 +601,22 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:19 GMT + - Fri, 23 Oct 2020 15:37:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - s0LsNvQsMm21RUzMLDODd6jiqqojzRfEoHLrnASSfK5zaa+QnpY16tmznkR4zVSs + - gr+QII7IFZVxhXS35BsEOrW9Uz3gs+l7g2tB1FOjy4hKCe3rtnWg3KfE74dirBtE X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -593,7 +624,7 @@ interactions: duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -604,20 +635,19 @@ interactions: - CreateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7101137599982765697" + - "3350059477950901546" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor method: POST response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name - for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -629,13 +659,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:19 GMT + - Fri, 23 Oct 2020 15:37:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -644,9 +674,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - AqBVHmyy+L9zrCUEAQ2Jd2pwskksgC+7nOsWqbNjcjcM+9M/ChipUo2OR6Q8oPwE + - EZL7bEfcgNGbknKpx0YgUay5sRnB08o7ifIkIU7pH4DOkkWS5DRjfEr3ib9KggTa X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -656,7 +686,7 @@ interactions: X-Ratelimit-Remaining: - "498" X-Ratelimit-Reset: - - "1" + - "3" status: 200 OK code: 200 duration: "" @@ -670,20 +700,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4792862802382515037" + - "7850184090013161362" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340630 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name - for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -695,13 +724,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:19 GMT + - Fri, 23 Oct 2020 15:37:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:19 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -710,9 +739,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pM+XKBj4qFLZ8yMOGFimFFWK4TZi4eDSQXhACYRLW8peTFy6SOt656nT+bVYauOi + - cTGY5ulPxaRmdZr4S1APOMLAfMePPA3fkzzqqKyRFf/m5ql3XuUZsd87RDo7B7RR X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -720,15 +749,80 @@ interactions: X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "2998" + - "2997" X-Ratelimit-Reset: + - "2" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2488565337418505238" + X-Datadog-Sampling-Priority: - "1" + X-Datadog-Trace-Id: + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 23 Oct 2020 15:37:28 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:28 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - oY1U+Bw1sQyS4cySYbM3yP2PHmEdjLzb50z+L43vQMCCtEGfcc06BRHI9VdccfS3 + X-Dd-Version: + - "35.3246947" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2996" + X-Ratelimit-Reset: + - "2" status: 200 OK code: 200 duration: "" - request: body: | - {"description":"some updated description about foo SLO","id":"","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} + {"description":"some updated description about foo SLO","id":"","monitor_ids":[24670533],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","thresholds":[{"target":99.5,"timeframe":"7d","warning":99.8}],"type":"monitor"} form: {} headers: Accept: @@ -739,18 +833,18 @@ interactions: - CreateSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7596289587828729867" + - "9174728521699069352" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/slo method: POST response: body: '{"data":[{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"}],"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bcdba666871f590892161d11080083cc","monitor_ids":[24670533],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467448,"tags":[],"modified_at":1603467448,"type":"monitor"}],"error":null}' headers: Cache-Control: - no-cache @@ -761,13 +855,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:20 GMT + - Fri, 23 Oct 2020 15:37:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -776,9 +870,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Rk64tCoF3V07+a4szeABxTtZIJ+mXpZWikk4VsgNuvqwu3MpGXqLHxCVHOt9N39v + - saoIV/FA/z8H0gcXHP3CQ32hxYowRdGCvx+QRO7UdacLP4hVHOLNCuxXnf6LPRGD X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -788,7 +882,7 @@ interactions: X-Ratelimit-Remaining: - "498" X-Ratelimit-Reset: - - "40" + - "32" status: 200 OK code: 200 duration: "" @@ -802,18 +896,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8383607456063721579" + - "4335607468013763596" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/bcdba666871f590892161d11080083cc method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bcdba666871f590892161d11080083cc","monitor_ids":[24670533],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467448,"tags":[],"modified_at":1603467448,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -824,13 +918,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:20 GMT + - Fri, 23 Oct 2020 15:37:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -839,11 +933,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - laGkCMnt9yzADERvt5/nU5tJ2BKmoQx1BUE4x31rlC7mriAyKM9Zk5E+JikpAz3V + - UPwGSEkEo+aTtV9/qlvsM9xVIKq1xypRG0bv22kO1eeJfu8bY+H+f1xOa3JlvZhZ X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11997" + X-Ratelimit-Reset: + - "32" status: 200 OK code: 200 duration: "" @@ -857,18 +959,75 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "9222902821215744285" + - "1746734169659944962" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/24670533 + method: GET + response: + body: '{"errors": ["SLO not found: 24670533 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: + - Fri, 23 Oct 2020 15:37:28 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.3246947" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11996" + X-Ratelimit-Reset: + - "32" + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetSLO + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "7692312244881212107" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/bcdba666871f590892161d11080083cc method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bcdba666871f590892161d11080083cc","monitor_ids":[24670533],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467448,"tags":[],"modified_at":1603467448,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -879,13 +1038,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:20 GMT + - Fri, 23 Oct 2020 15:37:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -894,17 +1053,25 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +TTazL1HF8qoxYARkG/60PGoq8sbkYkmqeurNry46zV0aHqBZfUrKqxtiyo42NRf + - e/TBw3pWhecz3q7fqdapZ13ekoT8GYh8GanHtnVYHy0/nVmlugu7QHmJ8ANRx8P5 X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11995" + X-Ratelimit-Reset: + - "32" status: 200 OK code: 200 duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -915,13 +1082,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "1038537830567060544" + - "6612861776991304785" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -938,22 +1105,22 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:20 GMT + - Fri, 23 Oct 2020 15:37:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Et2YiqVRxti9EZo6Gk/yyRrgDmYxZuoE62JE6GLJjDYX0PgDmkmo9d4ASFrtRIDj + - 4/n0qOsNbcCLs0O62LExTPssq0SdRyX2Rk0dgQQIozMoViHF7e4pyB0ZeXOioNEA X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -969,20 +1136,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "6456694714321368410" + - "7751719384906256403" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340630 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name - for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -994,13 +1160,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:20 GMT + - Fri, 23 Oct 2020 15:37:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1009,9 +1175,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - s0LsNvQsMm21RUzMLDODd6jiqqojzRfEoHLrnASSfK5zaa+QnpY16tmznkR4zVSs + - k/zHOOzqpc4r+ZK5tvPeMjc5yHaZZgqaNAwCywXjTJpLyIGjDeV+DLPBFsNU82W8 X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1019,9 +1185,9 @@ interactions: X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "2999" + - "2995" X-Ratelimit-Reset: - - "10" + - "1" status: 200 OK code: 200 duration: "" @@ -1035,20 +1201,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7059955863305941404" + - "220914875314856240" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340630 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name - for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1060,13 +1225,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:20 GMT + - Fri, 23 Oct 2020 15:37:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:20 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1075,9 +1240,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - d31ebXSBBNIfMRbwTUSeNjY3IxejCQxGK8GB7MdTMNs7w40n94in+BXmkLo5BsFJ + - 0xx9Vajt2z9Bjd3zEZxSq+HXBSiVDpVx3zcehHaUF6Rbof5oICp4xtQ5KAyASYVV X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1085,9 +1250,74 @@ interactions: X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "2998" + - "2994" X-Ratelimit-Reset: + - "1" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "3920855819504413125" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 23 Oct 2020 15:37:29 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:29 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - WyPl7Uohyy2nhJ7RWrq85UM5TEMaIEIfRwQveR0xpNBygzZEP8S/qWubDM7SoNjW + X-Dd-Version: + - "35.3246947" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: - "10" + X-Ratelimit-Remaining: + - "2993" + X-Ratelimit-Reset: + - "1" status: 200 OK code: 200 duration: "" @@ -1101,18 +1331,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2440694564131368435" + - "8117864226284193237" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/bcdba666871f590892161d11080083cc method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bcdba666871f590892161d11080083cc","monitor_ids":[24670533],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467448,"tags":[],"modified_at":1603467448,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1123,13 +1353,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:21 GMT + - Fri, 23 Oct 2020 15:37:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1138,11 +1368,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - DWKI7VfCUqAo/A5Bt78Xxe/X4KYslPnCs7Op8wV0HLmiqy7vAxg4/ViL6IoVzy03 + - 5H2EXEXOPQC4s7BfWBFjlM6rKywFNh1Cf33eK1xYuPFdBfR+3y2m7Dyr75gZ4kw1 X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11994" + X-Ratelimit-Reset: + - "31" status: 200 OK code: 200 duration: "" @@ -1156,18 +1394,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3254398792891804959" + - "8414426647521887167" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/bcdba666871f590892161d11080083cc method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bcdba666871f590892161d11080083cc","monitor_ids":[24670533],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467448,"tags":[],"modified_at":1603467448,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1178,13 +1416,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:21 GMT + - Fri, 23 Oct 2020 15:37:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1193,17 +1431,25 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zdUdESDt99y2SVrNik+lLSBmyFFFNlFUO4zEnFYNO3qGTBg30VN2+XGqoJzWlOgd + - LkSOFVoHBcsyBoPbYbYfcEWZoNcVif5SL5dX3LvvR/J4mRuKXGmrGqdm859yDQ2v X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11993" + X-Ratelimit-Reset: + - "31" status: 200 OK code: 200 duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":[],"type":"metric alert"} form: {} headers: Accept: @@ -1214,13 +1460,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5290817507996703689" + - "236573234948479061" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -1237,22 +1483,22 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:21 GMT + - Fri, 23 Oct 2020 15:37:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Kee9VS5NjjPfA/YHh7xlRIB+loWgKfgYfbh+K0I50KRAhLkjH2oXj4YLUubPn5Pt + - FHfHzbfIddsg0sQ7IeNBOxLqb5wz+d6n32kEDCDFZtJpoagPnr4KgZnA3JebHBTT X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1268,20 +1514,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2433662807571082881" + - "1795607317620255677" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340630 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name - for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1293,13 +1538,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:21 GMT + - Fri, 23 Oct 2020 15:37:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1308,9 +1553,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EsLH6+rdgSqeLdBeq9HZpt+45W9grH+dHsUtM9XuCxYJqQJyctcAVJKfVBiasXIW + - eG/dd216xDODxUvrkXQT4VhVvMIAMIlvHBW+Kcmtt6jQYter/nugfyVImQIwF/gz X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1318,9 +1563,9 @@ interactions: X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "2997" + - "2999" X-Ratelimit-Reset: - - "9" + - "10" status: 200 OK code: 200 duration: "" @@ -1334,20 +1579,19 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "6234645386776570371" + - "7482345526353936204" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340630 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":22340630,"multi":true,"name":"Name - for monitor foo","created":"2020-09-17T21:25:19.688006+00:00","created_at":1600377919000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:19.688006+00:00","overall_state_modified":null,"overall_state":"No + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1359,13 +1603,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:21 GMT + - Fri, 23 Oct 2020 15:37:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1374,9 +1618,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - RNjkldB/U7jBomuDwniiFl3adRN7VFY0k6iblOqPBlb/lnmtli0Xp6qAxW+GhOfn + - 1rlggRfE73pEFFllgZfChM1RZODDnKFUyVMEk3an2/a5+lJByU7Porp1iIMqRaO7 X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1384,9 +1628,74 @@ interactions: X-Ratelimit-Period: - "10" X-Ratelimit-Remaining: - - "2996" + - "2998" + X-Ratelimit-Reset: + - "10" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "2444034010453414229" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":24670533,"multi":true,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:27.792501+00:00","created_at":1603467447000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:27.792501+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 23 Oct 2020 15:37:30 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:30 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - h6yqPaHNwx3ZGZPMs75pO93HC01YoL8B6e/Fb89zqQCmU57u6KTAhksrYQV/dzkY + X-Dd-Version: + - "35.3246947" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2997" X-Ratelimit-Reset: - - "9" + - "10" status: 200 OK code: 200 duration: "" @@ -1400,18 +1709,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "3033305019174658064" + - "7441392769502051404" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/bcdba666871f590892161d11080083cc method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bcdba666871f590892161d11080083cc","monitor_ids":[24670533],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467448,"tags":[],"modified_at":1603467448,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1422,13 +1731,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:21 GMT + - Fri, 23 Oct 2020 15:37:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1437,11 +1746,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - G84mPdYpSAGk3Cn+ow9K78cPip5wn5xve1MIezJYJmKYQLcpCyyPvAIMLsVAC7W/ + - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11992" + X-Ratelimit-Reset: + - "30" status: 200 OK code: 200 duration: "" @@ -1455,18 +1772,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "4432079289447416190" + - "2354937186197364470" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/bcdba666871f590892161d11080083cc method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"17b840a9186b5b7ebe036c193888fd60","monitor_ids":[22340630],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377920,"tags":[],"modified_at":1600377920,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"bcdba666871f590892161d11080083cc","monitor_ids":[24670533],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467448,"tags":[],"modified_at":1603467448,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1477,13 +1794,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:21 GMT + - Fri, 23 Oct 2020 15:37:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:21 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1492,11 +1809,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - I0yEH4xFhLuk+yM2GIR/dtCF29+DEBKb58kq6TOpApqsa53yIh0t7lSVmFnrgEx+ + - ApDR7dmCPzU09s5sGJ6tunvBxSFKQfwajJriSdeRXXH0ohfkw5+3MDbyzkcCLNJJ X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11991" + X-Ratelimit-Reset: + - "30" status: 200 OK code: 200 duration: "" @@ -1510,17 +1835,17 @@ interactions: - DeleteSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2116301005472120234" + - "23577240852151350" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/bcdba666871f590892161d11080083cc method: DELETE response: - body: '{"data":["17b840a9186b5b7ebe036c193888fd60"],"error":null}' + body: '{"data":["bcdba666871f590892161d11080083cc"],"error":null}' headers: Cache-Control: - no-cache @@ -1531,13 +1856,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:22 GMT + - Fri, 23 Oct 2020 15:37:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:22 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1546,11 +1871,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - VFEd9WEYHg4A4gkQ37Kh8VC+38V/yfH2X0MUdUVsECnCE1FSV9c52Sqrn7OQ0Mvj + - yoF4117GjRVNjK5D+NnV1a4ZZK03NlG9+xqwkNudRekVNp0HsN72cHzXM+2uFPHI X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11999" + X-Ratelimit-Reset: + - "29" status: 200 OK code: 200 duration: "" @@ -1564,17 +1897,17 @@ interactions: - DeleteMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "49810226123591859" + - "7865276245998896062" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340630 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670533 method: DELETE response: - body: '{"deleted_monitor_id":22340630}' + body: '{"deleted_monitor_id":24670533}' headers: Cache-Control: - no-cache @@ -1585,13 +1918,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:22 GMT + - Fri, 23 Oct 2020 15:37:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:22 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1600,9 +1933,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - GzqFsJiHmsMG2ZkgPZxP4KU7BbP1543ieTDBlTOcSv7mMVZ5sYoywme9ykeCrzfU + - ERAR+wIpkUrPjdmF8Izu2K5/ZMTkW0RxdMJp2EI5/HgIxQDnb5krpGDLSDYaD2KU X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -1618,17 +1951,17 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "5709512008761597133" + - "7459983406965109466" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/22340630 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/24670533 method: GET response: - body: '{"errors": ["SLO not found: 22340630 not found"]}' + body: '{"errors": ["SLO not found: 24670533 not found"]}' headers: Cache-Control: - no-cache @@ -1639,7 +1972,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:22 GMT + - Fri, 23 Oct 2020 15:37:31 GMT Dd-Pool: - dogweb Pragma: @@ -1651,9 +1984,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11990" + X-Ratelimit-Reset: + - "29" status: 404 Not Found code: 404 duration: "" @@ -1667,17 +2008,17 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "6701310785581729005" + - "6250261457940496623" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/17b840a9186b5b7ebe036c193888fd60 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/bcdba666871f590892161d11080083cc method: GET response: - body: '{"errors": ["SLO not found: 17b840a9186b5b7ebe036c193888fd60 not found"]}' + body: '{"errors": ["SLO not found: bcdba666871f590892161d11080083cc not found"]}' headers: Cache-Control: - no-cache @@ -1688,7 +2029,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:22 GMT + - Fri, 23 Oct 2020 15:37:31 GMT Dd-Pool: - dogweb Pragma: @@ -1700,15 +2041,23 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11989" + X-Ratelimit-Reset: + - "29" status: 404 Not Found code: 404 duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -1719,13 +2068,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "6866330030858693717" + - "7495241758838197356" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -1742,24 +2091,90 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:22 GMT + - Fri, 23 Oct 2020 15:37:31 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:31 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - AGh2z0D5UkBmrFSY8KEgwxlk+3zQrHHi5H3jTZYGf1x5LPiMFZSRYRPxDqFii9PS + X-Dd-Version: + - "35.3246947" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "4283048633889923801" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 23 Oct 2020 15:37:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:22 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; + Vary: + - Accept-Encoding X-Content-Type-Options: - nosniff X-Dd-Debug: - - iYQ/kN+Mucmn5lrokThXQXO7/WpLJkz6FPOiR0S18ewUC8B+Ld2MxmzWaRyon32u + - KdWc5RppKH51u1oZ6tf2ghJTVEevh006eS91RDKZLGoax50FN2VjMvek2ayUmkXw X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2996" + X-Ratelimit-Reset: + - "8" status: 200 OK code: 200 duration: "" @@ -1773,21 +2188,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "948678055389641768" + - "4977223253468842284" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340627 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name - for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1799,13 +2213,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:23 GMT + - Fri, 23 Oct 2020 15:37:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1814,9 +2228,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - h/IXnJS1M5zKHh5ujv7CkNFB4pqHSDVrmy+nI86u4Ciy2MfrEYtp+07i0sugqnf8 + - +TTazL1HF8qoxYARkG/60PGoq8sbkYkmqeurNry46zV0aHqBZfUrKqxtiyo42NRf X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1826,7 +2240,7 @@ interactions: X-Ratelimit-Remaining: - "2995" X-Ratelimit-Reset: - - "7" + - "8" status: 200 OK code: 200 duration: "" @@ -1840,21 +2254,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2963686579038711386" + - "2962009371546457388" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340627 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name - for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -1866,13 +2279,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:23 GMT + - Fri, 23 Oct 2020 15:37:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1881,9 +2294,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2V6J6bfi8Lp+2UjnPdTvcW5IjbRGxJrhStYZW/ACt/za6xfDiK/Y5IuDyUadsRtA + - SjSxykLY0gTr3VkJbxmjvoevebB2pxQifq0h5HklwYksG7/9u16HyBsdYlpi9mGW X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -1893,7 +2306,7 @@ interactions: X-Ratelimit-Remaining: - "2994" X-Ratelimit-Reset: - - "7" + - "8" status: 200 OK code: 200 duration: "" @@ -1907,18 +2320,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "395817607419057329" + - "5692423865052641836" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/2002246b7c5a54859512fad5863e5bc9 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"2002246b7c5a54859512fad5863e5bc9","monitor_ids":[24670529],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467446,"tags":[],"modified_at":1603467446,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1929,13 +2342,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:23 GMT + - Fri, 23 Oct 2020 15:37:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1944,11 +2357,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 4XEHrKCjPbSbs1iu1F78+tH4eaIPZCq+IGDoHN/GQcOsLq6w3Zzz7ZK1RqpTUzFS + - WyPl7Uohyy2nhJ7RWrq85UM5TEMaIEIfRwQveR0xpNBygzZEP8S/qWubDM7SoNjW X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11988" + X-Ratelimit-Reset: + - "28" status: 200 OK code: 200 duration: "" @@ -1962,18 +2383,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8362688155966474549" + - "1967269108237105003" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/2002246b7c5a54859512fad5863e5bc9 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"2002246b7c5a54859512fad5863e5bc9","monitor_ids":[24670529],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467446,"tags":[],"modified_at":1603467446,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -1984,13 +2405,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:23 GMT + - Fri, 23 Oct 2020 15:37:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -1999,17 +2420,25 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - X0denazzCFz4lg/ZyHfGjeZ1VIa7rKO/7Z2KZkRqN6haxCsk2JhjcqemiVcx/PmK + - eG/dd216xDODxUvrkXQT4VhVvMIAMIlvHBW+Kcmtt6jQYter/nugfyVImQIwF/gz X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11987" + X-Ratelimit-Reset: + - "28" status: 200 OK code: 200 duration: "" - request: body: | - {"message":"some message Notify: @hipchat-channel","name":"Name for monitor foo","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} + {"message":"some message Notify: @hipchat-channel","name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","options":{"include_tags":true,"new_host_delay":300,"no_data_timeframe":10,"notify_no_data":false,"require_full_window":true,"thresholds":{}},"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') \u003e= 1","tags":[],"type":"query alert"} form: {} headers: Accept: @@ -2020,13 +2449,13 @@ interactions: - ValidateMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7072450290444163473" + - "4406612173636032384" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" + - "8760025004431227269" url: https://api.datadoghq.com/api/v1/monitor/validate method: POST response: @@ -2043,22 +2472,22 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:23 GMT + - Fri, 23 Oct 2020 15:37:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:23 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - DRZWTHDeKolQqk6GEAFoSVDF1cV93C/z8xwO7umb9e0luQPYr8BUl8IXxXdpfaM5 + - V26KHlc/RfdWahgILvghYzp00rgLN6YCNAgg+V0KrlqUWK5TouaimNqGpGYzd/eX X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -2074,21 +2503,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "6132755825976675797" + - "2945231180425929586" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340627 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name - for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -2100,13 +2528,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:24 GMT + - Fri, 23 Oct 2020 15:37:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2115,9 +2543,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - U6D+zHwhpLcyO0Eu02dM74d99H/EBAKoYzfZlZJm0EgywWQgfESFIq6V9eRQe6Gm + - k/zHOOzqpc4r+ZK5tvPeMjc5yHaZZgqaNAwCywXjTJpLyIGjDeV+DLPBFsNU82W8 X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -2127,7 +2555,7 @@ interactions: X-Ratelimit-Remaining: - "2993" X-Ratelimit-Reset: - - "6" + - "7" status: 200 OK code: 200 duration: "" @@ -2141,21 +2569,20 @@ interactions: - GetMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "8380391466152589892" + - "5824257685549397287" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340627 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 method: GET response: body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') - >= 1","message":"some message Notify: @hipchat-channel","id":22340627,"multi":false,"name":"Name - for monitor foo","created":"2020-09-17T21:25:18.146708+00:00","created_at":1600377918000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-09-17T21:25:18.146708+00:00","overall_state_modified":null,"overall_state":"No + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' headers: Cache-Control: @@ -2167,13 +2594,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:24 GMT + - Fri, 23 Oct 2020 15:37:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2182,9 +2609,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - CUBCyaoXY2JdeHi5oQm4sg9onCJMsjgVJ5jLk2ugM2iR7uz4Q+lvjzDdvtcYDFC3 + - BZ+RYjLsV2y+9XXNTM/Wbkdcz3DkJnqgQFCAf9xIIxOOOd9x3Em2wjhPfW0piM2C X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -2194,7 +2621,73 @@ interactions: X-Ratelimit-Remaining: - "2992" X-Ratelimit-Reset: - - "6" + - "7" + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor + User-Agent: + - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) + X-Datadog-Parent-Id: + - "5941507910115418584" + X-Datadog-Sampling-Priority: + - "1" + X-Datadog-Trace-Id: + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 + method: GET + response: + body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, + ''basic'', 3, direction=''above'', alert_window=''last_5m'', interval=20, count_default_zero=''true'') + >= 1","message":"some message Notify: @hipchat-channel","id":24670529,"multi":false,"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created":"2020-10-23T15:37:26.029701+00:00","created_at":1603467446000,"creator":{"id":2075930,"handle":"t.proum@gmail.com","name":"Tony + Proum","email":"t.proum@gmail.com"},"org_id":483299,"modified":"2020-10-23T15:37:26.029701+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"query alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"require_full_window":true,"notify_no_data":false}}' + headers: + Cache-Control: + - no-cache + Connection: + - keep-alive + Content-Security-Policy: + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + Content-Type: + - application/json + Date: + - Fri, 23 Oct 2020 15:37:33 GMT + Dd-Pool: + - dogweb + Pragma: + - no-cache + Set-Cookie: + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:33 GMT; + secure; HttpOnly + Strict-Transport-Security: + - max-age=15724800; + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Dd-Debug: + - flm57y1PQqDCGTMvz2Hc0LeaE4WpeyLyl0nK7TyUHhnh1/aAaCfINCnK5EAgp4id + X-Dd-Version: + - "35.3246947" + X-Frame-Options: + - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2991" + X-Ratelimit-Reset: + - "7" status: 200 OK code: 200 duration: "" @@ -2208,18 +2701,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7808194180991402559" + - "6946326143410591337" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/2002246b7c5a54859512fad5863e5bc9 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"2002246b7c5a54859512fad5863e5bc9","monitor_ids":[24670529],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467446,"tags":[],"modified_at":1603467446,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -2230,13 +2723,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:24 GMT + - Fri, 23 Oct 2020 15:37:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2245,11 +2738,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - POuDbGLugqXrJfoVh1EySG2rrzsK54DWLRF5/pTAPkxizo7RlYf80RrCYTzc0hnv + - mpg/BCzsUMOxVwcAuQg/6c40bDAb3ejXVT4tkiODN0ExybQ/Ia68faurJX6CivjX X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11986" + X-Ratelimit-Reset: + - "27" status: 200 OK code: 200 duration: "" @@ -2263,18 +2764,18 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "7618354030043679540" + - "3177685327248176109" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/2002246b7c5a54859512fad5863e5bc9 method: GET response: body: '{"data":{"description":"some updated description about foo SLO","monitor_tags":[],"creator":{"handle":"t.proum@gmail.com","name":"Tony - Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"595414c16ced5658be2ee984ebded698","monitor_ids":[22340627],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1600377917","created_at":1600377918,"tags":[],"modified_at":1600377918,"type":"monitor"},"error":null}' + Proum","email":"t.proum@gmail.com"},"thresholds":[{"warning":99.8,"warning_display":"99.8","target":99.5,"target_display":"99.5","timeframe":"7d"}],"type_id":0,"id":"2002246b7c5a54859512fad5863e5bc9","monitor_ids":[24670529],"name":"tf-TestAccDatadogServiceLevelObjective_NewMonitorForceRecreate-local-1603467440","created_at":1603467446,"tags":[],"modified_at":1603467446,"type":"monitor"},"error":null}' headers: Cache-Control: - no-cache @@ -2285,13 +2786,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:24 GMT + - Fri, 23 Oct 2020 15:37:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2300,11 +2801,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IEUzjgpnyUrp74lH2dqPweGXNQU7es3CY44HHPIdy7aSNeimMebMvcKCoCgyWWVx + - 1cd0/X8iFjFNZXjpX11JpiLJbbxmicjztoLT0xgVCngh7XkSAjfiT2A4vALPTlNE X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11985" + X-Ratelimit-Reset: + - "27" status: 200 OK code: 200 duration: "" @@ -2318,17 +2827,17 @@ interactions: - DeleteSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "314697125847582178" + - "5821027352563875514" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/2002246b7c5a54859512fad5863e5bc9 method: DELETE response: - body: '{"data":["595414c16ced5658be2ee984ebded698"],"error":null}' + body: '{"data":["2002246b7c5a54859512fad5863e5bc9"],"error":null}' headers: Cache-Control: - no-cache @@ -2339,13 +2848,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:24 GMT + - Fri, 23 Oct 2020 15:37:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2354,11 +2863,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - sbJ6i3VupQQcT7EDgPAdOxGmcKsvZJqf4l3SlQaWZNaaFfahh7BdNF3x5CttmH4Q + - TlObKNxJC6mRjORAptBjah7X7IZlZoWDhxDuIhUdNUMmnkpihyb67mpyYPwy4Xl5 X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11998" + X-Ratelimit-Reset: + - "27" status: 200 OK code: 200 duration: "" @@ -2372,17 +2889,17 @@ interactions: - DeleteMonitor User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2275366474563266511" + - "615682315826661315" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/monitor/22340627 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/monitor/24670529 method: DELETE response: - body: '{"deleted_monitor_id":22340627}' + body: '{"deleted_monitor_id":24670529}' headers: Cache-Control: - no-cache @@ -2393,13 +2910,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:25 GMT + - Fri, 23 Oct 2020 15:37:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Thu, 24-Sep-2020 21:25:24 GMT; + - DD-PSHARD=249; Max-Age=604800; Path=/; expires=Fri, 30-Oct-2020 15:37:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -2408,9 +2925,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - FP8Y2ks6/+u/R8ikARtQQYvp9IVj9nSQPYtAt3WVuBjumgKP35t8vnUuGfeHdr64 + - Rk64tCoF3V07+a4szeABxTtZIJ+mXpZWikk4VsgNuvqwu3MpGXqLHxCVHOt9N39v X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -2426,17 +2943,17 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "237301997618622721" + - "8684965055116846232" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/22340627 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/24670529 method: GET response: - body: '{"errors": ["SLO not found: 22340627 not found"]}' + body: '{"errors": ["SLO not found: 24670529 not found"]}' headers: Cache-Control: - no-cache @@ -2447,7 +2964,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:25 GMT + - Fri, 23 Oct 2020 15:37:34 GMT Dd-Pool: - dogweb Pragma: @@ -2459,9 +2976,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11984" + X-Ratelimit-Reset: + - "26" status: 404 Not Found code: 404 duration: "" @@ -2475,17 +3000,17 @@ interactions: - GetSLO User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.8 (go go1.15.2; os linux; arch amd64) + datadog-api-client-go/1.0.0-beta.9+dev (go go1.15.2; os linux; arch amd64) X-Datadog-Parent-Id: - - "2505414163922857468" + - "2310155895333614564" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "2011180226383939329" - url: https://api.datadoghq.com/api/v1/slo/595414c16ced5658be2ee984ebded698 + - "8760025004431227269" + url: https://api.datadoghq.com/api/v1/slo/2002246b7c5a54859512fad5863e5bc9 method: GET response: - body: '{"errors": ["SLO not found: 595414c16ced5658be2ee984ebded698 not found"]}' + body: '{"errors": ["SLO not found: 2002246b7c5a54859512fad5863e5bc9 not found"]}' headers: Cache-Control: - no-cache @@ -2496,7 +3021,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 17 Sep 2020 21:25:25 GMT + - Fri, 23 Oct 2020 15:37:34 GMT Dd-Pool: - dogweb Pragma: @@ -2508,9 +3033,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3054346" + - "35.3246947" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11983" + X-Ratelimit-Reset: + - "26" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/resource_datadog_dashboard_dependencies_test.go b/datadog/resource_datadog_dashboard_dependencies_test.go index 0a03eb4fe..a57c7bee4 100644 --- a/datadog/resource_datadog_dashboard_dependencies_test.go +++ b/datadog/resource_datadog_dashboard_dependencies_test.go @@ -12,14 +12,14 @@ import ( func datadogDashboardDepConfig(uniq string) string { return fmt.Sprintf(` resource "datadog_monitor" "foo" { - name = "Name for monitor foo" + name = "%s" type = "query alert" message = "some message Notify: @hipchat-channel" query = "avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') >= 1" } resource "datadog_service_level_objective" "foo" { - name = "Name for slo foo" + name = "%s" type = "monitor" description = "some updated description about foo SLO" @@ -52,20 +52,20 @@ resource "datadog_dashboard" "foo" { view_type = "detail" } } -}`, uniq) +}`, uniq, uniq, uniq) } func datadogDashboardDepChangedConfig(uniq string) string { return fmt.Sprintf( `resource "datadog_monitor" "foo" { - name = "Name for monitor foo" + name = "%s" type = "metric alert" message = "some message Notify: @hipchat-channel" query = "avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} > 2" } resource "datadog_service_level_objective" "foo" { - name = "Name for slo foo" + name = "%s" type = "monitor" description = "some updated description about foo SLO" @@ -98,7 +98,7 @@ resource "datadog_dashboard" "foo" { view_type = "detail" } } -}`, uniq) +}`, uniq, uniq, uniq) } func TestAccDatadogDashboard_NewMonitorForceRecreate(t *testing.T) { diff --git a/datadog/resource_datadog_service_level_objective_test.go b/datadog/resource_datadog_service_level_objective_test.go index 455e42209..d9d9253be 100644 --- a/datadog/resource_datadog_service_level_objective_test.go +++ b/datadog/resource_datadog_service_level_objective_test.go @@ -104,7 +104,7 @@ resource "datadog_service_level_objective" "foo" { func testAccCheckDatadogServiceLevelObjectiveConfigMonitor(uniq string) string { return fmt.Sprintf(` resource "datadog_monitor" "foo" { - name = "Name for monitor foo" + name = "%s" type = "query alert" message = "some message Notify: @hipchat-channel" query = "avg(last_1h):anomalies(avg:system.cpu.system{name:cassandra}, 'basic', 3, direction='above', alert_window='last_5m', interval=20, count_default_zero='true') >= 1" @@ -124,13 +124,13 @@ resource "datadog_service_level_objective" "foo" { monitor_ids = [ datadog_monitor.foo.id ] -}`, uniq) +}`, uniq, uniq) } func testAccCheckDatadogServiceLevelObjectiveConfigForceRecreate(uniq string) string { return fmt.Sprintf(` resource "datadog_monitor" "foo" { - name = "Name for monitor foo" + name = "%s" type = "metric alert" message = "some message Notify: @hipchat-channel" query = "avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} > 2" @@ -150,7 +150,7 @@ resource "datadog_service_level_objective" "foo" { monitor_ids = [ datadog_monitor.foo.id ] -}`, uniq) +}`, uniq, uniq) } // tests