diff --git a/datadog/cassettes/TestAccDatadogDowntimeDates.yaml b/datadog/cassettes/TestAccDatadogDowntimeDates.yaml index 7c96a6e34..ab74dee42 100644 --- a/datadog/cassettes/TestAccDatadogDowntimeDates.yaml +++ b/datadog/cassettes/TestAccDatadogDowntimeDates.yaml @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":4097124660,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190138,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":4097124660,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628634,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190138 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628634 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":4097124660,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190138,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":4097124660,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628634,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bJj7D3RvHsKo+7eO3lrtPpPG0z8SsAwLw7bNfLb4htD+N9Ub8bD3AFgh45XaVsFM + - QaEGvF++JqTbTiFomKhE21Fdnra2zinKOaCEqOgwcd7OtJatRLgvovBbCNyGqcpO X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190138 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628634 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":4097124660,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190138,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":4097124660,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628634,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mIWJPPM06xs5rSGFgggpdD5UbOnt6ntntAO8/8YDsVuXnSmp/k0aZ5dEUtAKB7Td + - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190138 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628634 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":4097124660,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190138,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":4097124660,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628634,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7vC9CD2UnUYbC7cu05B95RgDyGt2vcRq8GQJgBahx4BAPKzA8OvLqEF8NdaLccla + - kg+/Cls6zaJcT2blJLlU62BwgGePGdpqSwWrJ0xEIvzmSMWHXxGNsiyEzBPJ1a96 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190138 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628634 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":4097124660,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190138,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":4097124660,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628634,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - OGWvqyuIWnbl6WkXpkkRXBvKLURJhdDx+xXZ6vxnnyjZzYdefkAlNGOfG85GcOUu + - hlZGwPPL87Cire+2SDWJrcKtg5ChXKBaVFmtHdrZS+BoDfdo10256wfXrEDRUv8c X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190138 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628634 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":4097124660,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190138,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":4097124660,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628634,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xDB9TwFteerR1wCiwj8/TgXRHM8VsESQxiCQvltAxyn4fse47E64CquSvdpyvFXM + - +6muH0vWWhHE6JfE/xHkdpoFSNgX/+wCvqEMuEDvglDKir3htwvCDYdHi0bPaPF0 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190138 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628634 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":4097124660,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190138,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":4097124660,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628634,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:59 GMT + - Mon, 15 Jun 2020 15:06:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - u9VEJv4YNx+Fl9tRGJNbGm0+76jyym0t+mec2t84PhoJYEedil3ajyEhP7U3EneZ + - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,8 +349,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190138 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628634 method: DELETE response: body: "" @@ -366,22 +366,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:59 GMT + - Mon, 15 Jun 2020 15:06:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:59 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 + - gH++OYwf8a2QZXnzDsHHnXqPhHbI48oqNvFjE/0p0ObpMBY4290QCI5SB0tU0MAF X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -396,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190138 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628634 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":1587785399,"monitor_id":null,"org_id":321813,"disabled":true,"start":4097124660,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190138,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":4097160000,"monitor_tags":["*"],"canceled":1592233592,"monitor_id":null,"org_id":426674,"disabled":true,"start":4097124660,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628634,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -412,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:59 GMT + - Mon, 15 Jun 2020 15:06:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:59 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -427,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pNNj5PhODCVJlRBPEhZP3s9KL9kvFYv//TnGsiPp+3AqL7R5kIW2JlCWtfMcXeFn + - YKF8+1vTI0wiWlB3VWhiMVnZ1RLtV3h2yAW6/TGe9qIMWdYXxsNpy3J4QxfrJoDD X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_Basic.yaml b/datadog/cassettes/TestAccDatadogDowntime_Basic.yaml index 547d0ad99..b23dea386 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"end":1735765200,"message":"Example Datadog downtime message.","monitor_tags":["*"],"recurrence":{"period":1,"type":"days"},"scope":["*"],"start":1735707600,"timezone":"UTC"} + {"end":1735765200,"message":"Example Datadog downtime message.","monitor_tags":["app:webserver","service"],"recurrence":{"period":1,"type":"days"},"scope":["*"],"start":1735707600,"timezone":"UTC"} form: {} headers: Accept: @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189986,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628442,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:14 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:44 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:14 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - aswcxBk1J00Iy18+kQFKF6EQfzLy4sWD4ILciesVMX5rWDYniffEYH6qbK0qwOgw + - YNGrI7M9aLfuf6Npp7n/51e6xDtYCO9Rm/LB+HGbX4I6A/e7rnC+cgQxIZnsU+fj X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189986 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628442 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189986,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628442,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:14 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:45 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:14 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ + - J5PL0LnJukdy69mckjXi3cjye/YJX2hkoCBkqKQi+tYjrsXYELx6DfDD11fhyjYF X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189986 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628442 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189986,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628442,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:45 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 + - o1rjyOSbDnvYaQgtO33vwWSNsIwHafzLqam2amG/PbTP69SVY965ZpWutdoYJB30 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189986 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628442 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189986,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628442,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:45 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zgs4/R8U39Dx88K274ycCG8gmotK2r1yjyecTfeITqBuGEc/zW9V1MMOyMl9URns + - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189986 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628442 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189986,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628442,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:45 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - A5a5htKhTUF1FdBQZRUZl4RVawKwk2RUtaZz3EDBmdXc0X6i0O7TBEBWn4bIBQ01 + - nRZqCODixwNZX0HLyT17WzYwenviVG0rmnZak57k5KsDWun3aWEsPedTsRpiFQxf X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189986 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628442 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189986,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628442,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:45 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - L5yd3v29mZzDtdpTLB/OLdaP/nm856X8oKVK7IsHIbLmKRYkqq5Jv7+SBx/bs1VS + - 1/ye/L7/S9djtmh0CDbapYOAoYP2Xz5NE904aTai4cgQw/Kmmv343hpHqBIP3PC5 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189986 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628442 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189986,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628442,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:45 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Z91NUpPIZnIQ9h7lBFWBkEPGVUEsn4/i71imPPwrChu4RPI5uNM5HGuodISK1HBR + - +24qoGfe5Pp4qbS1m8KO9qioq2P4fxuj80XQhtr/9vInDLECmYZT0VSsbqISZgqC X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,8 +349,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189986 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628442 method: DELETE response: body: "" @@ -366,22 +366,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:45 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -396,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189986 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628442 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1587785385,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189986,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":1592233575,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628442,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -412,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:45 GMT + - Mon, 15 Jun 2020 15:06:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:45 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -427,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zgs4/R8U39Dx88K274ycCG8gmotK2r1yjyecTfeITqBuGEc/zW9V1MMOyMl9URns + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_BasicMultiScope.yaml b/datadog/cassettes/TestAccDatadogDowntime_BasicMultiScope.yaml index 637625026..ff78839a1 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_BasicMultiScope.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_BasicMultiScope.yaml @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190029,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628553,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:20 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vwiIwb5QepaQFIQrmPfIwwVWkQ/z0inFQwNEDjqDDy4v3CsF5qbv9dnyfb7UGzLf + - fGPsEOteKPqWrypJlOWIRpMZD2l0VjpTiFY5o5e56+jFb+ShdPzcenDH6s8Ah62s X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190029 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628553 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190029,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628553,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:20 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pEDVi2191MvoIMwusdL+COAxndBmcRhJtxAtWxDDnECWDI8Z99hIoBZbpR57tJKz + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190029 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628553 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190029,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628553,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:20 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +UwwYRc+A5vkEib2s1YY/+OMx26FxXkDPMnhrpaIz/kTVseyL62lC12FdLJrU3nv + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190029 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628553 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190029,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628553,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:20 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tp1qdVxoUmtlsVp6hgBWraWfL5vEbA116VZkaWKWIZtgPr5Ima8zysCBv+o2WoZ/ + - aswcxBk1J00Iy18+kQFKF6EQfzLy4sWD4ILciesVMX5rWDYniffEYH6qbK0qwOgw X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190029 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628553 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190029,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628553,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:20 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - o8MFmk+4Ge4vq85ax+5C1nfQs0lbtaPPYZrpqzeG6IsYGNLGMu/G7PbJElpjPS5i + - OdMYjD4Lcx2EOYJ2NSqLNRIyMqxNYyUQxCcT6zY9ZmZ+zl9yipXz0nuLjH5hVxTY X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190029 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628553 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190029,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628553,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - j0VNx9cZdAj+uuO7pabHlao4Ioc5q8ovvp4Ja/NYzbHA51zSBYXNvtO+8cOYbE0B + - lyzq/AwBoYy31tqkvQ8mzBugAZOys447o2yCYdRfm1oPuJTtZy0Uz+ukzrgaZfIT X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190029 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628553 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190029,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628553,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zgs4/R8U39Dx88K274ycCG8gmotK2r1yjyecTfeITqBuGEc/zW9V1MMOyMl9URns + - UH1aMdrlnlnaxy/K+HUi5QUN2T0FBtGPSUC8sLrviqCK1XXfgHsSO5DneAd5J+6F X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,8 +349,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190029 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628553 method: DELETE response: body: "" @@ -366,22 +366,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - skwclWwYkKW38qisoeAm0+G71HHbXaQZSRP+zaGh2pZ7dRVTlLXlAp6DZVg5jg4x + - yEcEaKqmSUfeSlQ/kN/c5E6EpIXbM1JPI9KV27pdsvBWWv3FI4tsqqRarYTS+fS+ X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -396,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190029 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628553 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1587785390,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190029,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1592233581,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:A","host:B"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628553,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -412,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -427,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - TAg/qKywM5rz/AUGkmt8+wB4wzGMJfSiHOrBzxBctPLsV/erSD5TChi/uo5ZlVXK + - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_BasicNoRecurrence.yaml b/datadog/cassettes/TestAccDatadogDowntime_BasicNoRecurrence.yaml index 03c262887..88418a31f 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_BasicNoRecurrence.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_BasicNoRecurrence.yaml @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190039,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628561,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:51 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C + - +UwwYRc+A5vkEib2s1YY/+OMx26FxXkDPMnhrpaIz/kTVseyL62lC12FdLJrU3nv X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190039 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628561 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190039,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628561,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:21 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:51 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:21 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - RngFxOd8mVeT14auLfzsH/6kz142QLoKkYXZjfmXpXDkZ/eN6uoCM3cTScXuFEa0 + - XrVF9iGOfdATIczLJsCTqr1ORVJWAydZm12oLZRyDN+lGe5bU8VekbcSMjJ2fj90 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190039 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628561 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190039,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628561,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:22 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:51 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:22 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PKDIrz8Hcluof9oNzY3q1BouPTowe6nlZ4slm6KLsMEc/9DaK1hteKVCh6mza/IQ + - Lo9psmCk9egobltaxBGqrQFhgCcgUTQoFZpr2xiSR+6tucB/owychJvFjr9YMWzu X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190039 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628561 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190039,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628561,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:22 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:51 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:22 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pdoE+6MDHF3ASB0y6TdRZq9HO/3uAKc0XPY7EkyNyaFqpXeeAHwz2Ce2QWIN714X + - qA85Kiicwd/s93AfT3MSf+l6IYc5FQ6tEbp4Kft/ri41UOumJ967MPQKmz3gwejd X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190039 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628561 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190039,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628561,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:22 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:51 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:22 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190039 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628561 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190039,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628561,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:22 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:51 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:22 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pNNj5PhODCVJlRBPEhZP3s9KL9kvFYv//TnGsiPp+3AqL7R5kIW2JlCWtfMcXeFn + - AVsav2jjRGvwjNvJeRUS7kJsgTlhh9y9smyL3UJVQTMAUoPyejdL0bVSnanIQLK4 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190039 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628561 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190039,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628561,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:22 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:51 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:22 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - skwclWwYkKW38qisoeAm0+G71HHbXaQZSRP+zaGh2pZ7dRVTlLXlAp6DZVg5jg4x + - +6muH0vWWhHE6JfE/xHkdpoFSNgX/+wCvqEMuEDvglDKir3htwvCDYdHi0bPaPF0 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,8 +349,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190039 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628561 method: DELETE response: body: "" @@ -366,22 +366,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:51 GMT + - Mon, 15 Jun 2020 15:06:22 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:51 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:22 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - JEThRmJp6qTNp8pxXQqPpRD40l23OvSASz6GutTWG+aCw+n9cF/5KqfPSziGHWsU + - qA85Kiicwd/s93AfT3MSf+l6IYc5FQ6tEbp4Kft/ri41UOumJ967MPQKmz3gwejd X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -396,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190039 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628561 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":1587785391,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190039,"updater_id":1445416}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["*"],"canceled":1592233582,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:NoRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628561,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -412,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:22 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:22 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -427,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mGJe6qmS66N9ddKWdHwHEzQK9VHuaMNr7+EsVTKliCkGq+ayJZmadUyCSwID4him + - 8jOW1djIgkdkj4STw+0pQ3G+kGKfu548DWINvnE6phacY0k9vgC3cU1LaI38XIYk X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_BasicUntilDateRecurrence.yaml b/datadog/cassettes/TestAccDatadogDowntime_BasicUntilDateRecurrence.yaml index 53b28e056..797b49f4f 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_BasicUntilDateRecurrence.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_BasicUntilDateRecurrence.yaml @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190045,"updater_id":null}' + body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628563,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:23 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:23 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YKF8+1vTI0wiWlB3VWhiMVnZ1RLtV3h2yAW6/TGe9qIMWdYXxsNpy3J4QxfrJoDD + - pT9LlAdgAzlrCUxMXQkBRs/Qti76jKIHng1uB0/SctAaYjB4WqOgOZYpCbOMQKll X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190045 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628563 method: GET response: - body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190045,"updater_id":null}' + body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628563,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:23 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:23 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + - AVsav2jjRGvwjNvJeRUS7kJsgTlhh9y9smyL3UJVQTMAUoPyejdL0bVSnanIQLK4 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190045 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628563 method: GET response: - body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190045,"updater_id":null}' + body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628563,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:23 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:23 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nwn8Akm+cp12Jtby9xyfYjHWK2KZDWf5LxY+SMa+2NK6hVIBcKsVHXjynaTEG+o0 + - CFSDBBie5Okt4N1oWVJNTAqpt778eCo7VQZ0NhVFWw8MHYFUwuA7DURhpFRYY+Wy X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190045 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628563 method: GET response: - body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190045,"updater_id":null}' + body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628563,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:23 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:23 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - TAg/qKywM5rz/AUGkmt8+wB4wzGMJfSiHOrBzxBctPLsV/erSD5TChi/uo5ZlVXK + - 0Ldh7zbvTvxG6fwW0tw8N7mZPnI2XNOUoKCE8H0O1+b4UJVtdo0G52qWoFveZXDz X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190045 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628563 method: GET response: - body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190045,"updater_id":null}' + body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628563,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:23 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:23 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - QgRGXxkxV9A4PZPYRoesCGgupw+m7xaD1r9nbJHgAaPeprYV0FnzI0EYYO7x6f4+ + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190045 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628563 method: GET response: - body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190045,"updater_id":null}' + body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628563,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:23 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:23 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l + - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190045 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628563 method: GET response: - body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190045,"updater_id":null}' + body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628563,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:23 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:23 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB + - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,8 +349,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190045 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628563 method: DELETE response: body: "" @@ -366,22 +366,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:24 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:24 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wn01ZjXucAfzJfwvKAkpy0yFfNtHyWu4ZB2aA4ZDwwhXkyLHirYeUNsx208dZz9p + - oQ/oy4ezTZ+/WzL4afBMlDjLd5w62e5H15hF5BJChw1Gte+Sq8B8tB7i6vlTiLL0 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -396,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190045 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628563 method: GET response: - body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1587785392,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190045,"updater_id":1445416}' + body: '{"recurrence":{"until_date":1736226000,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1592233584,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilDateRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628563,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -412,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:52 GMT + - Mon, 15 Jun 2020 15:06:24 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:52 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:24 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -427,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - e/PzE6y8JJ1tlF66uEI2h0RElcpoaXRe9TzYMeQVIADcqTHrHUqcUgRemfbYKGMv + - ty7T8eIeXOfZhM7KDN5nGo8JS7ZSIWAqBNFeZshTg3LLDJJa7mPU5wqGt0nOPCpy X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_BasicUntilOccurrencesRecurrence.yaml b/datadog/cassettes/TestAccDatadogDowntime_BasicUntilOccurrencesRecurrence.yaml index 3c3517db4..94c3faab4 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_BasicUntilOccurrencesRecurrence.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_BasicUntilOccurrencesRecurrence.yaml @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190046,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628568,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:24 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:24 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + - +24qoGfe5Pp4qbS1m8KO9qioq2P4fxuj80XQhtr/9vInDLECmYZT0VSsbqISZgqC X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190046 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628568 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190046,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628568,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:24 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:24 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - SaHvyR/hQzhMjBxXmmuM76vwlwfocpgL0LhX3u6R0CFONYqUGm7Xe/7/HyTliTFX + - o8MFmk+4Ge4vq85ax+5C1nfQs0lbtaPPYZrpqzeG6IsYGNLGMu/G7PbJElpjPS5i X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190046 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628568 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190046,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628568,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:24 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:24 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PmDXJXCpOnq24qtagNCLPTUoILSRgi3DGaXUca70kUEAM8DZBLYkwSVilYSYEHCG + - +UwwYRc+A5vkEib2s1YY/+OMx26FxXkDPMnhrpaIz/kTVseyL62lC12FdLJrU3nv X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190046 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628568 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190046,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628568,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:24 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:24 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dPTJBBDv5jeY1gnH1FisDpda5Hi0boOGbsHxIOi4qkMt+QLOH7F7P7MeSr40vXZ0 + - BQaWiIhDCyK3JbvyPZudxtMuoedbvOKE6tb5GJMfo6GT4EOQ8qx9lqgA4UCxp88q X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190046 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628568 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190046,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628568,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:24 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B/LXPck0nGNX0RSV/Gw7cnZ0oe92FUOfg1ec7WcU0kSvw/UBT+IXTFTD87Snvz2v + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190046 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628568 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190046,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628568,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN + - JbIYRXbRMsAVaKGy+d2H1ud8Z295ghodOPi6eELPzhmBKrZI3+dlseyrUY1cqOAd X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190046 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628568 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190046,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628568,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 562ySu37xnxKxbTr0NFd7oH3+L3JO3D7GcG/Lb1Dr0vgKuyocJBk1SrO7ogLRZuZ + - aq7EAvMMXGdldXT5eVhOcqdveqp5VDY6MoO0A/xKTuSa7v4Cc6HWT9iWUnYD+m1F X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,8 +349,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190046 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628568 method: DELETE response: body: "" @@ -366,22 +366,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -396,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190046 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628568 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1587785393,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190046,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":5,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1592233585,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:UntilOccurrencesRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628568,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -412,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -427,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - e8t0cvW5uVKXk1zUsTcAcDpqv28dgy+lCs/R2sCfbKW6stomFiq2a4ijzxRdPBn5 + - pT9LlAdgAzlrCUxMXQkBRs/Qti76jKIHng1uB0/SctAaYjB4WqOgOZYpCbOMQKll X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitor.freeze b/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitor.freeze index eb1a7f6b9..26a99ce74 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitor.freeze +++ b/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitor.freeze @@ -1 +1 @@ -2020-04-24T23:29:45.950757-04:00 \ No newline at end of file +2020-06-15T15:06:16.055349943Z \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitor.yaml b/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitor.yaml index 63c24a784..c0c800c75 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitor.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitor.yaml @@ -2,23 +2,25 @@ version: 1 interactions: - request: - body: '{"type":"metric alert","query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} \u003e 2","name":"name for monitor foo","message":"some message Notify: - @hipchat-channel","tags":null,"options":{"notify_no_data":false,"new_host_delay":300,"silenced":{"*":1587799785},"escalation_message":"the - situation has escalated @pagerduty","thresholds":{"critical":2.0,"warning":1.0},"include_tags":true,"require_full_window":true},"state":{}}' + body: | + {"message":"some message Notify: @hipchat-channel","name":"name for monitor foo","options":{"escalation_message":"the situation has escalated @pagerduty","include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"silenced":{"*":1592247976},"thresholds":{"critical":2,"warning":1}},"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: - - Datadog/dev/terraform (go1.13.4) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) 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":17994078,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:46.059055+00:00","created_at":1587785386000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:46.059055+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799785},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329198,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:16.189266+00:00","created_at":1592233576000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:16.189266+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247976},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -30,13 +32,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:16 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:16 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +47,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HIunaScoW4AWw8tnSbk8zc5V6c9XLV6++/KbgzaC4HIb212+evjUYL1yRLeLtS2T + - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -65,15 +67,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994078 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329198 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":17994078,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:46.059055+00:00","created_at":1587785386000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:46.059055+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799785},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329198,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:16.189266+00:00","created_at":1592233576000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:16.189266+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247976},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -85,13 +91,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:16 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:16 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -100,9 +106,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +6muH0vWWhHE6JfE/xHkdpoFSNgX/+wCvqEMuEDvglDKir3htwvCDYdHi0bPaPF0 + - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -118,7 +124,7 @@ interactions: duration: "" - request: body: | - {"end":1587799785,"message":"Example Datadog downtime message.","monitor_id":17994078,"monitor_tags":null,"scope":["*"],"start":1587796185,"timezone":"UTC"} + {"end":1592247976,"message":"Example Datadog downtime message.","monitor_id":19329198,"monitor_tags":null,"scope":["*"],"start":1592244376,"timezone":"UTC"} form: {} headers: Accept: @@ -128,12 +134,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":null,"end":1587799785,"monitor_tags":["*"],"canceled":null,"monitor_id":17994078,"org_id":321813,"disabled":false,"start":1587796185,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189997,"updater_id":null}' + body: '{"recurrence":null,"end":1592247976,"monitor_tags":["*"],"canceled":null,"monitor_id":19329198,"org_id":426674,"disabled":false,"start":1592244376,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628462,"updater_id":null}' headers: Cache-Control: - no-cache @@ -144,13 +150,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:16 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:16 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -159,9 +165,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -176,12 +182,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189997 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628462 method: GET response: - body: '{"recurrence":null,"end":1587799785,"monitor_tags":["*"],"canceled":null,"monitor_id":17994078,"org_id":321813,"disabled":false,"start":1587796185,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189997,"updater_id":null}' + body: '{"recurrence":null,"end":1592247976,"monitor_tags":["*"],"canceled":null,"monitor_id":19329198,"org_id":426674,"disabled":false,"start":1592244376,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628462,"updater_id":null}' headers: Cache-Control: - no-cache @@ -192,13 +198,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:16 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:16 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -207,9 +213,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IkXBg4ZNMRmDsobzMjEa2v35+NuPiQI0gFmho/o6e7+hfyyJl3rjuklsE4uVJo7l + - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -224,12 +230,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189997 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628462 method: GET response: - body: '{"recurrence":null,"end":1587799785,"monitor_tags":["*"],"canceled":null,"monitor_id":17994078,"org_id":321813,"disabled":false,"start":1587796185,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189997,"updater_id":null}' + body: '{"recurrence":null,"end":1592247976,"monitor_tags":["*"],"canceled":null,"monitor_id":19329198,"org_id":426674,"disabled":false,"start":1592244376,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628462,"updater_id":null}' headers: Cache-Control: - no-cache @@ -240,13 +246,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:16 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:16 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -255,9 +261,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - aq7EAvMMXGdldXT5eVhOcqdveqp5VDY6MoO0A/xKTuSa7v4Cc6HWT9iWUnYD+m1F + - rk3iIRyevtXsTLLTMsm8PoHrVjRY2UIgJwOnYxasATpPihgg0ps3VPSw7zz+6jrL X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -267,15 +273,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994078 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329198 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":17994078,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:46.059055+00:00","created_at":1587785386000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:46.059055+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799785},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329198,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:16.189266+00:00","created_at":1592233576000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:16.189266+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247976},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -287,13 +297,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:16 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:16 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -302,9 +312,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 562ySu37xnxKxbTr0NFd7oH3+L3JO3D7GcG/Lb1Dr0vgKuyocJBk1SrO7ogLRZuZ + - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -322,15 +332,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994078 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329198 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":17994078,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:46.059055+00:00","created_at":1587785386000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:46.059055+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799785},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329198,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:16.189266+00:00","created_at":1592233576000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:16.189266+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247976},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -342,13 +356,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:17 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -357,9 +371,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - QaEGvF++JqTbTiFomKhE21Fdnra2zinKOaCEqOgwcd7OtJatRLgvovBbCNyGqcpO + - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -369,7 +383,7 @@ interactions: X-Ratelimit-Remaining: - "2997" X-Ratelimit-Reset: - - "4" + - "3" status: 200 OK code: 200 duration: "" @@ -382,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189997 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628462 method: GET response: - body: '{"recurrence":null,"end":1587799785,"monitor_tags":["*"],"canceled":null,"monitor_id":17994078,"org_id":321813,"disabled":false,"start":1587796185,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189997,"updater_id":null}' + body: '{"recurrence":null,"end":1592247976,"monitor_tags":["*"],"canceled":null,"monitor_id":19329198,"org_id":426674,"disabled":false,"start":1592244376,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628462,"updater_id":null}' headers: Cache-Control: - no-cache @@ -398,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:17 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -413,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS + - F11u7JCZTPrHz8VfzL5YeXThxcQSR6CdLGgk2tF52+EbYWhXciN8nv9vA8oQ9C9A X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -430,12 +444,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189997 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628462 method: GET response: - body: '{"recurrence":null,"end":1587799785,"monitor_tags":["*"],"canceled":null,"monitor_id":17994078,"org_id":321813,"disabled":false,"start":1587796185,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189997,"updater_id":null}' + body: '{"recurrence":null,"end":1592247976,"monitor_tags":["*"],"canceled":null,"monitor_id":19329198,"org_id":426674,"disabled":false,"start":1592244376,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628462,"updater_id":null}' headers: Cache-Control: - no-cache @@ -446,13 +460,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:17 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -461,9 +475,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - FkKIRCzyOlcTfevOWu/Pn0jzNwYGEOKsDSSLLIk1UH0umdv3B3q8BoRMqfK8ce37 + - QpzDmIoaO5Hufx014PqM5BuLw+G9k75nLqy12TEr4Iab1Fl7hIFT5DrERoBer8OF X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -473,15 +487,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994078 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329198 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":17994078,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:46.059055+00:00","created_at":1587785386000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:46.059055+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799785},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329198,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:16.189266+00:00","created_at":1592233576000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:16.189266+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247976},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -493,13 +511,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:46 GMT + - Mon, 15 Jun 2020 15:06:17 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:46 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -508,9 +526,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - v8lEj/pYmsavh1I0Db6FT/BAvLdOdAv91ctM9ImcmfZ/KHrCACXEdhuskTCPihd+ + - vlc9b/rJPByGsV/acj3ScS7B1lo9nEAbSgYCfkl0GH3egry4iXeiGBP0WX8DpJ/T X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -520,7 +538,7 @@ interactions: X-Ratelimit-Remaining: - "2996" X-Ratelimit-Reset: - - "4" + - "3" status: 200 OK code: 200 duration: "" @@ -528,15 +546,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994078 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329198 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":17994078,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:46.059055+00:00","created_at":1587785386000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:46.059055+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799785},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329198,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:16.189266+00:00","created_at":1592233576000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:16.189266+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247976},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -548,13 +570,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:47 GMT + - Mon, 15 Jun 2020 15:06:17 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:47 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -563,9 +585,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + - HTCsbjwqQM0jTFHFq9ukWObBv4f/yxvHIxzrANPhzJkr6s3+rN5uCN3TcZuK2V2B X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -588,12 +610,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189997 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628462 method: GET response: - body: '{"recurrence":null,"end":1587799785,"monitor_tags":["*"],"canceled":null,"monitor_id":17994078,"org_id":321813,"disabled":false,"start":1587796185,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189997,"updater_id":null}' + body: '{"recurrence":null,"end":1592247976,"monitor_tags":["*"],"canceled":null,"monitor_id":19329198,"org_id":426674,"disabled":false,"start":1592244376,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628462,"updater_id":null}' headers: Cache-Control: - no-cache @@ -604,13 +626,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:47 GMT + - Mon, 15 Jun 2020 15:06:17 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:47 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -619,9 +641,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - MZCX71FNdAUQ6AMWRBKW1fkNpiPTypOoXE57zLYE3lG5gigqB2nroYJ/8uMn9muy + - NclXS5F5t+kukUaODU4jY2oSI1KBdPHFdFhJZNfbXLWDOThxbCLlKKmYvikjdDSg X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -636,12 +658,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189997 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628462 method: GET response: - body: '{"recurrence":null,"end":1587799785,"monitor_tags":["*"],"canceled":null,"monitor_id":17994078,"org_id":321813,"disabled":false,"start":1587796185,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189997,"updater_id":null}' + body: '{"recurrence":null,"end":1592247976,"monitor_tags":["*"],"canceled":null,"monitor_id":19329198,"org_id":426674,"disabled":false,"start":1592244376,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628462,"updater_id":null}' headers: Cache-Control: - no-cache @@ -652,13 +674,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:47 GMT + - Mon, 15 Jun 2020 15:06:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:47 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:17 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -667,9 +689,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wts7Rn21w0qW4rqYtxheVW/4xeY9Y3ARkRMnLeq6etar4hXLqkvskJXcsIyQxYKB + - DAk/CQntZmry+u4cYsuVOELuKFo1I3NzKRNwPlY9WvlbH+rffk5VylB8tKDaSRWP X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -684,8 +706,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189997 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628462 method: DELETE response: body: "" @@ -701,22 +723,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:48 GMT + - Mon, 15 Jun 2020 15:06:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:47 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Lo9psmCk9egobltaxBGqrQFhgCcgUTQoFZpr2xiSR+6tucB/owychJvFjr9YMWzu + - AZX6w/8zD+VN3BjlP7mTxsWKLW39bs6QmKw7eyNlBdxzsMsZp5eTFn4umzElZK4n X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -727,11 +749,11 @@ interactions: form: {} headers: User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994078 + - Datadog/dev/terraform (go1.14.3) + url: https://api.datadoghq.com/api/v1/monitor/19329198 method: DELETE response: - body: '{"deleted_monitor_id":17994078}' + body: '{"deleted_monitor_id":19329198}' headers: Cache-Control: - no-cache @@ -742,13 +764,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:48 GMT + - Mon, 15 Jun 2020 15:06:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:48 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -757,9 +779,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2qCkWfddHrPF9jSCADI+4oMJC7ye/JJPxREHTFHEFILURsabvi1w9B+PDmBrh/Xk + - u9VEJv4YNx+Fl9tRGJNbGm0+76jyym0t+mec2t84PhoJYEedil3ajyEhP7U3EneZ X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -774,12 +796,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809189997 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628462 method: GET response: - body: '{"recurrence":null,"end":1587799785,"monitor_tags":["*"],"canceled":1587785387,"monitor_id":17994078,"org_id":321813,"disabled":true,"start":1587796185,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809189997,"updater_id":1445416}' + body: '{"recurrence":null,"end":1592247976,"monitor_tags":["*"],"canceled":1592233578,"monitor_id":19329198,"org_id":426674,"disabled":true,"start":1592244376,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628462,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -790,13 +812,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:48 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -805,9 +827,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - wNaVyRyNliLxKeX4pqFHOJTBG1dRCwo1/ihrnAf0GXtGNGahc1XK8Xzj/ssA3R20 + - lyzq/AwBoYy31tqkvQ8mzBugAZOys447o2yCYdRfm1oPuJTtZy0Uz+ukzrgaZfIT X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.freeze b/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.freeze index 45c156aba..cdd0c29b5 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.freeze +++ b/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.freeze @@ -1 +1 @@ -2020-04-24T23:29:49.030394-04:00 \ No newline at end of file +2020-06-15T15:06:18.593606979Z \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.yaml b/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.yaml index 4edc831d7..5531ae824 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"end":1587799789,"message":"Example Datadog downtime message.","monitor_tags":["app:webserver"],"scope":["*"],"start":1587796189,"timezone":"UTC"} + {"end":1592247978,"message":"Example Datadog downtime message.","monitor_tags":["app:webserver"],"scope":["*"],"start":1592244378,"timezone":"UTC"} form: {} headers: Accept: @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":null,"end":1587799789,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1587796189,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190026,"updater_id":null}' + body: '{"recurrence":null,"end":1592247978,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1592244378,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628504,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,29 +44,35 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pxuY3ZnSwE+rCP/MLubWk3EuAMlxxciIsQ2EBSRxZafCu9H4+UEVULDCm144bb3W + - dPTJBBDv5jeY1gnH1FisDpda5Hi0boOGbsHxIOi4qkMt+QLOH7F7P7MeSr40vXZ0 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK code: 200 duration: "" - request: - body: "" + body: | + {"message":"some message Notify: @hipchat-channel","name":"name for monitor foo","options":{"escalation_message":"the situation has escalated @pagerduty","include_tags":true,"new_host_delay":300,"notify_no_data":false,"require_full_window":true,"silenced":{"*":1592247978},"thresholds":{"critical":2,"warning":1}},"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} \u003e 2","tags":["app:webserver"],"type":"metric alert"} form: {} headers: Accept: - application/json + Content-Type: + - application/json Dd-Operation-Id: - - GetDowntime + - CreateMonitor User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190026 - method: GET + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor + method: POST response: - body: '{"recurrence":null,"end":1587799789,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1587796189,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190026,"updater_id":null}' + body: '{"restricted_roles":null,"tags":["app:webserver"],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329199,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:18.879683+00:00","created_at":1592233578000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:18.879683+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247978},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the + situation has escalated @pagerduty"}}' headers: Cache-Control: - no-cache @@ -77,13 +83,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,33 +98,37 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx X-Dd-Version: - - "35.2432369" + - "35.2622342" 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: '{"type":"metric alert","query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} \u003e 2","name":"name for monitor foo","message":"some message Notify: - @hipchat-channel","tags":["app:webserver"],"options":{"notify_no_data":false,"new_host_delay":300,"silenced":{"*":1587799789},"escalation_message":"the - situation has escalated @pagerduty","thresholds":{"critical":2.0,"warning":1.0},"include_tags":true,"require_full_window":true},"state":{}}' + body: "" form: {} headers: - Content-Type: + Accept: - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor - method: POST + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628504 + method: GET response: - body: '{"restricted_roles":null,"tags":["app:webserver"],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":17994080,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:49.213888+00:00","created_at":1587785389000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:49.213888+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799789},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the - situation has escalated @pagerduty"}}' + body: '{"recurrence":null,"end":1592247978,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1592244378,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628504,"updater_id":null}' headers: Cache-Control: - no-cache @@ -129,13 +139,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:18 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -144,19 +154,11 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 + - PKDIrz8Hcluof9oNzY3q1BouPTowe6nlZ4slm6KLsMEc/9DaK1hteKVCh6mza/IQ X-Dd-Version: - - "35.2432369" + - "35.2622342" 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: "" @@ -164,15 +166,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994080 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329199 method: GET response: body: '{"restricted_roles":null,"tags":["app:webserver"],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":17994080,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:49.213888+00:00","created_at":1587785389000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:49.213888+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799789},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329199,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:18.879683+00:00","created_at":1592233578000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:18.879683+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247978},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -184,13 +190,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:18 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -199,9 +205,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /Ib6MMQTHlX0/jTb6tlEMzSZs2crLqjkGjYkoQ/zb0RHtMaXT744DZRFpy23W0oi + - TAg/qKywM5rz/AUGkmt8+wB4wzGMJfSiHOrBzxBctPLsV/erSD5TChi/uo5ZlVXK X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -224,12 +230,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190026 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628504 method: GET response: - body: '{"recurrence":null,"end":1587799789,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1587796189,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190026,"updater_id":null}' + body: '{"recurrence":null,"end":1592247978,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1592244378,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628504,"updater_id":null}' headers: Cache-Control: - no-cache @@ -240,13 +246,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -255,9 +261,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + - gH++OYwf8a2QZXnzDsHHnXqPhHbI48oqNvFjE/0p0ObpMBY4290QCI5SB0tU0MAF X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -272,12 +278,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190026 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628504 method: GET response: - body: '{"recurrence":null,"end":1587799789,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1587796189,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190026,"updater_id":null}' + body: '{"recurrence":null,"end":1592247978,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1592244378,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628504,"updater_id":null}' headers: Cache-Control: - no-cache @@ -288,13 +294,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -303,9 +309,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +0e88dcOoH2a7qrZ5zz4PnubdrAKvSl+k8YKr4bhBQyArPBFiYg3oXWqeVKLPB1I + - DAk/CQntZmry+u4cYsuVOELuKFo1I3NzKRNwPlY9WvlbH+rffk5VylB8tKDaSRWP X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -315,15 +321,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994080 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329199 method: GET response: body: '{"restricted_roles":null,"tags":["app:webserver"],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":17994080,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:49.213888+00:00","created_at":1587785389000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:49.213888+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799789},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329199,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:18.879683+00:00","created_at":1592233578000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:18.879683+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247978},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -335,13 +345,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -350,9 +360,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /Ib6MMQTHlX0/jTb6tlEMzSZs2crLqjkGjYkoQ/zb0RHtMaXT744DZRFpy23W0oi + - bJj7D3RvHsKo+7eO3lrtPpPG0z8SsAwLw7bNfLb4htD+N9Ub8bD3AFgh45XaVsFM X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -375,12 +385,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190026 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628504 method: GET response: - body: '{"recurrence":null,"end":1587799789,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1587796189,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190026,"updater_id":null}' + body: '{"recurrence":null,"end":1592247978,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1592244378,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628504,"updater_id":null}' headers: Cache-Control: - no-cache @@ -391,13 +401,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -406,9 +416,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - gH++OYwf8a2QZXnzDsHHnXqPhHbI48oqNvFjE/0p0ObpMBY4290QCI5SB0tU0MAF + - iMTE1BmjsL8tFxXfV1x35HHEpphKhyShj7mGG+gCh4hVOBaK9+R0wmURPHnATwmw X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -418,15 +428,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994080 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329199 method: GET response: body: '{"restricted_roles":null,"tags":["app:webserver"],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":17994080,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:49.213888+00:00","created_at":1587785389000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:49.213888+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799789},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329199,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:18.879683+00:00","created_at":1592233578000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:18.879683+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247978},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -438,13 +452,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -453,9 +467,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu + - Dpx7DG2N4VEOVm8I4W97n4HwOzBXFJSj1QrKca/nHpAZ6o7/LrJ0o2qyQx0XjNXl X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -473,16 +487,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994080 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628504 method: GET response: - body: '{"restricted_roles":null,"tags":["app:webserver"],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":17994080,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:49.213888+00:00","created_at":1587785389000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:49.213888+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799789},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the - situation has escalated @pagerduty"}}' + body: '{"recurrence":null,"end":1592247978,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1592244378,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628504,"updater_id":null}' headers: Cache-Control: - no-cache @@ -493,13 +508,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -508,19 +523,11 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - e/PzE6y8JJ1tlF66uEI2h0RElcpoaXRe9TzYMeQVIADcqTHrHUqcUgRemfbYKGMv + - /Ib6MMQTHlX0/jTb6tlEMzSZs2crLqjkGjYkoQ/zb0RHtMaXT744DZRFpy23W0oi X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN - X-Ratelimit-Limit: - - "3000" - X-Ratelimit-Period: - - "10" - X-Ratelimit-Remaining: - - "2991" - X-Ratelimit-Reset: - - "1" status: 200 OK code: 200 duration: "" @@ -531,14 +538,17 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetDowntime + - GetMonitor User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190026 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329199 method: GET response: - body: '{"recurrence":null,"end":1587799789,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1587796189,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190026,"updater_id":null}' + body: '{"restricted_roles":null,"tags":["app:webserver"],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329199,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:18.879683+00:00","created_at":1592233578000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:18.879683+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247978},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the + situation has escalated @pagerduty"}}' headers: Cache-Control: - no-cache @@ -549,13 +559,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -564,11 +574,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +0e88dcOoH2a7qrZ5zz4PnubdrAKvSl+k8YKr4bhBQyArPBFiYg3oXWqeVKLPB1I + - nRZqCODixwNZX0HLyT17WzYwenviVG0rmnZak57k5KsDWun3aWEsPedTsRpiFQxf X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "3000" + X-Ratelimit-Period: + - "10" + X-Ratelimit-Remaining: + - "2991" + X-Ratelimit-Reset: + - "1" status: 200 OK code: 200 duration: "" @@ -581,12 +599,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190026 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628504 method: GET response: - body: '{"recurrence":null,"end":1587799789,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1587796189,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190026,"updater_id":null}' + body: '{"recurrence":null,"end":1592247978,"monitor_tags":["app:webserver"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1592244378,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628504,"updater_id":null}' headers: Cache-Control: - no-cache @@ -597,13 +615,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -612,9 +630,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Z91NUpPIZnIQ9h7lBFWBkEPGVUEsn4/i71imPPwrChu4RPI5uNM5HGuodISK1HBR + - hvGKayUGXeVy/DmHDcIjD3+gP6x9d+NwveU9CYPD06LgIrg7NUxobVuhZiOcmptK X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -624,15 +642,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetMonitor User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994080 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/monitor/19329199 method: GET response: body: '{"restricted_roles":null,"tags":["app:webserver"],"deleted":null,"query":"avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} - by {host} > 2","message":"some message Notify: @hipchat-channel","id":17994080,"multi":true,"name":"name - for monitor foo","created":"2020-04-25T03:29:49.213888+00:00","created_at":1587785389000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2020-04-25T03:29:49.213888+00:00","overall_state_modified":null,"overall_state":"No - Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1587799789},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"new_host_delay":300,"require_full_window":true,"notify_no_data":false,"escalation_message":"the + by {host} > 2","message":"some message Notify: @hipchat-channel","id":19329199,"multi":true,"name":"name + for monitor foo","created":"2020-06-15T15:06:18.879683+00:00","created_at":1592233578000,"creator":{"id":1831982,"handle":"datadog2@juraj.io","name":"Jay","email":"datadog2@juraj.io"},"org_id":426674,"modified":"2020-06-15T15:06:18.879683+00:00","overall_state_modified":null,"overall_state":"No + Data","type":"metric alert","options":{"notify_audit":false,"locked":false,"silenced":{"*":1592247978},"include_tags":true,"thresholds":{"critical":2.0,"warning":1.0},"require_full_window":true,"new_host_delay":300,"notify_no_data":false,"escalation_message":"the situation has escalated @pagerduty"}}' headers: Cache-Control: @@ -644,13 +666,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:19 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -659,9 +681,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 + - cQFL4MaIw90DmTTH7z4Gqhr8PBtz47vyzddN9k7nXjUK2yrLiBjbdIgydUT8r1ut X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -684,8 +706,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190026 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628504 method: DELETE response: body: "" @@ -701,22 +723,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - rK52fEhHKxisnKo2rembr3YValr4L+BG6/8tD9iNDc8Prg2mnV6DynBkS75++wh/ + - QO3HutZQjgMDp/HqClcLon+qq5lEghb3LRV+gXMIQ2Jivd1m1eEGCh0RxplUQMIV X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -727,11 +749,11 @@ interactions: form: {} headers: User-Agent: - - Datadog/dev/terraform (go1.13.4) - url: https://api.datadoghq.com/api/v1/monitor/17994080 + - Datadog/dev/terraform (go1.14.3) + url: https://api.datadoghq.com/api/v1/monitor/19329199 method: DELETE response: - body: '{"deleted_monitor_id":17994080}' + body: '{"deleted_monitor_id":19329199}' headers: Cache-Control: - no-cache @@ -742,13 +764,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:49 GMT + - Mon, 15 Jun 2020 15:06:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:49 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:19 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -757,9 +779,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Lo9psmCk9egobltaxBGqrQFhgCcgUTQoFZpr2xiSR+6tucB/owychJvFjr9YMWzu + - yEcEaKqmSUfeSlQ/kN/c5E6EpIXbM1JPI9KV27pdsvBWWv3FI4tsqqRarYTS+fS+ X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -774,12 +796,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190026 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628504 method: GET response: - body: '{"recurrence":null,"end":1587799789,"monitor_tags":["app:webserver"],"canceled":1587785389,"monitor_id":null,"org_id":321813,"disabled":true,"start":1587796189,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190026,"updater_id":1445416}' + body: '{"recurrence":null,"end":1592247978,"monitor_tags":["app:webserver"],"canceled":1592233580,"monitor_id":null,"org_id":426674,"disabled":true,"start":1592244378,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628504,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -790,13 +812,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:50 GMT + - Mon, 15 Jun 2020 15:06:20 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:50 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:20 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -805,9 +827,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zgs4/R8U39Dx88K274ycCG8gmotK2r1yjyecTfeITqBuGEc/zW9V1MMOyMl9URns + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_TrimWhitespace.yaml b/datadog/cassettes/TestAccDatadogDowntime_TrimWhitespace.yaml index 407ac8489..b356ce144 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_TrimWhitespace.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_TrimWhitespace.yaml @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190113,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628622,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:57 GMT + - Mon, 15 Jun 2020 15:06:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:56 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - cYNsy3QDuOaYo2clO/PharSNtCykS9KtUfiNevH3xDbHJlRyddWkNpuDhMgHWZ43 + - 562ySu37xnxKxbTr0NFd7oH3+L3JO3D7GcG/Lb1Dr0vgKuyocJBk1SrO7ogLRZuZ X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190113 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628622 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190113,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628622,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:57 GMT + - Mon, 15 Jun 2020 15:06:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:57 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - u9VEJv4YNx+Fl9tRGJNbGm0+76jyym0t+mec2t84PhoJYEedil3ajyEhP7U3EneZ + - pxuY3ZnSwE+rCP/MLubWk3EuAMlxxciIsQ2EBSRxZafCu9H4+UEVULDCm144bb3W X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190113 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628622 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190113,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628622,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:57 GMT + - Mon, 15 Jun 2020 15:06:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:57 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wn01ZjXucAfzJfwvKAkpy0yFfNtHyWu4ZB2aA4ZDwwhXkyLHirYeUNsx208dZz9p + - hABsPq9DIvV7yAEiU7rMxs7UCRuTbRH/kYpwue4a0q9qmwd4SUh9bBZ5SHPkBLc6 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190113 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628622 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190113,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628622,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:57 GMT + - Mon, 15 Jun 2020 15:06:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:57 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ + - qA85Kiicwd/s93AfT3MSf+l6IYc5FQ6tEbp4Kft/ri41UOumJ967MPQKmz3gwejd X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190113 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628622 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190113,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628622,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:57 GMT + - Mon, 15 Jun 2020 15:06:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:57 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - wFmrQbB6wLDPf1aNlKcgRoMicVhPlX6qIVwwvniX5cF7oyd+90s5trfE73Pzpvml + - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190113 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628622 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190113,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628622,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +24qoGfe5Pp4qbS1m8KO9qioq2P4fxuj80XQhtr/9vInDLECmYZT0VSsbqISZgqC + - WatxAL43AyqgfI4tyA152NzYM3DLdjL7IWr0SzhldiWriTsbw9vUaRZnaqhOCdUk X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190113 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628622 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190113,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628622,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + - bJj7D3RvHsKo+7eO3lrtPpPG0z8SsAwLw7bNfLb4htD+N9Ub8bD3AFgh45XaVsFM X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,8 +349,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190113 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628622 method: DELETE response: body: "" @@ -366,22 +366,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wpac2a5DsHa/eqG3DjQhOxPXeBQRcLxZ18fT3wn3gFeruJMdJwvfZxTA9hAiHLHZ + - RngFxOd8mVeT14auLfzsH/6kz142QLoKkYXZjfmXpXDkZ/eN6uoCM3cTScXuFEa0 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -396,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190113 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628622 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1587785398,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example - Datadog downtime message.","downtime_type":1,"id":809190113,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":1592233590,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:Whitespace"],"message":"Example + Datadog downtime message.","downtime_type":1,"id":860628622,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -412,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:58 GMT + - Mon, 15 Jun 2020 15:06:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:58 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -427,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 + - J5PL0LnJukdy69mckjXi3cjye/YJX2hkoCBkqKQi+tYjrsXYELx6DfDD11fhyjYF X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_Updated.yaml b/datadog/cassettes/TestAccDatadogDowntime_Updated.yaml index af1fdd109..c0c9c11e9 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"end":1735765200,"message":"Example Datadog downtime message.","monitor_tags":["*"],"recurrence":{"period":1,"type":"days"},"scope":["*"],"start":1735707600,"timezone":"UTC"} + {"end":1735765200,"message":"Example Datadog downtime message.","monitor_tags":["app:webserver","service"],"recurrence":{"period":1,"type":"days"},"scope":["*"],"start":1735707600,"timezone":"UTC"} form: {} headers: Accept: @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190104,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628592,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fFk0sZgwwse+ZeEmqVGZPgcNG+SDXdM7Y74n6iOGuvoZenvaYEqZOvpOSMu1XDXx + - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190104,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628592,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - L5yd3v29mZzDtdpTLB/OLdaP/nm856X8oKVK7IsHIbLmKRYkqq5Jv7+SBx/bs1VS + - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190104,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628592,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 + - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190104,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628592,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - DAk/CQntZmry+u4cYsuVOELuKFo1I3NzKRNwPlY9WvlbH+rffk5VylB8tKDaSRWP + - mGJe6qmS66N9ddKWdHwHEzQK9VHuaMNr7+EsVTKliCkGq+ayJZmadUyCSwID4him X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190104,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628592,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R + - o1rjyOSbDnvYaQgtO33vwWSNsIwHafzLqam2amG/PbTP69SVY965ZpWutdoYJB30 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190104,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628592,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + - xKFgbVhCHArG4Y0sXMtZ5P8r3tuxi63adTKFxNzM7f4aJAAu82zS1Bp7ak9HjM4Y X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190104,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628592,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 6TICFxDFBNq65Lw6aA0hO1z7nxUSiTzUAT0k7ln4UasEU6/emXomwtYWMJdIuxUV + - 8jOW1djIgkdkj4STw+0pQ3G+kGKfu548DWINvnE6phacY0k9vgC3cU1LaI38XIYk X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,12 +349,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example - Datadog downtime message.","downtime_type":0,"id":809190104,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":1},"end":1735765200,"monitor_tags":["app:webserver","service"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["*"],"message":"Example + Datadog downtime message.","downtime_type":0,"id":860628592,"updater_id":null}' headers: Cache-Control: - no-cache @@ -365,13 +365,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -380,9 +380,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - wB7h0Rt2IYxDUBLtoJ4y0ZOq10ZaMdDZiRuFZ3d/FUUtC7gfBEZWTs0Y6dZhoLZS + - bZxgHnChon9vZm5xdRa4NrQAYSVWc7iQc54D228L4geTT/U2FwMh0nkSo8j+6vpL X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -390,7 +390,7 @@ interactions: duration: "" - request: body: | - {"id":809190104,"message":"Example Datadog downtime message.","monitor_tags":["*"],"recurrence":{"period":3,"type":"days"},"scope":["Updated"],"timezone":"UTC"} + {"id":860628592,"message":"Example Datadog downtime message.","monitor_tags":["*"],"recurrence":{"period":3,"type":"days"},"scope":["Updated"],"timezone":"UTC"} form: {} headers: Accept: @@ -400,12 +400,12 @@ interactions: Dd-Operation-Id: - UpdateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: PUT response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190104,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628592,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -416,13 +416,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -431,9 +431,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO + - CFSDBBie5Okt4N1oWVJNTAqpt778eCo7VQZ0NhVFWw8MHYFUwuA7DURhpFRYY+Wy X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -448,12 +448,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190104,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628592,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -464,13 +464,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -479,9 +479,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc + - +UwwYRc+A5vkEib2s1YY/+OMx26FxXkDPMnhrpaIz/kTVseyL62lC12FdLJrU3nv X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -496,12 +496,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190104,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628592,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -512,13 +512,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -527,9 +527,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l+fZq7vW9gg1qInAzXkJZdt8f8e/094RDnN9pOEIlkXbx1jb6kpjgt1+syYCZyFC + - pxuY3ZnSwE+rCP/MLubWk3EuAMlxxciIsQ2EBSRxZafCu9H4+UEVULDCm144bb3W X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -544,12 +544,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190104,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628592,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -560,13 +560,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -575,9 +575,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - aiFdvD+ESSGWQuLeXGShIAaySBrTSq6aZf+crfPnDVFrMRUU9f0HobLUCBopvakz + - AVsav2jjRGvwjNvJeRUS7kJsgTlhh9y9smyL3UJVQTMAUoPyejdL0bVSnanIQLK4 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -592,12 +592,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190104,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628592,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -608,13 +608,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -623,9 +623,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Lo9psmCk9egobltaxBGqrQFhgCcgUTQoFZpr2xiSR+6tucB/owychJvFjr9YMWzu + - Iy6HNgrdx6jplabT1ZfQVzkCrk+jqjHEQw0NvfR/5Sb/NsvSUgBv2AbCahJdaB7p X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -640,12 +640,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190104,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628592,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -656,13 +656,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -671,9 +671,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ldNaA6dSEPDapjFoBolZNm9KKT/3iEJM/Q1IyMe2D0P7l2S/rGI4bTGzxgP0/9Zs + - RngFxOd8mVeT14auLfzsH/6kz142QLoKkYXZjfmXpXDkZ/eN6uoCM3cTScXuFEa0 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -688,12 +688,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190104,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628592,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -704,13 +704,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:55 GMT + - Mon, 15 Jun 2020 15:06:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:55 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -719,9 +719,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Xj/PwLDKe3Ll1QwGP2SdQuyUcOtG0YD60hQDJ9tPEhK9OEMHkSCPXdZRvPX0YYGO + - tp1qdVxoUmtlsVp6hgBWraWfL5vEbA116VZkaWKWIZtgPr5Ima8zysCBv+o2WoZ/ X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -736,8 +736,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: DELETE response: body: "" @@ -753,22 +753,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:56 GMT + - Mon, 15 Jun 2020 15:06:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:56 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - F2g1vP9i37Cj4rH5vEufbSNzCmriMTDVzKKqVk/JOUesbIz8psR3R2945wO0PbTf + - PmDXJXCpOnq24qtagNCLPTUoILSRgi3DGaXUca70kUEAM8DZBLYkwSVilYSYEHCG X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -783,12 +783,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190104 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628592 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":1587785396,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190104,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"days","period":3},"end":1735765200,"monitor_tags":["*"],"canceled":1592233589,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["Updated"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628592,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -799,13 +799,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:56 GMT + - Mon, 15 Jun 2020 15:06:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:56 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -814,9 +814,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - u9VEJv4YNx+Fl9tRGJNbGm0+76jyym0t+mec2t84PhoJYEedil3ajyEhP7U3EneZ + - B/LXPck0nGNX0RSV/Gw7cnZ0oe92FUOfg1ec7WcU0kSvw/UBT+IXTFTD87Snvz2v X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestAccDatadogDowntime_WeekDayRecurring.yaml b/datadog/cassettes/TestAccDatadogDowntime_WeekDayRecurring.yaml index 69463b93b..0eb3076b0 100644 --- a/datadog/cassettes/TestAccDatadogDowntime_WeekDayRecurring.yaml +++ b/datadog/cassettes/TestAccDatadogDowntime_WeekDayRecurring.yaml @@ -13,12 +13,12 @@ interactions: Dd-Operation-Id: - CreateDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735646400,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190051,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735646400,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628579,"updater_id":null}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - menB+JzZJZWnsBMzYDdvLqZLyJ1Z3XKvvLNUvAnnxCkhc359HSRPRWZhATTwUzcU + - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -61,12 +61,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190051 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628579 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735646400,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190051,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735646400,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628579,"updater_id":null}' headers: Cache-Control: - no-cache @@ -77,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:53 GMT + - Mon, 15 Jun 2020 15:06:25 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:25 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -92,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - v8lEj/pYmsavh1I0Db6FT/BAvLdOdAv91ctM9ImcmfZ/KHrCACXEdhuskTCPihd+ + - Lo9psmCk9egobltaxBGqrQFhgCcgUTQoFZpr2xiSR+6tucB/owychJvFjr9YMWzu X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -109,12 +109,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190051 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628579 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735646400,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190051,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735646400,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628579,"updater_id":null}' headers: Cache-Control: - no-cache @@ -125,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:53 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -140,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pT9LlAdgAzlrCUxMXQkBRs/Qti76jKIHng1uB0/SctAaYjB4WqOgOZYpCbOMQKll + - rk3iIRyevtXsTLLTMsm8PoHrVjRY2UIgJwOnYxasATpPihgg0ps3VPSw7zz+6jrL X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -157,12 +157,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190051 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628579 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735646400,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190051,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735646400,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628579,"updater_id":null}' headers: Cache-Control: - no-cache @@ -173,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -188,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fFk0sZgwwse+ZeEmqVGZPgcNG+SDXdM7Y74n6iOGuvoZenvaYEqZOvpOSMu1XDXx + - FkKIRCzyOlcTfevOWu/Pn0jzNwYGEOKsDSSLLIk1UH0umdv3B3q8BoRMqfK8ce37 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -205,12 +205,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190051 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628579 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735646400,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190051,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735646400,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628579,"updater_id":null}' headers: Cache-Control: - no-cache @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xNK8D8E4U1PyLMVOdDgzcc4izX6UzMbP9Ygv1jJl/dgpKsJQ0NHsqPPadJ+IsqEV + - 7vC9CD2UnUYbC7cu05B95RgDyGt2vcRq8GQJgBahx4BAPKzA8OvLqEF8NdaLccla X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -253,12 +253,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190051 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628579 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735646400,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190051,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735646400,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628579,"updater_id":null}' headers: Cache-Control: - no-cache @@ -269,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -284,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - UlUHD7I7ISIp2OTIKJ1HGCksOU1snpAx2HtkPJw2SYzWMPmqzICEuimWl9Uiyokg + - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -301,12 +301,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190051 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628579 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735646400,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190051,"updater_id":null}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735646400,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628579,"updater_id":null}' headers: Cache-Control: - no-cache @@ -317,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -332,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mGJe6qmS66N9ddKWdHwHEzQK9VHuaMNr7+EsVTKliCkGq+ayJZmadUyCSwID4him + - NueLa2zkdBcl9S7BHrRuWyjAeR9iWgPFe330KTY6Cp0/yUhjUktbxu5rG2fG6gBk X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -349,8 +349,8 @@ interactions: Dd-Operation-Id: - CancelDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190051 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628579 method: DELETE response: body: "" @@ -366,22 +366,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:26 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:26 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wts7Rn21w0qW4rqYtxheVW/4xeY9Y3ARkRMnLeq6etar4hXLqkvskJXcsIyQxYKB + - IRAJ1mQ+c3epm0CLGtZoe/y8O4TCss3jYw+fwQOm7+eSKRCE+p3OtawVnIQ5ts76 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -396,12 +396,12 @@ interactions: Dd-Operation-Id: - GetDowntime User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/downtime/809190051 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628579 method: GET response: - body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":1587785394,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735646400,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":809190051,"updater_id":1445416}' + body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":["Sat","Sun"],"type":"weeks","period":1},"end":1735732799,"monitor_tags":["*"],"canceled":1592233586,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735646400,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["WeekDaysRecurrence"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628579,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -412,13 +412,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sat, 25 Apr 2020 03:29:54 GMT + - Mon, 15 Jun 2020 15:06:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Sat, 02-May-2020 03:29:54 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -427,9 +427,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l + - e8t0cvW5uVKXk1zUsTcAcDpqv28dgy+lCs/R2sCfbKW6stomFiq2a4ijzxRdPBn5 X-Dd-Version: - - "35.2432369" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/cassettes/TestDatadogDowntime_import.yaml b/datadog/cassettes/TestDatadogDowntime_import.yaml index 1101b5e9c..112d80309 100644 --- a/datadog/cassettes/TestDatadogDowntime_import.yaml +++ b/datadog/cassettes/TestDatadogDowntime_import.yaml @@ -2,18 +2,23 @@ version: 1 interactions: - request: - body: '{"end":1735765200,"message":"Example Datadog downtime message.","monitor_tags":["foo:bar"],"timezone":"UTC","scope":["host:X","host:Y"],"start":1735707600}' + body: | + {"end":1735765200,"message":"Example Datadog downtime message.","monitor_tags":["foo:bar"],"scope":["host:X","host:Y"],"start":1735707600,"timezone":"UTC"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateDowntime User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) url: https://api.datadoghq.com/api/v1/downtime method: POST response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -24,13 +29,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:27 GMT + - Mon, 15 Jun 2020 15:06:13 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:27 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -39,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wi4QF3nhe5s0sRyfZvyTHLc/3mQu/jJVn8BZnev44SXt+VBNA1+haKi5VcNZFpaP + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -51,13 +56,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -68,13 +77,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:27 GMT + - Mon, 15 Jun 2020 15:06:13 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:27 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -83,9 +92,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - OdMYjD4Lcx2EOYJ2NSqLNRIyMqxNYyUQxCcT6zY9ZmZ+zl9yipXz0nuLjH5hVxTY + - AVsav2jjRGvwjNvJeRUS7kJsgTlhh9y9smyL3UJVQTMAUoPyejdL0bVSnanIQLK4 X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -95,13 +104,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -112,13 +125,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:27 GMT + - Mon, 15 Jun 2020 15:06:13 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:27 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -127,9 +140,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nfUJgEhoI/RZ8GJVApSQj6s2TfLYXQ1qvePMFw8ZmKB2iBVwiNegJAc5RNY4ZZbI + - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,13 +152,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -156,13 +173,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:27 GMT + - Mon, 15 Jun 2020 15:06:13 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:27 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -171,9 +188,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ + - xDB9TwFteerR1wCiwj8/TgXRHM8VsESQxiCQvltAxyn4fse47E64CquSvdpyvFXM X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -183,13 +200,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -200,13 +221,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:27 GMT + - Mon, 15 Jun 2020 15:06:13 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:27 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -215,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - QaEGvF++JqTbTiFomKhE21Fdnra2zinKOaCEqOgwcd7OtJatRLgvovBbCNyGqcpO + - +6muH0vWWhHE6JfE/xHkdpoFSNgX/+wCvqEMuEDvglDKir3htwvCDYdHi0bPaPF0 X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -227,13 +248,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -244,13 +269,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:28 GMT + - Mon, 15 Jun 2020 15:06:13 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:28 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -259,9 +284,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU + - svhoihUM58m7WJ4Z4lY5tmaXf/MnplHzAbMByuVznFW8yf3JIFAZgW/pCvMnq4iN X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -271,13 +296,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -288,13 +317,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:28 GMT + - Mon, 15 Jun 2020 15:06:13 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:28 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -303,9 +332,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - wFmrQbB6wLDPf1aNlKcgRoMicVhPlX6qIVwwvniX5cF7oyd+90s5trfE73Pzpvml + - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -315,13 +344,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -332,13 +365,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:28 GMT + - Mon, 15 Jun 2020 15:06:14 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:28 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:14 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -347,9 +380,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + - Wts7Rn21w0qW4rqYtxheVW/4xeY9Y3ARkRMnLeq6etar4hXLqkvskJXcsIyQxYKB X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -359,13 +392,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":321813,"disabled":false,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":null}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":null,"monitor_id":null,"org_id":426674,"disabled":false,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":null}' headers: Cache-Control: - no-cache @@ -376,13 +413,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:28 GMT + - Mon, 15 Jun 2020 15:06:14 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:28 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:14 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -391,9 +428,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - NueLa2zkdBcl9S7BHrRuWyjAeR9iWgPFe330KTY6Cp0/yUhjUktbxu5rG2fG6gBk + - fqgAnnBv1js3TBerHAS1jOASlx3n1xB+hOOrFOLO2ZaBfZ3rktA3gzUaBetB5haL X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -403,9 +440,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - CancelDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: DELETE response: body: "" @@ -421,22 +462,22 @@ interactions: Content-Type: - text/html; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:28 GMT + - Mon, 15 Jun 2020 15:06:14 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:28 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:14 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wpac2a5DsHa/eqG3DjQhOxPXeBQRcLxZ18fT3wn3gFeruJMdJwvfZxTA9hAiHLHZ + - CPK+34LtKdL5YYX/NFOJUdMpxMoO80HISGpGpzDG5fENYSoZ2QNw1gEubOsJ9JNb X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 204 No Content @@ -446,13 +487,17 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetDowntime User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/downtime/766330739 + - datadog-api-client-go/1.0.0-beta.2 (go go1.14.3; os linux; arch amd64) + url: https://api.datadoghq.com/api/v1/downtime/860628411 method: GET response: - body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":1584363748,"monitor_id":null,"org_id":321813,"disabled":true,"start":1735707600,"creator_id":1445416,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example - Datadog downtime message.","downtime_type":2,"id":766330739,"updater_id":1445416}' + body: '{"recurrence":null,"end":1735765200,"monitor_tags":["foo:bar"],"canceled":1592233574,"monitor_id":null,"org_id":426674,"disabled":true,"start":1735707600,"creator_id":1831982,"parent_id":null,"timezone":"UTC","active":false,"scope":["host:X","host:Y"],"message":"Example + Datadog downtime message.","downtime_type":2,"id":860628411,"updater_id":1831982}' headers: Cache-Control: - no-cache @@ -463,13 +508,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Mar 2020 13:02:28 GMT + - Mon, 15 Jun 2020 15:06:14 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:02:28 GMT; + - DD-PSHARD=251; Max-Age=604800; Path=/; expires=Mon, 22-Jun-2020 15:06:14 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -478,9 +523,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B/LXPck0nGNX0RSV/Gw7cnZ0oe92FUOfg1ec7WcU0kSvw/UBT+IXTFTD87Snvz2v + - FAXIqEyJyWWDyUDKgR+Td75IkfWeu40aSEpg9NtrH84gUkIxi84nk9RHrJt3rVD3 X-Dd-Version: - - "35.2282030" + - "35.2622342" X-Frame-Options: - SAMEORIGIN status: 200 OK diff --git a/datadog/resource_datadog_downtime.go b/datadog/resource_datadog_downtime.go index 60ff83ac7..624098935 100644 --- a/datadog/resource_datadog_downtime.go +++ b/datadog/resource_datadog_downtime.go @@ -135,13 +135,14 @@ func resourceDatadogDowntime() *schema.Resource { Description: "When specified, this downtime will only apply to this monitor", }, "monitor_tags": { - Type: schema.TypeList, + // TypeSet makes Terraform ignore differences in order when creating a plan + Type: schema.TypeSet, Optional: true, Description: "A list of monitor tags (up to 25), i.e. tags that are applied directly to monitors to which the downtime applies", // MonitorTags conflicts with MonitorId and it also has a default of `["*"]`, which brings some problems: // * We can't use DefaultFunc to default to ["*"], since that's incompatible with // ConflictsWith - // * Since this is a TypeList, DiffSuppressFunc can't really be written well for it + // * Since this is a TypeSet, DiffSuppressFunc can't really be written well for it // (it is called and expected to give result for each element, not for the whole // list, so there's no way to tell in each iteration whether the new config value // is an empty list). @@ -272,7 +273,7 @@ func buildDowntimeStruct(authV1 context.Context, d *schema.ResourceData, client } dt.SetScope(scope) var tags []string - for _, mt := range d.Get("monitor_tags").([]interface{}) { + for _, mt := range d.Get("monitor_tags").(*schema.Set).List() { tags = append(tags, mt.(string)) } dt.SetMonitorTags(tags) diff --git a/datadog/resource_datadog_downtime_test.go b/datadog/resource_datadog_downtime_test.go index f4df9fb49..a8495d4bc 100644 --- a/datadog/resource_datadog_downtime_test.go +++ b/datadog/resource_datadog_downtime_test.go @@ -42,7 +42,11 @@ func TestAccDatadogDowntime_Basic(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.#", "2"), + resource.TestCheckResourceAttr( + "datadog_downtime.foo", "monitor_tags.2925324183", "app:webserver"), + resource.TestCheckResourceAttr( + "datadog_downtime.foo", "monitor_tags.188033227", "service"), ), }, }, @@ -130,7 +134,7 @@ func TestAccDatadogDowntime_BasicMultiScope(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2679715827", "*"), ), }, }, @@ -160,7 +164,7 @@ func TestAccDatadogDowntime_BasicNoRecurrence(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2679715827", "*"), ), }, }, @@ -196,7 +200,7 @@ func TestAccDatadogDowntime_BasicUntilDateRecurrence(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2679715827", "*"), ), }, }, @@ -232,7 +236,7 @@ func TestAccDatadogDowntime_BasicUntilOccurrencesRecurrence(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2679715827", "*"), ), }, }, @@ -270,7 +274,7 @@ func TestAccDatadogDowntime_WeekDayRecurring(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2679715827", "*"), ), }, }, @@ -304,7 +308,9 @@ func TestAccDatadogDowntime_Updated(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2925324183", "app:webserver"), + resource.TestCheckResourceAttr( + "datadog_downtime.foo", "monitor_tags.188033227", "service"), ), }, { @@ -324,7 +330,7 @@ func TestAccDatadogDowntime_Updated(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2679715827", "*"), ), }, }, @@ -358,7 +364,7 @@ func TestAccDatadogDowntime_TrimWhitespace(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2679715827", "*"), ), }, }, @@ -418,7 +424,7 @@ func TestAccDatadogDowntimeDates(t *testing.T) { resource.TestCheckResourceAttr( "datadog_downtime.foo", "message", "Example Datadog downtime message."), resource.TestCheckResourceAttr( - "datadog_downtime.foo", "monitor_tags.0", "*"), + "datadog_downtime.foo", "monitor_tags.2679715827", "*"), ), }, }, @@ -493,7 +499,7 @@ resource "datadog_downtime" "foo" { } message = "Example Datadog downtime message." - monitor_tags = ["*"] + monitor_tags = ["service", "app:webserver"] } ` diff --git a/go.sum b/go.sum index 15c7ba49f..2a2be43b7 100644 --- a/go.sum +++ b/go.sum @@ -47,10 +47,12 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1 h1:qGJ6qTW+x6xX/my+8YUVl4WNpX9B7+/l2tRsHGZ7f2s= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -173,6 +175,7 @@ github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.1 h1:LrvDIY//XNo65Lq84G/akBuMGlawHvGBABv8f/ZN6DI=