diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index ceaced090..96691b65d 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -5953,12 +5953,22 @@ func getWidgetCustomLinkSchema() map[string]*schema.Schema { "label": { Description: "The label for the custom link URL.", Type: schema.TypeString, - Required: true, + Optional: true, }, "link": { Description: "The URL of the custom link.", Type: schema.TypeString, - Required: true, + Optional: true, + }, + "is_hidden": { + Description: "The flag for toggling context menu link visibility.", + Type: schema.TypeBool, + Optional: true, + }, + "override_label": { + Description: "The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field.", + Type: schema.TypeString, + Optional: true, }, } } @@ -5966,22 +5976,41 @@ func buildDatadogWidgetCustomLinks(terraformWidgetCustomLinks *[]interface{}) *[ datadogWidgetCustomLinks := make([]datadogV1.WidgetCustomLink, len(*terraformWidgetCustomLinks)) for i, customLink := range *terraformWidgetCustomLinks { terraformCustomLink := customLink.(map[string]interface{}) - datadogWidgetCustomLink := datadogV1.WidgetCustomLink{ - Label: datadogV1.PtrString(terraformCustomLink["label"].(string)), - Link: datadogV1.PtrString(terraformCustomLink["link"].(string)), + datadogWidgetCustomLink := datadogV1.WidgetCustomLink{} + if v, ok := terraformCustomLink["override_label"].(string); ok && len(v) > 0 { + datadogWidgetCustomLink.SetOverrideLabel(v) + } + // if override_label is provided, the label field will be omitted. + if v, ok := terraformCustomLink["label"].(string); ok && len(v) > 0 && !datadogWidgetCustomLink.HasOverrideLabel() { + datadogWidgetCustomLink.SetLabel(v) + } + if v, ok := terraformCustomLink["is_hidden"].(bool); ok && v && datadogWidgetCustomLink.HasOverrideLabel() { + datadogWidgetCustomLink.SetIsHidden(v) + } + if v, ok := terraformCustomLink["link"].(string); ok && len(v) > 0 { + datadogWidgetCustomLink.SetLink(v) } datadogWidgetCustomLinks[i] = datadogWidgetCustomLink } return &datadogWidgetCustomLinks } -func buildTerraformWidgetCustomLinks(datadogWidgetCustomLinks *[]datadogV1.WidgetCustomLink) *[]map[string]string { - terraformWidgetCustomLinks := make([]map[string]string, len(*datadogWidgetCustomLinks)) +func buildTerraformWidgetCustomLinks(datadogWidgetCustomLinks *[]datadogV1.WidgetCustomLink) *[]map[string]interface{} { + terraformWidgetCustomLinks := make([]map[string]interface{}, len(*datadogWidgetCustomLinks)) for i, customLink := range *datadogWidgetCustomLinks { - terraformWidgetCustomLink := map[string]string{} - // Required params - terraformWidgetCustomLink["label"] = customLink.GetLabel() - terraformWidgetCustomLink["link"] = customLink.GetLink() - + terraformWidgetCustomLink := map[string]interface{}{} + // Optional params + if v, ok := customLink.GetLabelOk(); ok { + terraformWidgetCustomLink["label"] = *v + } + if v, ok := customLink.GetLinkOk(); ok { + terraformWidgetCustomLink["link"] = *v + } + if v, ok := customLink.GetOverrideLabelOk(); ok { + terraformWidgetCustomLink["override_label"] = *v + } + if v, ok := customLink.GetIsHiddenOk(); ok { + terraformWidgetCustomLink["is_hidden"] = *v + } terraformWidgetCustomLinks[i] = terraformWidgetCustomLink } return &terraformWidgetCustomLinks diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardChange.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardChange.freeze index cf08b3530..7ded66fab 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardChange.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardChange.freeze @@ -1 +1 @@ -2021-03-12T17:13:32.763037-05:00 \ No newline at end of file +2021-06-07T14:52:21.726734-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardChange.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardChange.yaml index ef1d6da95..3953f0d57 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardChange.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardChange.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardChange-local-1615587212","widgets":[{"definition":{"requests":[{"increase_good":false,"q":"sum:system.cpu.user{*} by {service,account}","show_present":false}],"type":"change"}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"change_type":"absolute","compare_to":"day_before","increase_good":false,"order_by":"change","order_dir":"desc","q":"sum:system.cpu.user{*} by {service,account}","show_present":true}],"time":{"live_span":"1h"},"title":"Sum of system.cpu.user over * by service,account","title_align":"left","title_size":"16","type":"change"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardChange-local-1623091941","widgets":[{"definition":{"requests":[{"increase_good":false,"q":"sum:system.cpu.user{*} by {service,account}","show_present":false}],"type":"change"}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"requests":[{"change_type":"absolute","compare_to":"day_before","increase_good":false,"order_by":"change","order_dir":"desc","q":"sum:system.cpu.user{*} by {service,account}","show_present":true}],"time":{"live_span":"1h"},"title":"Sum of system.cpu.user over * by service,account","title_align":"left","title_size":"16","type":"change"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"hbf-tfn-avt","title":"tf-TestAccDatadogDashboardChange-local-1615587212","url":"/dashboard/hbf-tfn-avt/tf-testaccdatadogdashboardchange-local-1615587212","created_at":"2021-03-12T22:13:35.304661+00:00","modified_at":"2021-03-12T22:13:35.304661+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":8181499730809780},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":5728156764063988}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j8w-rr3-y9d","title":"tf-TestAccDatadogDashboardChange-local-1623091941","url":"/dashboard/j8w-rr3-y9d/tf-testaccdatadogdashboardchange-local-1623091941","created_at":"2021-06-07T18:52:38.506135+00:00","modified_at":"2021-06-07T18:52:38.506135+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":7002519636976430},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":4263957821410484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:37 GMT + - Mon, 07 Jun 2021 18:52:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU + - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/hbf-tfn-avt + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/j8w-rr3-y9d method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"hbf-tfn-avt","title":"tf-TestAccDatadogDashboardChange-local-1615587212","url":"/dashboard/hbf-tfn-avt/tf-testaccdatadogdashboardchange-local-1615587212","created_at":"2021-03-12T22:13:35.304661+00:00","modified_at":"2021-03-12T22:13:35.304661+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":8181499730809780},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":5728156764063988}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j8w-rr3-y9d","title":"tf-TestAccDatadogDashboardChange-local-1623091941","url":"/dashboard/j8w-rr3-y9d/tf-testaccdatadogdashboardchange-local-1623091941","created_at":"2021-06-07T18:52:38.506135+00:00","modified_at":"2021-06-07T18:52:38.506135+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":7002519636976430},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":4263957821410484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:37 GMT + - Mon, 07 Jun 2021 18:52:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - EFjE6I+AUQmTiNqZcuE1nqoFeAjWD0Xtzy3edDrinkwlU/Wzr/2Dbl5kWk3qLVaQ X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/hbf-tfn-avt + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/j8w-rr3-y9d method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"hbf-tfn-avt","title":"tf-TestAccDatadogDashboardChange-local-1615587212","url":"/dashboard/hbf-tfn-avt/tf-testaccdatadogdashboardchange-local-1615587212","created_at":"2021-03-12T22:13:35.304661+00:00","modified_at":"2021-03-12T22:13:35.304661+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":8181499730809780},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":5728156764063988}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j8w-rr3-y9d","title":"tf-TestAccDatadogDashboardChange-local-1623091941","url":"/dashboard/j8w-rr3-y9d/tf-testaccdatadogdashboardchange-local-1623091941","created_at":"2021-06-07T18:52:38.506135+00:00","modified_at":"2021-06-07T18:52:38.506135+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":7002519636976430},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":4263957821410484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:38 GMT + - Mon, 07 Jun 2021 18:52:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/hbf-tfn-avt + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/j8w-rr3-y9d method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"hbf-tfn-avt","title":"tf-TestAccDatadogDashboardChange-local-1615587212","url":"/dashboard/hbf-tfn-avt/tf-testaccdatadogdashboardchange-local-1615587212","created_at":"2021-03-12T22:13:35.304661+00:00","modified_at":"2021-03-12T22:13:35.304661+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":8181499730809780},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":5728156764063988}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"j8w-rr3-y9d","title":"tf-TestAccDatadogDashboardChange-local-1623091941","url":"/dashboard/j8w-rr3-y9d/tf-testaccdatadogdashboardchange-local-1623091941","created_at":"2021-06-07T18:52:38.506135+00:00","modified_at":"2021-06-07T18:52:38.506135+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":7002519636976430},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":4263957821410484}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:39 GMT + - Mon, 07 Jun 2021 18:52:52 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt + - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/hbf-tfn-avt + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/j8w-rr3-y9d method: DELETE response: - body: '{"deleted_dashboard_id":"hbf-tfn-avt"}' + body: '{"deleted_dashboard_id":"j8w-rr3-y9d"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:41 GMT + - Mon, 07 Jun 2021 18:53:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/hbf-tfn-avt + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/j8w-rr3-y9d method: GET response: - body: '{"errors": ["Dashboard with ID hbf-tfn-avt not found"]}' + body: '{"errors": ["Dashboard with ID j8w-rr3-y9d not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:41 GMT + - Mon, 07 Jun 2021 18:53:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardChange_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardChange_import.freeze index ce2a28927..6e38a3ae1 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardChange_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardChange_import.freeze @@ -1 +1 @@ -2021-03-12T17:13:30.199134-05:00 \ No newline at end of file +2021-06-07T14:52:21.732309-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardChange_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardChange_import.yaml index a5c37a6e5..7f257c62d 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardChange_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardChange_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardChange_import-local-1615587210","widgets":[{"definition":{"requests":[{"increase_good":false,"q":"sum:system.cpu.user{*} by {service,account}","show_present":false}],"type":"change"}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"change_type":"absolute","compare_to":"day_before","increase_good":false,"order_by":"change","order_dir":"desc","q":"sum:system.cpu.user{*} by {service,account}","show_present":true}],"time":{"live_span":"1h"},"title":"Sum of system.cpu.user over * by service,account","title_align":"left","title_size":"16","type":"change"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardChange_import-local-1623091941","widgets":[{"definition":{"requests":[{"increase_good":false,"q":"sum:system.cpu.user{*} by {service,account}","show_present":false}],"type":"change"}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"change_type":"absolute","compare_to":"day_before","increase_good":false,"order_by":"change","order_dir":"desc","q":"sum:system.cpu.user{*} by {service,account}","show_present":true}],"time":{"live_span":"1h"},"title":"Sum of system.cpu.user over * by service,account","title_align":"left","title_size":"16","type":"change"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xzt-qb9-3u9","title":"tf-TestAccDatadogDashboardChange_import-local-1615587210","url":"/dashboard/xzt-qb9-3u9/tf-testaccdatadogdashboardchangeimport-local-1615587210","created_at":"2021-03-12T22:13:31.950350+00:00","modified_at":"2021-03-12T22:13:31.950350+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1549510653805565},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":2228906748104341}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"fsx-pyw-xgy","title":"tf-TestAccDatadogDashboardChange_import-local-1623091941","url":"/dashboard/fsx-pyw-xgy/tf-testaccdatadogdashboardchangeimport-local-1623091941","created_at":"2021-06-07T18:52:38.505514+00:00","modified_at":"2021-06-07T18:52:38.505514+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":6857618486972397},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":3519026385133017}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:34 GMT + - Mon, 07 Jun 2021 18:52:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/xzt-qb9-3u9 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fsx-pyw-xgy method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xzt-qb9-3u9","title":"tf-TestAccDatadogDashboardChange_import-local-1615587210","url":"/dashboard/xzt-qb9-3u9/tf-testaccdatadogdashboardchangeimport-local-1615587210","created_at":"2021-03-12T22:13:31.950350+00:00","modified_at":"2021-03-12T22:13:31.950350+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1549510653805565},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":2228906748104341}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"fsx-pyw-xgy","title":"tf-TestAccDatadogDashboardChange_import-local-1623091941","url":"/dashboard/fsx-pyw-xgy/tf-testaccdatadogdashboardchangeimport-local-1623091941","created_at":"2021-06-07T18:52:38.505514+00:00","modified_at":"2021-06-07T18:52:38.505514+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":6857618486972397},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":3519026385133017}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:34 GMT + - Mon, 07 Jun 2021 18:52:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/xzt-qb9-3u9 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fsx-pyw-xgy method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xzt-qb9-3u9","title":"tf-TestAccDatadogDashboardChange_import-local-1615587210","url":"/dashboard/xzt-qb9-3u9/tf-testaccdatadogdashboardchangeimport-local-1615587210","created_at":"2021-03-12T22:13:31.950350+00:00","modified_at":"2021-03-12T22:13:31.950350+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1549510653805565},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":2228906748104341}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"fsx-pyw-xgy","title":"tf-TestAccDatadogDashboardChange_import-local-1623091941","url":"/dashboard/fsx-pyw-xgy/tf-testaccdatadogdashboardchangeimport-local-1623091941","created_at":"2021-06-07T18:52:38.505514+00:00","modified_at":"2021-06-07T18:52:38.505514+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":6857618486972397},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":3519026385133017}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:36 GMT + - Mon, 07 Jun 2021 18:52:52 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/xzt-qb9-3u9 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fsx-pyw-xgy method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xzt-qb9-3u9","title":"tf-TestAccDatadogDashboardChange_import-local-1615587210","url":"/dashboard/xzt-qb9-3u9/tf-testaccdatadogdashboardchangeimport-local-1615587210","created_at":"2021-03-12T22:13:31.950350+00:00","modified_at":"2021-03-12T22:13:31.950350+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":1549510653805565},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":2228906748104341}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"fsx-pyw-xgy","title":"tf-TestAccDatadogDashboardChange_import-local-1623091941","url":"/dashboard/fsx-pyw-xgy/tf-testaccdatadogdashboardchangeimport-local-1623091941","created_at":"2021-06-07T18:52:38.505514+00:00","modified_at":"2021-06-07T18:52:38.505514+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"sum:system.cpu.user{*} by {service,account}","show_present":false,"increase_good":false}],"type":"change"},"id":6857618486972397},{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Sum of system.cpu.user over * by service,account","title_align":"left","time":{"live_span":"1h"},"requests":[{"change_type":"absolute","order_dir":"desc","compare_to":"day_before","q":"sum:system.cpu.user{*} by {service,account}","show_present":true,"increase_good":false,"order_by":"change"}],"type":"change"},"id":3519026385133017}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:38 GMT + - Mon, 07 Jun 2021 18:53:08 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ + - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/xzt-qb9-3u9 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fsx-pyw-xgy method: DELETE response: - body: '{"deleted_dashboard_id":"xzt-qb9-3u9"}' + body: '{"deleted_dashboard_id":"fsx-pyw-xgy"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:39 GMT + - Mon, 07 Jun 2021 18:53:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2328yjLSqI4XmR1pVqrPRR/SFcQsbafjEpPmZx7/3PfxUK1nJQQsX+wrMelyVyj+ + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/xzt-qb9-3u9 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fsx-pyw-xgy method: GET response: - body: '{"errors": ["Dashboard with ID xzt-qb9-3u9 not found"]}' + body: '{"errors": ["Dashboard with ID fsx-pyw-xgy not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:39 GMT + - Mon, 07 Jun 2021 18:53:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.freeze index 7c3395c3c..d3ffbc6ab 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.freeze @@ -1 +1 @@ -2021-03-12T17:13:16.636793-05:00 \ No newline at end of file +2021-06-07T14:56:00.068169-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.yaml index 84aeac5f3..810af663f 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomap-local-1615587196","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"log_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"1h"},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"rum_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomap-local-1623092160","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"requests":[{"log_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"1h"},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"rum_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"bei-4q2-9s7","title":"tf-TestAccDatadogDashboardGeomap-local-1615587196","url":"/dashboard/bei-4q2-9s7/tf-testaccdatadogdashboardgeomap-local-1615587196","created_at":"2021-03-12T22:13:19.406367+00:00","modified_at":"2021-03-12T22:13:19.406367+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4537250059284788},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1777399068654761},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":7033147005132858}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3r2-kq7-g4k","title":"tf-TestAccDatadogDashboardGeomap-local-1623092160","url":"/dashboard/3r2-kq7-g4k/tf-testaccdatadogdashboardgeomap-local-1623092160","created_at":"2021-06-07T18:56:30.540313+00:00","modified_at":"2021-06-07T18:56:30.540313+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5909348587467191},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":5301594787143510},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6351923636628786}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:56:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/bei-4q2-9s7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3r2-kq7-g4k method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"bei-4q2-9s7","title":"tf-TestAccDatadogDashboardGeomap-local-1615587196","url":"/dashboard/bei-4q2-9s7/tf-testaccdatadogdashboardgeomap-local-1615587196","created_at":"2021-03-12T22:13:19.406367+00:00","modified_at":"2021-03-12T22:13:19.406367+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4537250059284788},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1777399068654761},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":7033147005132858}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3r2-kq7-g4k","title":"tf-TestAccDatadogDashboardGeomap-local-1623092160","url":"/dashboard/3r2-kq7-g4k/tf-testaccdatadogdashboardgeomap-local-1623092160","created_at":"2021-06-07T18:56:30.540313+00:00","modified_at":"2021-06-07T18:56:30.540313+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5909348587467191},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":5301594787143510},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6351923636628786}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:56:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/bei-4q2-9s7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3r2-kq7-g4k method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"bei-4q2-9s7","title":"tf-TestAccDatadogDashboardGeomap-local-1615587196","url":"/dashboard/bei-4q2-9s7/tf-testaccdatadogdashboardgeomap-local-1615587196","created_at":"2021-03-12T22:13:19.406367+00:00","modified_at":"2021-03-12T22:13:19.406367+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4537250059284788},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1777399068654761},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":7033147005132858}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3r2-kq7-g4k","title":"tf-TestAccDatadogDashboardGeomap-local-1623092160","url":"/dashboard/3r2-kq7-g4k/tf-testaccdatadogdashboardgeomap-local-1623092160","created_at":"2021-06-07T18:56:30.540313+00:00","modified_at":"2021-06-07T18:56:30.540313+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5909348587467191},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":5301594787143510},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6351923636628786}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:23 GMT + - Mon, 07 Jun 2021 18:56:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/bei-4q2-9s7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3r2-kq7-g4k method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"bei-4q2-9s7","title":"tf-TestAccDatadogDashboardGeomap-local-1615587196","url":"/dashboard/bei-4q2-9s7/tf-testaccdatadogdashboardgeomap-local-1615587196","created_at":"2021-03-12T22:13:19.406367+00:00","modified_at":"2021-03-12T22:13:19.406367+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4537250059284788},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1777399068654761},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":7033147005132858}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3r2-kq7-g4k","title":"tf-TestAccDatadogDashboardGeomap-local-1623092160","url":"/dashboard/3r2-kq7-g4k/tf-testaccdatadogdashboardgeomap-local-1623092160","created_at":"2021-06-07T18:56:30.540313+00:00","modified_at":"2021-06-07T18:56:30.540313+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5909348587467191},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":5301594787143510},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6351923636628786}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:24 GMT + - Mon, 07 Jun 2021 18:56:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/bei-4q2-9s7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3r2-kq7-g4k method: DELETE response: - body: '{"deleted_dashboard_id":"bei-4q2-9s7"}' + body: '{"deleted_dashboard_id":"3r2-kq7-g4k"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:26 GMT + - Mon, 07 Jun 2021 18:57:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/bei-4q2-9s7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3r2-kq7-g4k method: GET response: - body: '{"errors": ["Dashboard with ID bei-4q2-9s7 not found"]}' + body: '{"errors": ["Dashboard with ID 3r2-kq7-g4k not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:26 GMT + - Mon, 07 Jun 2021 18:57:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.freeze index 12046087a..aef0c5e69 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.freeze @@ -1 +1 @@ -2021-04-27T08:58:27.619933+02:00 \ No newline at end of file +2021-06-07T14:56:00.068244-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.yaml index d8271a5a9..d504d5d41 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"my custom link","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"formulas":[{"formula":"query1"}],"queries":[{"compute":{"aggregation":"count"},"data_source":"security_signals","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomapFormula-local-1623092160","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"my custom link","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"formulas":[{"formula":"query1"}],"queries":[{"compute":{"aggregation":"count"},"data_source":"security_signals","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6py-cu6-x88","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1623092160","url":"/dashboard/6py-cu6-x88/tf-testaccdatadogdashboardgeomapformula-local-1623092160","created_at":"2021-06-07T18:56:30.550133+00:00","modified_at":"2021-06-07T18:56:30.550133+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4479078063953095},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2765548000845854},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":1986613270554034}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:32 GMT + - Mon, 07 Jun 2021 18:56:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,51 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I - X-Dd-Version: - - "35.4397207" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Tue, 27 Apr 2021 06:58:32 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a + - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/6py-cu6-x88 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6py-cu6-x88","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1623092160","url":"/dashboard/6py-cu6-x88/tf-testaccdatadogdashboardgeomapformula-local-1623092160","created_at":"2021-06-07T18:56:30.550133+00:00","modified_at":"2021-06-07T18:56:30.550133+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4479078063953095},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2765548000845854},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":1986613270554034}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:32 GMT + - Mon, 07 Jun 2021 18:56:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a + - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/6py-cu6-x88 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6py-cu6-x88","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1623092160","url":"/dashboard/6py-cu6-x88/tf-testaccdatadogdashboardgeomapformula-local-1623092160","created_at":"2021-06-07T18:56:30.550133+00:00","modified_at":"2021-06-07T18:56:30.550133+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4479078063953095},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2765548000845854},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":1986613270554034}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:33 GMT + - Mon, 07 Jun 2021 18:56:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU + - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/6py-cu6-x88 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6py-cu6-x88","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1623092160","url":"/dashboard/6py-cu6-x88/tf-testaccdatadogdashboardgeomapformula-local-1623092160","created_at":"2021-06-07T18:56:30.550133+00:00","modified_at":"2021-06-07T18:56:30.550133+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4479078063953095},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2765548000845854},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":1986613270554034}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -196,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:34 GMT + - Mon, 07 Jun 2021 18:56:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu + - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/6py-cu6-x88 method: DELETE response: - body: '{"deleted_dashboard_id":"3jk-mfp-nsn"}' + body: '{"deleted_dashboard_id":"6py-cu6-x88"}' headers: Cache-Control: - no-cache @@ -238,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:34 GMT + - Mon, 07 Jun 2021 18:57:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -265,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/6py-cu6-x88 method: GET response: - body: '{"errors": ["Dashboard with ID 3jk-mfp-nsn not found"]}' + body: '{"errors": ["Dashboard with ID 6py-cu6-x88 not found"]}' headers: Cache-Control: - no-cache @@ -280,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:34 GMT + - Mon, 07 Jun 2021 18:57:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.freeze index a807f71eb..7308727a9 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.freeze @@ -1 +1 @@ -2021-04-27T08:58:27.620391+02:00 \ No newline at end of file +2021-06-07T14:56:00.071311-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.yaml index 01b977dab..b2b64c976 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"my custom link","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"formulas":[{"formula":"query1"}],"queries":[{"compute":{"aggregation":"count"},"data_source":"security_signals","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1623092160","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"my custom link","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"formulas":[{"formula":"query1"}],"queries":[{"compute":{"aggregation":"count"},"data_source":"security_signals","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"fde-84m-tz6","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1623092160","url":"/dashboard/fde-84m-tz6/tf-testaccdatadogdashboardgeomapformulaimport-local-1623092160","created_at":"2021-06-07T18:56:30.547316+00:00","modified_at":"2021-06-07T18:56:30.547316+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":7801488504642393},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":3348897595402449},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":6546087330916132}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:32 GMT + - Mon, 07 Jun 2021 18:56:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fde-84m-tz6 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"fde-84m-tz6","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1623092160","url":"/dashboard/fde-84m-tz6/tf-testaccdatadogdashboardgeomapformulaimport-local-1623092160","created_at":"2021-06-07T18:56:30.547316+00:00","modified_at":"2021-06-07T18:56:30.547316+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":7801488504642393},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":3348897595402449},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":6546087330916132}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:32 GMT + - Mon, 07 Jun 2021 18:56:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,51 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN - X-Dd-Version: - - "35.4397207" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Tue, 27 Apr 2021 06:58:33 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU + - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fde-84m-tz6 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"fde-84m-tz6","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1623092160","url":"/dashboard/fde-84m-tz6/tf-testaccdatadogdashboardgeomapformulaimport-local-1623092160","created_at":"2021-06-07T18:56:30.547316+00:00","modified_at":"2021-06-07T18:56:30.547316+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":7801488504642393},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":3348897595402449},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":6546087330916132}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:33 GMT + - Mon, 07 Jun 2021 18:56:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 + - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fde-84m-tz6 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"fde-84m-tz6","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1623092160","url":"/dashboard/fde-84m-tz6/tf-testaccdatadogdashboardgeomapformulaimport-local-1623092160","created_at":"2021-06-07T18:56:30.547316+00:00","modified_at":"2021-06-07T18:56:30.547316+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":7801488504642393},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":3348897595402449},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":6546087330916132}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -196,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:34 GMT + - Mon, 07 Jun 2021 18:57:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,51 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN + - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX X-Dd-Version: - - "35.4397207" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Tue, 27 Apr 2021 06:58:34 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C - X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -265,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fde-84m-tz6 method: DELETE response: - body: '{"deleted_dashboard_id":"myq-qpv-k3m"}' + body: '{"deleted_dashboard_id":"fde-84m-tz6"}' headers: Cache-Control: - no-cache @@ -280,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:34 GMT + - Mon, 07 Jun 2021 18:57:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -307,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/fde-84m-tz6 method: GET response: - body: '{"errors": ["Dashboard with ID myq-qpv-k3m not found"]}' + body: '{"errors": ["Dashboard with ID fde-84m-tz6 not found"]}' headers: Cache-Control: - no-cache @@ -322,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 06:58:35 GMT + - Mon, 07 Jun 2021 18:57:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -332,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4397207" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.freeze index 056354d9d..ba13fb6ee 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.freeze @@ -1 +1 @@ -2021-03-12T17:13:16.615202-05:00 \ No newline at end of file +2021-06-07T14:56:00.068519-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.yaml index 1d9527039..2c9132d6a 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomap_import-local-1615587196","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"log_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"1h"},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"rum_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomap_import-local-1623092160","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"requests":[{"log_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"1h"},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"rum_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c8u-3d7-8am","title":"tf-TestAccDatadogDashboardGeomap_import-local-1615587196","url":"/dashboard/c8u-3d7-8am/tf-testaccdatadogdashboardgeomapimport-local-1615587196","created_at":"2021-03-12T22:13:19.329795+00:00","modified_at":"2021-03-12T22:13:19.329795+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5807311377121154},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":8415482404539604},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":5577483986849984}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3pa-fid-d8r","title":"tf-TestAccDatadogDashboardGeomap_import-local-1623092160","url":"/dashboard/3pa-fid-d8r/tf-testaccdatadogdashboardgeomapimport-local-1623092160","created_at":"2021-06-07T18:56:30.542317+00:00","modified_at":"2021-06-07T18:56:30.542317+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":7307431602169511},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":6774709573125338},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":47029245138024}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:56:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG + - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c8u-3d7-8am + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3pa-fid-d8r method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c8u-3d7-8am","title":"tf-TestAccDatadogDashboardGeomap_import-local-1615587196","url":"/dashboard/c8u-3d7-8am/tf-testaccdatadogdashboardgeomapimport-local-1615587196","created_at":"2021-03-12T22:13:19.329795+00:00","modified_at":"2021-03-12T22:13:19.329795+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5807311377121154},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":8415482404539604},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":5577483986849984}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3pa-fid-d8r","title":"tf-TestAccDatadogDashboardGeomap_import-local-1623092160","url":"/dashboard/3pa-fid-d8r/tf-testaccdatadogdashboardgeomapimport-local-1623092160","created_at":"2021-06-07T18:56:30.542317+00:00","modified_at":"2021-06-07T18:56:30.542317+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":7307431602169511},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":6774709573125338},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":47029245138024}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:56:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -82,7 +82,7 @@ interactions: X-Dd-Debug: - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c8u-3d7-8am + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3pa-fid-d8r method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c8u-3d7-8am","title":"tf-TestAccDatadogDashboardGeomap_import-local-1615587196","url":"/dashboard/c8u-3d7-8am/tf-testaccdatadogdashboardgeomapimport-local-1615587196","created_at":"2021-03-12T22:13:19.329795+00:00","modified_at":"2021-03-12T22:13:19.329795+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5807311377121154},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":8415482404539604},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":5577483986849984}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3pa-fid-d8r","title":"tf-TestAccDatadogDashboardGeomap_import-local-1623092160","url":"/dashboard/3pa-fid-d8r/tf-testaccdatadogdashboardgeomapimport-local-1623092160","created_at":"2021-06-07T18:56:30.542317+00:00","modified_at":"2021-06-07T18:56:30.542317+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":7307431602169511},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":6774709573125338},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":47029245138024}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:24 GMT + - Mon, 07 Jun 2021 18:56:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c8u-3d7-8am + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3pa-fid-d8r method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c8u-3d7-8am","title":"tf-TestAccDatadogDashboardGeomap_import-local-1615587196","url":"/dashboard/c8u-3d7-8am/tf-testaccdatadogdashboardgeomapimport-local-1615587196","created_at":"2021-03-12T22:13:19.329795+00:00","modified_at":"2021-03-12T22:13:19.329795+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5807311377121154},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":8415482404539604},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":5577483986849984}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3pa-fid-d8r","title":"tf-TestAccDatadogDashboardGeomap_import-local-1623092160","url":"/dashboard/3pa-fid-d8r/tf-testaccdatadogdashboardgeomapimport-local-1623092160","created_at":"2021-06-07T18:56:30.542317+00:00","modified_at":"2021-06-07T18:56:30.542317+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":7307431602169511},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":6774709573125338},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":47029245138024}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:26 GMT + - Mon, 07 Jun 2021 18:57:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -166,7 +166,7 @@ interactions: X-Dd-Debug: - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c8u-3d7-8am + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3pa-fid-d8r method: DELETE response: - body: '{"deleted_dashboard_id":"c8u-3d7-8am"}' + body: '{"deleted_dashboard_id":"3pa-fid-d8r"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:27 GMT + - Mon, 07 Jun 2021 18:57:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/c8u-3d7-8am + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/3pa-fid-d8r method: GET response: - body: '{"errors": ["Dashboard with ID c8u-3d7-8am not found"]}' + body: '{"errors": ["Dashboard with ID 3pa-fid-d8r not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:27 GMT + - Mon, 07 Jun 2021 18:57:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap.freeze index 8957d37fc..85257bb97 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap.freeze @@ -1 +1 @@ -2021-03-12T17:13:16.548459-05:00 \ No newline at end of file +2021-06-07T14:57:35.765228-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap.yaml index b9e0f1c7b..f0f252837 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardHeatMap-local-1615587196","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"events":[{"q":"env:prod","tags_execution":"and"}],"legend_size":"2","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","title_align":"center","title_size":"16","type":"heatmap","yaxis":{"include_zero":false,"max":"100"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardHeatMap-local-1623092255","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"events":[{"q":"env:prod","tags_execution":"and"}],"legend_size":"2","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","title_align":"center","title_size":"16","type":"heatmap","yaxis":{"include_zero":false,"max":"100"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"sqg-ped-phd","title":"tf-TestAccDatadogDashboardHeatMap-local-1615587196","url":"/dashboard/sqg-ped-phd/tf-testaccdatadogdashboardheatmap-local-1615587196","created_at":"2021-03-12T22:13:19.187342+00:00","modified_at":"2021-03-12T22:13:19.187342+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":4524653929761130}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"55w-4sa-ekr","title":"tf-TestAccDatadogDashboardHeatMap-local-1623092255","url":"/dashboard/55w-4sa-ekr/tf-testaccdatadogdashboardheatmap-local-1623092255","created_at":"2021-06-07T18:57:54.747115+00:00","modified_at":"2021-06-07T18:57:54.747115+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":3147231749034510}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:57:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/sqg-ped-phd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/55w-4sa-ekr method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"sqg-ped-phd","title":"tf-TestAccDatadogDashboardHeatMap-local-1615587196","url":"/dashboard/sqg-ped-phd/tf-testaccdatadogdashboardheatmap-local-1615587196","created_at":"2021-03-12T22:13:19.187342+00:00","modified_at":"2021-03-12T22:13:19.187342+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":4524653929761130}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"55w-4sa-ekr","title":"tf-TestAccDatadogDashboardHeatMap-local-1623092255","url":"/dashboard/55w-4sa-ekr/tf-testaccdatadogdashboardheatmap-local-1623092255","created_at":"2021-06-07T18:57:54.747115+00:00","modified_at":"2021-06-07T18:57:54.747115+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":3147231749034510}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:57:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU + - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/sqg-ped-phd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/55w-4sa-ekr method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"sqg-ped-phd","title":"tf-TestAccDatadogDashboardHeatMap-local-1615587196","url":"/dashboard/sqg-ped-phd/tf-testaccdatadogdashboardheatmap-local-1615587196","created_at":"2021-03-12T22:13:19.187342+00:00","modified_at":"2021-03-12T22:13:19.187342+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":4524653929761130}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"55w-4sa-ekr","title":"tf-TestAccDatadogDashboardHeatMap-local-1623092255","url":"/dashboard/55w-4sa-ekr/tf-testaccdatadogdashboardheatmap-local-1623092255","created_at":"2021-06-07T18:57:54.747115+00:00","modified_at":"2021-06-07T18:57:54.747115+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":3147231749034510}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:57:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN + - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/sqg-ped-phd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/55w-4sa-ekr method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"sqg-ped-phd","title":"tf-TestAccDatadogDashboardHeatMap-local-1615587196","url":"/dashboard/sqg-ped-phd/tf-testaccdatadogdashboardheatmap-local-1615587196","created_at":"2021-03-12T22:13:19.187342+00:00","modified_at":"2021-03-12T22:13:19.187342+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":4524653929761130}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"55w-4sa-ekr","title":"tf-TestAccDatadogDashboardHeatMap-local-1623092255","url":"/dashboard/55w-4sa-ekr/tf-testaccdatadogdashboardheatmap-local-1623092255","created_at":"2021-06-07T18:57:54.747115+00:00","modified_at":"2021-06-07T18:57:54.747115+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":3147231749034510}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:23 GMT + - Mon, 07 Jun 2021 18:58:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt + - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/sqg-ped-phd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/55w-4sa-ekr method: DELETE response: - body: '{"deleted_dashboard_id":"sqg-ped-phd"}' + body: '{"deleted_dashboard_id":"55w-4sa-ekr"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:25 GMT + - Mon, 07 Jun 2021 18:58:22 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG + - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/sqg-ped-phd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/55w-4sa-ekr method: GET response: - body: '{"errors": ["Dashboard with ID sqg-ped-phd not found"]}' + body: '{"errors": ["Dashboard with ID 55w-4sa-ekr not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:25 GMT + - Mon, 07 Jun 2021 18:58:22 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap_import.freeze index 24be70e2b..ff87ec315 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap_import.freeze @@ -1 +1 @@ -2021-03-12T17:13:16.46456-05:00 \ No newline at end of file +2021-06-07T14:57:35.765637-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap_import.yaml index 3d234eb5b..6671910ff 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardHeatMap_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardHeatMap_import-local-1615587196","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"events":[{"q":"env:prod","tags_execution":"and"}],"legend_size":"2","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","title_align":"center","title_size":"16","type":"heatmap","yaxis":{"include_zero":false,"max":"100"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardHeatMap_import-local-1623092255","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"events":[{"q":"env:prod","tags_execution":"and"}],"legend_size":"2","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","title_align":"center","title_size":"16","type":"heatmap","yaxis":{"include_zero":false,"max":"100"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"745-5rz-bb7","title":"tf-TestAccDatadogDashboardHeatMap_import-local-1615587196","url":"/dashboard/745-5rz-bb7/tf-testaccdatadogdashboardheatmapimport-local-1615587196","created_at":"2021-03-12T22:13:19.317356+00:00","modified_at":"2021-03-12T22:13:19.317356+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":4560359768741337}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"agt-bvi-823","title":"tf-TestAccDatadogDashboardHeatMap_import-local-1623092255","url":"/dashboard/agt-bvi-823/tf-testaccdatadogdashboardheatmapimport-local-1623092255","created_at":"2021-06-07T18:57:54.746067+00:00","modified_at":"2021-06-07T18:57:54.746067+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":6977657621360200}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:57:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN + - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/745-5rz-bb7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/agt-bvi-823 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"745-5rz-bb7","title":"tf-TestAccDatadogDashboardHeatMap_import-local-1615587196","url":"/dashboard/745-5rz-bb7/tf-testaccdatadogdashboardheatmapimport-local-1615587196","created_at":"2021-03-12T22:13:19.317356+00:00","modified_at":"2021-03-12T22:13:19.317356+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":4560359768741337}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"agt-bvi-823","title":"tf-TestAccDatadogDashboardHeatMap_import-local-1623092255","url":"/dashboard/agt-bvi-823/tf-testaccdatadogdashboardheatmapimport-local-1623092255","created_at":"2021-06-07T18:57:54.746067+00:00","modified_at":"2021-06-07T18:57:54.746067+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":6977657621360200}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 18:57:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk + - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/745-5rz-bb7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/agt-bvi-823 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"745-5rz-bb7","title":"tf-TestAccDatadogDashboardHeatMap_import-local-1615587196","url":"/dashboard/745-5rz-bb7/tf-testaccdatadogdashboardheatmapimport-local-1615587196","created_at":"2021-03-12T22:13:19.317356+00:00","modified_at":"2021-03-12T22:13:19.317356+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":4560359768741337}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"agt-bvi-823","title":"tf-TestAccDatadogDashboardHeatMap_import-local-1623092255","url":"/dashboard/agt-bvi-823/tf-testaccdatadogdashboardheatmapimport-local-1623092255","created_at":"2021-06-07T18:57:54.746067+00:00","modified_at":"2021-06-07T18:57:54.746067+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":6977657621360200}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:24 GMT + - Mon, 07 Jun 2021 18:58:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc + - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV X-Dd-Version: - - "35.4088130" + - "35.4693288" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/745-5rz-bb7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/agt-bvi-823 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"745-5rz-bb7","title":"tf-TestAccDatadogDashboardHeatMap_import-local-1615587196","url":"/dashboard/745-5rz-bb7/tf-testaccdatadogdashboardheatmapimport-local-1615587196","created_at":"2021-03-12T22:13:19.317356+00:00","modified_at":"2021-03-12T22:13:19.317356+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":4560359768741337}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"agt-bvi-823","title":"tf-TestAccDatadogDashboardHeatMap_import-local-1623092255","url":"/dashboard/agt-bvi-823/tf-testaccdatadogdashboardheatmapimport-local-1623092255","created_at":"2021-06-07T18:57:54.746067+00:00","modified_at":"2021-06-07T18:57:54.746067+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"max":"100"},"title_align":"center","events":[{"q":"env:prod","tags_execution":"and"}],"show_legend":true,"time":{"live_span":"1mo"},"title":"Avg of system.cpu.user over account:prod by app","legend_size":"2","type":"heatmap","requests":[{"q":"avg:system.cpu.user{account:prod} by {app}","style":{"palette":"blue"}}]},"id":6977657621360200}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:26 GMT + - Mon, 07 Jun 2021 18:58:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/745-5rz-bb7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/agt-bvi-823 method: DELETE response: - body: '{"deleted_dashboard_id":"745-5rz-bb7"}' + body: '{"deleted_dashboard_id":"agt-bvi-823"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:27 GMT + - Mon, 07 Jun 2021 18:58:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/745-5rz-bb7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/agt-bvi-823 method: GET response: - body: '{"errors": ["Dashboard with ID 745-5rz-bb7 not found"]}' + body: '{"errors": ["Dashboard with ID agt-bvi-823 not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:27 GMT + - Mon, 07 Jun 2021 18:58:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardHostMap.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardHostMap.freeze index 745dcc02f..9a63ae0dd 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardHostMap.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardHostMap.freeze @@ -1 +1 @@ -2021-03-12T17:13:15.820444-05:00 \ No newline at end of file +2021-06-07T14:59:48.602905-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardHostMap.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardHostMap.yaml index c95a21c83..0b5716fe4 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardHostMap.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardHostMap.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardHostMap-local-1615587195","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"group":["region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"host","requests":{"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"},"size":{"q":"max:system.cpu.user{env:prod} by {host}"}},"scope":["env:prod"],"style":{"fill_max":"30","fill_min":"10","palette":"YlOrRd","palette_flip":true},"title":"system.cpu.idle, system.cpu.user","title_align":"right","title_size":"16","type":"hostmap"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardHostMap-local-1623092388","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"group":["region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"host","requests":{"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"},"size":{"q":"max:system.cpu.user{env:prod} by {host}"}},"scope":["env:prod"],"style":{"fill_max":"30","fill_min":"10","palette":"YlOrRd","palette_flip":true},"title":"system.cpu.idle, system.cpu.user","title_align":"right","title_size":"16","type":"hostmap"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"wpr-ngk-x4s","title":"tf-TestAccDatadogDashboardHostMap-local-1615587195","url":"/dashboard/wpr-ngk-x4s/tf-testaccdatadogdashboardhostmap-local-1615587195","created_at":"2021-03-12T22:13:18.503316+00:00","modified_at":"2021-03-12T22:13:18.503316+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4740952089759183}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7ea-2ez-78m","title":"tf-TestAccDatadogDashboardHostMap-local-1623092388","url":"/dashboard/7ea-2ez-78m/tf-testaccdatadogdashboardhostmap-local-1623092388","created_at":"2021-06-07T19:00:05.614994+00:00","modified_at":"2021-06-07T19:00:05.614994+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":8480282586103129}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:21 GMT + - Mon, 07 Jun 2021 19:00:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wpr-ngk-x4s + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/7ea-2ez-78m method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"wpr-ngk-x4s","title":"tf-TestAccDatadogDashboardHostMap-local-1615587195","url":"/dashboard/wpr-ngk-x4s/tf-testaccdatadogdashboardhostmap-local-1615587195","created_at":"2021-03-12T22:13:18.503316+00:00","modified_at":"2021-03-12T22:13:18.503316+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4740952089759183}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7ea-2ez-78m","title":"tf-TestAccDatadogDashboardHostMap-local-1623092388","url":"/dashboard/7ea-2ez-78m/tf-testaccdatadogdashboardhostmap-local-1623092388","created_at":"2021-06-07T19:00:05.614994+00:00","modified_at":"2021-06-07T19:00:05.614994+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":8480282586103129}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:21 GMT + - Mon, 07 Jun 2021 19:00:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2328yjLSqI4XmR1pVqrPRR/SFcQsbafjEpPmZx7/3PfxUK1nJQQsX+wrMelyVyj+ + - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wpr-ngk-x4s + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/7ea-2ez-78m method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"wpr-ngk-x4s","title":"tf-TestAccDatadogDashboardHostMap-local-1615587195","url":"/dashboard/wpr-ngk-x4s/tf-testaccdatadogdashboardhostmap-local-1615587195","created_at":"2021-03-12T22:13:18.503316+00:00","modified_at":"2021-03-12T22:13:18.503316+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4740952089759183}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7ea-2ez-78m","title":"tf-TestAccDatadogDashboardHostMap-local-1623092388","url":"/dashboard/7ea-2ez-78m/tf-testaccdatadogdashboardhostmap-local-1623092388","created_at":"2021-06-07T19:00:05.614994+00:00","modified_at":"2021-06-07T19:00:05.614994+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":8480282586103129}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:21 GMT + - Mon, 07 Jun 2021 19:00:08 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 + - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wpr-ngk-x4s + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/7ea-2ez-78m method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"wpr-ngk-x4s","title":"tf-TestAccDatadogDashboardHostMap-local-1615587195","url":"/dashboard/wpr-ngk-x4s/tf-testaccdatadogdashboardhostmap-local-1615587195","created_at":"2021-03-12T22:13:18.503316+00:00","modified_at":"2021-03-12T22:13:18.503316+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":4740952089759183}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7ea-2ez-78m","title":"tf-TestAccDatadogDashboardHostMap-local-1623092388","url":"/dashboard/7ea-2ez-78m/tf-testaccdatadogdashboardhostmap-local-1623092388","created_at":"2021-06-07T19:00:05.614994+00:00","modified_at":"2021-06-07T19:00:05.614994+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":8480282586103129}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:22 GMT + - Mon, 07 Jun 2021 19:00:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU + - 2328yjLSqI4XmR1pVqrPRR/SFcQsbafjEpPmZx7/3PfxUK1nJQQsX+wrMelyVyj+ X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wpr-ngk-x4s + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/7ea-2ez-78m method: DELETE response: - body: '{"deleted_dashboard_id":"wpr-ngk-x4s"}' + body: '{"deleted_dashboard_id":"7ea-2ez-78m"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:24 GMT + - Mon, 07 Jun 2021 19:00:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - S1wfaMZOKGT/IoMw6fqAwAwGWo2vQ44sjF3YzuETnQfxZO2T5eJbs0aX3UKb9Dwu + - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wpr-ngk-x4s + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/7ea-2ez-78m method: GET response: - body: '{"errors": ["Dashboard with ID wpr-ngk-x4s not found"]}' + body: '{"errors": ["Dashboard with ID 7ea-2ez-78m not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:24 GMT + - Mon, 07 Jun 2021 19:00:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardHostMap_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardHostMap_import.freeze index f3569f018..676bbcad6 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardHostMap_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardHostMap_import.freeze @@ -1 +1 @@ -2021-03-12T17:13:09.956805-05:00 \ No newline at end of file +2021-06-07T14:59:48.602836-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardHostMap_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardHostMap_import.yaml index e7f4902cf..fdaa0eb15 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardHostMap_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardHostMap_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardHostMap_import-local-1615587189","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"group":["region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"host","requests":{"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"},"size":{"q":"max:system.cpu.user{env:prod} by {host}"}},"scope":["env:prod"],"style":{"fill_max":"30","fill_min":"10","palette":"YlOrRd","palette_flip":true},"title":"system.cpu.idle, system.cpu.user","title_align":"right","title_size":"16","type":"hostmap"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardHostMap_import-local-1623092388","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"group":["region"],"no_group_hosts":true,"no_metric_hosts":true,"node_type":"host","requests":{"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"},"size":{"q":"max:system.cpu.user{env:prod} by {host}"}},"scope":["env:prod"],"style":{"fill_max":"30","fill_min":"10","palette":"YlOrRd","palette_flip":true},"title":"system.cpu.idle, system.cpu.user","title_align":"right","title_size":"16","type":"hostmap"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"rc3-zbm-68b","title":"tf-TestAccDatadogDashboardHostMap_import-local-1615587189","url":"/dashboard/rc3-zbm-68b/tf-testaccdatadogdashboardhostmapimport-local-1615587189","created_at":"2021-03-12T22:13:13.591915+00:00","modified_at":"2021-03-12T22:13:13.591915+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":7743784878658843}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"75a-prz-6v9","title":"tf-TestAccDatadogDashboardHostMap_import-local-1623092388","url":"/dashboard/75a-prz-6v9/tf-testaccdatadogdashboardhostmapimport-local-1623092388","created_at":"2021-06-07T19:00:05.642873+00:00","modified_at":"2021-06-07T19:00:05.642873+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":6071489269300966}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:16 GMT + - Mon, 07 Jun 2021 19:00:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rc3-zbm-68b + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/75a-prz-6v9 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"rc3-zbm-68b","title":"tf-TestAccDatadogDashboardHostMap_import-local-1615587189","url":"/dashboard/rc3-zbm-68b/tf-testaccdatadogdashboardhostmapimport-local-1615587189","created_at":"2021-03-12T22:13:13.591915+00:00","modified_at":"2021-03-12T22:13:13.591915+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":7743784878658843}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"75a-prz-6v9","title":"tf-TestAccDatadogDashboardHostMap_import-local-1623092388","url":"/dashboard/75a-prz-6v9/tf-testaccdatadogdashboardhostmapimport-local-1623092388","created_at":"2021-06-07T19:00:05.642873+00:00","modified_at":"2021-06-07T19:00:05.642873+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":6071489269300966}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:16 GMT + - Mon, 07 Jun 2021 19:00:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a + - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rc3-zbm-68b + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/75a-prz-6v9 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"rc3-zbm-68b","title":"tf-TestAccDatadogDashboardHostMap_import-local-1615587189","url":"/dashboard/rc3-zbm-68b/tf-testaccdatadogdashboardhostmapimport-local-1615587189","created_at":"2021-03-12T22:13:13.591915+00:00","modified_at":"2021-03-12T22:13:13.591915+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":7743784878658843}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"75a-prz-6v9","title":"tf-TestAccDatadogDashboardHostMap_import-local-1623092388","url":"/dashboard/75a-prz-6v9/tf-testaccdatadogdashboardhostmapimport-local-1623092388","created_at":"2021-06-07T19:00:05.642873+00:00","modified_at":"2021-06-07T19:00:05.642873+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":6071489269300966}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:18 GMT + - Mon, 07 Jun 2021 19:00:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h + - JpIJLwIH2nFlZOC+u71rq7aAOL43MLZN3MUsL+gpYHdZz5QLUOG8Jysf8kVK6tPU X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rc3-zbm-68b + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/75a-prz-6v9 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"rc3-zbm-68b","title":"tf-TestAccDatadogDashboardHostMap_import-local-1615587189","url":"/dashboard/rc3-zbm-68b/tf-testaccdatadogdashboardhostmapimport-local-1615587189","created_at":"2021-03-12T22:13:13.591915+00:00","modified_at":"2021-03-12T22:13:13.591915+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":7743784878658843}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"75a-prz-6v9","title":"tf-TestAccDatadogDashboardHostMap_import-local-1623092388","url":"/dashboard/75a-prz-6v9/tf-testaccdatadogdashboardhostmapimport-local-1623092388","created_at":"2021-06-07T19:00:05.642873+00:00","modified_at":"2021-06-07T19:00:05.642873+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"style":{"fill_min":"10","fill_max":"30","palette":"YlOrRd","palette_flip":true},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.idle, system.cpu.user","title_align":"right","node_type":"host","no_metric_hosts":true,"group":["region"],"requests":{"size":{"q":"max:system.cpu.user{env:prod} by {host}"},"fill":{"q":"avg:system.cpu.idle{env:prod} by {host}"}},"no_group_hosts":true,"type":"hostmap","scope":["env:prod"]},"id":6071489269300966}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:20 GMT + - Mon, 07 Jun 2021 19:00:29 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rc3-zbm-68b + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/75a-prz-6v9 method: DELETE response: - body: '{"deleted_dashboard_id":"rc3-zbm-68b"}' + body: '{"deleted_dashboard_id":"75a-prz-6v9"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:20 GMT + - Mon, 07 Jun 2021 19:00:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG + - S1wfaMZOKGT/IoMw6fqAwAwGWo2vQ44sjF3YzuETnQfxZO2T5eJbs0aX3UKb9Dwu X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rc3-zbm-68b + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/75a-prz-6v9 method: GET response: - body: '{"errors": ["Dashboard with ID rc3-zbm-68b not found"]}' + body: '{"errors": ["Dashboard with ID 75a-prz-6v9 not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:13:20 GMT + - Mon, 07 Jun 2021 19:00:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693398" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable.freeze index ca6d3cc7f..f6d9d4e58 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable.freeze @@ -1 +1 @@ -2021-03-12T17:14:47.486081-05:00 \ No newline at end of file +2021-06-07T15:04:12.075004-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable.yaml index 0648c8621..bcbdfe255 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTable-local-1615587287","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":90},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_red","value":90}],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}"},{"aggregator":"last","alias":"system load","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"custom_bg","value":50}],"q":"avg:system.load.1{*} by {service, team}"}],"time":{"live_span":"1d"},"title":"system.cpu.user, system.load.1","title_align":"right","title_size":"16","type":"query_table"}},{"definition":{"has_search_bar":"never","requests":[{"apm_stats_query":{"env":"env","name":"name","primary_tag":"tag:*","row_type":"resource","service":"service"}}],"type":"query_table"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTable-local-1623092652","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":90},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_red","value":90}],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}"},{"aggregator":"last","alias":"system load","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"custom_bg","value":50}],"q":"avg:system.load.1{*} by {service, team}"}],"time":{"live_span":"1d"},"title":"system.cpu.user, system.load.1","title_align":"right","title_size":"16","type":"query_table"}},{"definition":{"has_search_bar":"never","requests":[{"apm_stats_query":{"env":"env","name":"name","primary_tag":"tag:*","row_type":"resource","service":"service"}}],"type":"query_table"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"9tc-wn9-2cd","title":"tf-TestAccDatadogDashboardQueryTable-local-1615587287","url":"/dashboard/9tc-wn9-2cd/tf-testaccdatadogdashboardquerytable-local-1615587287","created_at":"2021-03-12T22:14:49.753213+00:00","modified_at":"2021-03-12T22:14:49.753213+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":3005658598425181},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":6673104776365396}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"uem-jte-sy9","title":"tf-TestAccDatadogDashboardQueryTable-local-1623092652","url":"/dashboard/uem-jte-sy9/tf-testaccdatadogdashboardquerytable-local-1623092652","created_at":"2021-06-07T19:04:31.693464+00:00","modified_at":"2021-06-07T19:04:31.693464+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":7102187589856576},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":2990487884668686}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:52 GMT + - Mon, 07 Jun 2021 19:04:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU + - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/9tc-wn9-2cd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/uem-jte-sy9 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"9tc-wn9-2cd","title":"tf-TestAccDatadogDashboardQueryTable-local-1615587287","url":"/dashboard/9tc-wn9-2cd/tf-testaccdatadogdashboardquerytable-local-1615587287","created_at":"2021-03-12T22:14:49.753213+00:00","modified_at":"2021-03-12T22:14:49.753213+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":3005658598425181},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":6673104776365396}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"uem-jte-sy9","title":"tf-TestAccDatadogDashboardQueryTable-local-1623092652","url":"/dashboard/uem-jte-sy9/tf-testaccdatadogdashboardquerytable-local-1623092652","created_at":"2021-06-07T19:04:31.693464+00:00","modified_at":"2021-06-07T19:04:31.693464+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":7102187589856576},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":2990487884668686}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:52 GMT + - Mon, 07 Jun 2021 19:04:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu + - 2328yjLSqI4XmR1pVqrPRR/SFcQsbafjEpPmZx7/3PfxUK1nJQQsX+wrMelyVyj+ X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/9tc-wn9-2cd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/uem-jte-sy9 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"9tc-wn9-2cd","title":"tf-TestAccDatadogDashboardQueryTable-local-1615587287","url":"/dashboard/9tc-wn9-2cd/tf-testaccdatadogdashboardquerytable-local-1615587287","created_at":"2021-03-12T22:14:49.753213+00:00","modified_at":"2021-03-12T22:14:49.753213+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":3005658598425181},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":6673104776365396}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"uem-jte-sy9","title":"tf-TestAccDatadogDashboardQueryTable-local-1623092652","url":"/dashboard/uem-jte-sy9/tf-testaccdatadogdashboardquerytable-local-1623092652","created_at":"2021-06-07T19:04:31.693464+00:00","modified_at":"2021-06-07T19:04:31.693464+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":7102187589856576},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":2990487884668686}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:52 GMT + - Mon, 07 Jun 2021 19:04:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/9tc-wn9-2cd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/uem-jte-sy9 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"9tc-wn9-2cd","title":"tf-TestAccDatadogDashboardQueryTable-local-1615587287","url":"/dashboard/9tc-wn9-2cd/tf-testaccdatadogdashboardquerytable-local-1615587287","created_at":"2021-03-12T22:14:49.753213+00:00","modified_at":"2021-03-12T22:14:49.753213+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":3005658598425181},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":6673104776365396}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"uem-jte-sy9","title":"tf-TestAccDatadogDashboardQueryTable-local-1623092652","url":"/dashboard/uem-jte-sy9/tf-testaccdatadogdashboardquerytable-local-1623092652","created_at":"2021-06-07T19:04:31.693464+00:00","modified_at":"2021-06-07T19:04:31.693464+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":7102187589856576},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":2990487884668686}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:54 GMT + - Mon, 07 Jun 2021 19:04:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/9tc-wn9-2cd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/uem-jte-sy9 method: DELETE response: - body: '{"deleted_dashboard_id":"9tc-wn9-2cd"}' + body: '{"deleted_dashboard_id":"uem-jte-sy9"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:56 GMT + - Mon, 07 Jun 2021 19:04:53 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/9tc-wn9-2cd + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/uem-jte-sy9 method: GET response: - body: '{"errors": ["Dashboard with ID 9tc-wn9-2cd not found"]}' + body: '{"errors": ["Dashboard with ID uem-jte-sy9 not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:56 GMT + - Mon, 07 Jun 2021 19:04:53 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable_import.freeze index ef929551e..cde3c0238 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable_import.freeze @@ -1 +1 @@ -2021-03-12T17:14:53.20079-05:00 \ No newline at end of file +2021-06-07T15:04:12.0737-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable_import.yaml index 33826d24b..a3d99d5f7 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryTable_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTable_import-local-1615587293","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":90},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_red","value":90}],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}"},{"aggregator":"last","alias":"system load","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"custom_bg","value":50}],"q":"avg:system.load.1{*} by {service, team}"}],"time":{"live_span":"1d"},"title":"system.cpu.user, system.load.1","title_align":"right","title_size":"16","type":"query_table"}},{"definition":{"has_search_bar":"never","requests":[{"apm_stats_query":{"env":"env","name":"name","primary_tag":"tag:*","row_type":"resource","service":"service"}}],"type":"query_table"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryTable_import-local-1623092652","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"has_search_bar":"auto","requests":[{"aggregator":"max","alias":"cpu user","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_green","value":90},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_red","value":90}],"limit":25,"order":"desc","q":"avg:system.cpu.user{account:prod} by {service, team}"},{"aggregator":"last","alias":"system load","cell_display_mode":["number"],"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"custom_bg","value":50}],"q":"avg:system.load.1{*} by {service, team}"}],"time":{"live_span":"1d"},"title":"system.cpu.user, system.load.1","title_align":"right","title_size":"16","type":"query_table"}},{"definition":{"has_search_bar":"never","requests":[{"apm_stats_query":{"env":"env","name":"name","primary_tag":"tag:*","row_type":"resource","service":"service"}}],"type":"query_table"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"ug2-xmi-hmi","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1615587293","url":"/dashboard/ug2-xmi-hmi/tf-testaccdatadogdashboardquerytableimport-local-1615587293","created_at":"2021-03-12T22:14:56.248937+00:00","modified_at":"2021-03-12T22:14:56.248937+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":1681054268768082},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":6536435680005876}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"qv3-6i4-7ds","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1623092652","url":"/dashboard/qv3-6i4-7ds/tf-testaccdatadogdashboardquerytableimport-local-1623092652","created_at":"2021-06-07T19:04:31.700610+00:00","modified_at":"2021-06-07T19:04:31.700610+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":2241355490747718},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":473281378342543}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:59 GMT + - Mon, 07 Jun 2021 19:04:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - 2328yjLSqI4XmR1pVqrPRR/SFcQsbafjEpPmZx7/3PfxUK1nJQQsX+wrMelyVyj+ X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/ug2-xmi-hmi + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/qv3-6i4-7ds method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"ug2-xmi-hmi","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1615587293","url":"/dashboard/ug2-xmi-hmi/tf-testaccdatadogdashboardquerytableimport-local-1615587293","created_at":"2021-03-12T22:14:56.248937+00:00","modified_at":"2021-03-12T22:14:56.248937+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":1681054268768082},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":6536435680005876}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"qv3-6i4-7ds","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1623092652","url":"/dashboard/qv3-6i4-7ds/tf-testaccdatadogdashboardquerytableimport-local-1623092652","created_at":"2021-06-07T19:04:31.700610+00:00","modified_at":"2021-06-07T19:04:31.700610+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":2241355490747718},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":473281378342543}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:00 GMT + - Mon, 07 Jun 2021 19:04:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/ug2-xmi-hmi + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/qv3-6i4-7ds method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"ug2-xmi-hmi","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1615587293","url":"/dashboard/ug2-xmi-hmi/tf-testaccdatadogdashboardquerytableimport-local-1615587293","created_at":"2021-03-12T22:14:56.248937+00:00","modified_at":"2021-03-12T22:14:56.248937+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":1681054268768082},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":6536435680005876}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"qv3-6i4-7ds","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1623092652","url":"/dashboard/qv3-6i4-7ds/tf-testaccdatadogdashboardquerytableimport-local-1623092652","created_at":"2021-06-07T19:04:31.700610+00:00","modified_at":"2021-06-07T19:04:31.700610+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":2241355490747718},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":473281378342543}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:01 GMT + - Mon, 07 Jun 2021 19:04:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 + - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/ug2-xmi-hmi + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/qv3-6i4-7ds method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"ug2-xmi-hmi","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1615587293","url":"/dashboard/ug2-xmi-hmi/tf-testaccdatadogdashboardquerytableimport-local-1615587293","created_at":"2021-03-12T22:14:56.248937+00:00","modified_at":"2021-03-12T22:14:56.248937+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":1681054268768082},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":6536435680005876}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"qv3-6i4-7ds","title":"tf-TestAccDatadogDashboardQueryTable_import-local-1623092652","url":"/dashboard/qv3-6i4-7ds/tf-testaccdatadogdashboardquerytableimport-local-1623092652","created_at":"2021-06-07T19:04:31.700610+00:00","modified_at":"2021-06-07T19:04:31.700610+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"system.cpu.user, system.load.1","title_align":"right","has_search_bar":"auto","time":{"live_span":"1d"},"requests":[{"aggregator":"max","cell_display_mode":["number"],"conditional_formats":[{"palette":"white_on_green","hide_value":false,"value":90,"comparator":"<"},{"palette":"white_on_red","hide_value":false,"value":90,"comparator":">="}],"q":"avg:system.cpu.user{account:prod} by {service, team}","alias":"cpu user","limit":25,"order":"desc"},{"q":"avg:system.load.1{*} by {service, team}","aggregator":"last","cell_display_mode":["number"],"conditional_formats":[{"palette":"custom_bg","hide_value":false,"value":50,"comparator":">"}],"alias":"system load"}],"type":"query_table"},"id":2241355490747718},{"definition":{"requests":[{"apm_stats_query":{"primary_tag":"tag:*","row_type":"resource","name":"name","service":"service","env":"env"}}],"type":"query_table","has_search_bar":"never"},"id":473281378342543}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:03 GMT + - Mon, 07 Jun 2021 19:04:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/ug2-xmi-hmi + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/qv3-6i4-7ds method: DELETE response: - body: '{"deleted_dashboard_id":"ug2-xmi-hmi"}' + body: '{"deleted_dashboard_id":"qv3-6i4-7ds"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:03 GMT + - Mon, 07 Jun 2021 19:05:01 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/ug2-xmi-hmi + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/qv3-6i4-7ds method: GET response: - body: '{"errors": ["Dashboard with ID ug2-xmi-hmi not found"]}' + body: '{"errors": ["Dashboard with ID qv3-6i4-7ds not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:04 GMT + - Mon, 07 Jun 2021 19:05:01 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue.freeze index 3dd504f0b..81c105d45 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue.freeze @@ -1 +1 @@ -2021-03-12T17:14:52.02421-05:00 \ No newline at end of file +2021-06-07T15:06:00.58398-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue.yaml index 788320e7f..9d564408a 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryValue-local-1615587292","widgets":[{"definition":{"autoscale":true,"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"custom_unit":"Gib","precision":3,"requests":[{"aggregator":"max","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_red","value":9},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_green","value":9}],"q":"avg:system.mem.free{account:prod}"}],"time":{"live_span":"1h"},"title":"Avg of system.mem.free over account:prod","title_align":"center","title_size":"16","type":"query_value"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryValue-local-1623092760","widgets":[{"definition":{"autoscale":true,"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"custom_unit":"Gib","precision":3,"requests":[{"aggregator":"max","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_red","value":9},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_green","value":9}],"q":"avg:system.mem.free{account:prod}"}],"time":{"live_span":"1h"},"title":"Avg of system.mem.free over account:prod","title_align":"center","title_size":"16","type":"query_value"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"rhp-n3v-8dg","title":"tf-TestAccDatadogDashboardQueryValue-local-1615587292","url":"/dashboard/rhp-n3v-8dg/tf-testaccdatadogdashboardqueryvalue-local-1615587292","created_at":"2021-03-12T22:14:54.849480+00:00","modified_at":"2021-03-12T22:14:54.849480+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":5241330262550938}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"ayw-vwt-w59","title":"tf-TestAccDatadogDashboardQueryValue-local-1623092760","url":"/dashboard/ayw-vwt-w59/tf-testaccdatadogdashboardqueryvalue-local-1623092760","created_at":"2021-06-07T19:06:24.311587+00:00","modified_at":"2021-06-07T19:06:24.311587+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":3939350314492080}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:57 GMT + - Mon, 07 Jun 2021 19:06:25 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I + - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rhp-n3v-8dg + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/ayw-vwt-w59 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"rhp-n3v-8dg","title":"tf-TestAccDatadogDashboardQueryValue-local-1615587292","url":"/dashboard/rhp-n3v-8dg/tf-testaccdatadogdashboardqueryvalue-local-1615587292","created_at":"2021-03-12T22:14:54.849480+00:00","modified_at":"2021-03-12T22:14:54.849480+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":5241330262550938}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"ayw-vwt-w59","title":"tf-TestAccDatadogDashboardQueryValue-local-1623092760","url":"/dashboard/ayw-vwt-w59/tf-testaccdatadogdashboardqueryvalue-local-1623092760","created_at":"2021-06-07T19:06:24.311587+00:00","modified_at":"2021-06-07T19:06:24.311587+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":3939350314492080}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:57 GMT + - Mon, 07 Jun 2021 19:06:25 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rhp-n3v-8dg + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/ayw-vwt-w59 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"rhp-n3v-8dg","title":"tf-TestAccDatadogDashboardQueryValue-local-1615587292","url":"/dashboard/rhp-n3v-8dg/tf-testaccdatadogdashboardqueryvalue-local-1615587292","created_at":"2021-03-12T22:14:54.849480+00:00","modified_at":"2021-03-12T22:14:54.849480+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":5241330262550938}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"ayw-vwt-w59","title":"tf-TestAccDatadogDashboardQueryValue-local-1623092760","url":"/dashboard/ayw-vwt-w59/tf-testaccdatadogdashboardqueryvalue-local-1623092760","created_at":"2021-06-07T19:06:24.311587+00:00","modified_at":"2021-06-07T19:06:24.311587+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":3939350314492080}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:57 GMT + - Mon, 07 Jun 2021 19:06:28 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG + - S1wfaMZOKGT/IoMw6fqAwAwGWo2vQ44sjF3YzuETnQfxZO2T5eJbs0aX3UKb9Dwu X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rhp-n3v-8dg + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/ayw-vwt-w59 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"rhp-n3v-8dg","title":"tf-TestAccDatadogDashboardQueryValue-local-1615587292","url":"/dashboard/rhp-n3v-8dg/tf-testaccdatadogdashboardqueryvalue-local-1615587292","created_at":"2021-03-12T22:14:54.849480+00:00","modified_at":"2021-03-12T22:14:54.849480+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":5241330262550938}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"ayw-vwt-w59","title":"tf-TestAccDatadogDashboardQueryValue-local-1623092760","url":"/dashboard/ayw-vwt-w59/tf-testaccdatadogdashboardqueryvalue-local-1623092760","created_at":"2021-06-07T19:06:24.311587+00:00","modified_at":"2021-06-07T19:06:24.311587+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":3939350314492080}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:58 GMT + - Mon, 07 Jun 2021 19:06:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt + - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rhp-n3v-8dg + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/ayw-vwt-w59 method: DELETE response: - body: '{"deleted_dashboard_id":"rhp-n3v-8dg"}' + body: '{"deleted_dashboard_id":"ayw-vwt-w59"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:00 GMT + - Mon, 07 Jun 2021 19:06:51 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 + - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/rhp-n3v-8dg + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/ayw-vwt-w59 method: GET response: - body: '{"errors": ["Dashboard with ID rhp-n3v-8dg not found"]}' + body: '{"errors": ["Dashboard with ID ayw-vwt-w59 not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:00 GMT + - Mon, 07 Jun 2021 19:06:51 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula.freeze index 5c128e2bf..7cb7a47db 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula.freeze @@ -1 +1 @@ -2021-02-25T18:39:08.086427-05:00 \ No newline at end of file +2021-06-07T15:06:00.590804-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula.yaml index 7754b3d31..57fe6bcd7 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1614296348","widgets":[{"definition":{"autoscale":false,"precision":0,"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"type":"query_value"}},{"definition":{"autoscale":false,"precision":0,"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"type":"query_value"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1623092760","widgets":[{"definition":{"autoscale":false,"precision":0,"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"type":"query_value"}},{"definition":{"autoscale":false,"precision":0,"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"type":"query_value"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6gt-3rp-fj2","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1614296348","url":"/dashboard/6gt-3rp-fj2/tf-testaccdatadogdashboardqueryvalueformula-local-1614296348","created_at":"2021-02-25T23:39:08.959260+00:00","modified_at":"2021-02-25T23:39:08.959260+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":6851875718636234},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":6640188580202253}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r2g-ydh-vu5","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1623092760","url":"/dashboard/r2g-ydh-vu5/tf-testaccdatadogdashboardqueryvalueformula-local-1623092760","created_at":"2021-06-07T19:06:23.574039+00:00","modified_at":"2021-06-07T19:06:23.574039+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3468322949739745},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":561958438974452}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:12 GMT + - Mon, 07 Jun 2021 19:06:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/6gt-3rp-fj2 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/r2g-ydh-vu5 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6gt-3rp-fj2","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1614296348","url":"/dashboard/6gt-3rp-fj2/tf-testaccdatadogdashboardqueryvalueformula-local-1614296348","created_at":"2021-02-25T23:39:08.959260+00:00","modified_at":"2021-02-25T23:39:08.959260+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":6851875718636234},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":6640188580202253}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r2g-ydh-vu5","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1623092760","url":"/dashboard/r2g-ydh-vu5/tf-testaccdatadogdashboardqueryvalueformula-local-1623092760","created_at":"2021-06-07T19:06:23.574039+00:00","modified_at":"2021-06-07T19:06:23.574039+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3468322949739745},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":561958438974452}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:12 GMT + - Mon, 07 Jun 2021 19:06:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,51 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX - X-Dd-Version: - - "35.3986175" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/6gt-3rp-fj2 - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6gt-3rp-fj2","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1614296348","url":"/dashboard/6gt-3rp-fj2/tf-testaccdatadogdashboardqueryvalueformula-local-1614296348","created_at":"2021-02-25T23:39:08.959260+00:00","modified_at":"2021-02-25T23:39:08.959260+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":6851875718636234},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":6640188580202253}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Thu, 25 Feb 2021 23:39:12 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH + - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/6gt-3rp-fj2 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/r2g-ydh-vu5 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6gt-3rp-fj2","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1614296348","url":"/dashboard/6gt-3rp-fj2/tf-testaccdatadogdashboardqueryvalueformula-local-1614296348","created_at":"2021-02-25T23:39:08.959260+00:00","modified_at":"2021-02-25T23:39:08.959260+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":6851875718636234},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":6640188580202253}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r2g-ydh-vu5","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1623092760","url":"/dashboard/r2g-ydh-vu5/tf-testaccdatadogdashboardqueryvalueformula-local-1623092760","created_at":"2021-06-07T19:06:23.574039+00:00","modified_at":"2021-06-07T19:06:23.574039+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3468322949739745},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":561958438974452}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:13 GMT + - Mon, 07 Jun 2021 19:06:27 GMT Pragma: - no-cache Strict-Transport-Security: @@ -166,7 +124,7 @@ interactions: X-Dd-Debug: - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/6gt-3rp-fj2 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/r2g-ydh-vu5 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"6gt-3rp-fj2","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1614296348","url":"/dashboard/6gt-3rp-fj2/tf-testaccdatadogdashboardqueryvalueformula-local-1614296348","created_at":"2021-02-25T23:39:08.959260+00:00","modified_at":"2021-02-25T23:39:08.959260+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":6851875718636234},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":6640188580202253}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r2g-ydh-vu5","title":"tf-TestAccDatadogDashboardQueryValueFormula-local-1623092760","url":"/dashboard/r2g-ydh-vu5/tf-testaccdatadogdashboardqueryvalueformula-local-1623092760","created_at":"2021-06-07T19:06:23.574039+00:00","modified_at":"2021-06-07T19:06:23.574039+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3468322949739745},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":561958438974452}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -196,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:13 GMT + - Mon, 07 Jun 2021 19:06:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH + - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/6gt-3rp-fj2 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/r2g-ydh-vu5 method: DELETE response: - body: '{"deleted_dashboard_id":"6gt-3rp-fj2"}' + body: '{"deleted_dashboard_id":"r2g-ydh-vu5"}' headers: Cache-Control: - no-cache @@ -238,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:13 GMT + - Mon, 07 Jun 2021 19:06:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -265,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/6gt-3rp-fj2 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/r2g-ydh-vu5 method: GET response: - body: '{"errors": ["Dashboard with ID 6gt-3rp-fj2 not found"]}' + body: '{"errors": ["Dashboard with ID r2g-ydh-vu5 not found"]}' headers: Cache-Control: - no-cache @@ -280,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:13 GMT + - Mon, 07 Jun 2021 19:06:51 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula_import.freeze index 3f789bf39..6f9edc5e9 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula_import.freeze @@ -1 +1 @@ -2021-02-25T18:39:08.086824-05:00 \ No newline at end of file +2021-06-07T15:06:00.590342-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula_import.yaml index a5f76c46c..766f37855 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValueFormula_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1614296348","widgets":[{"definition":{"autoscale":false,"precision":0,"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"type":"query_value"}},{"definition":{"autoscale":false,"precision":0,"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"type":"query_value"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1623092760","widgets":[{"definition":{"autoscale":false,"precision":0,"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"type":"query_value"}},{"definition":{"autoscale":false,"precision":0,"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"type":"query_value"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7fq-hc7-w8z","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1614296348","url":"/dashboard/7fq-hc7-w8z/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1614296348","created_at":"2021-02-25T23:39:08.962468+00:00","modified_at":"2021-02-25T23:39:08.962468+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3695516588483057},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":35421410005026}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"zh8-exf-kq7","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1623092760","url":"/dashboard/zh8-exf-kq7/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1623092760","created_at":"2021-06-07T19:06:23.814046+00:00","modified_at":"2021-06-07T19:06:23.814046+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":1162891459967107},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":207425878663771}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:12 GMT + - Mon, 07 Jun 2021 19:06:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7fq-hc7-w8z + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zh8-exf-kq7 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7fq-hc7-w8z","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1614296348","url":"/dashboard/7fq-hc7-w8z/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1614296348","created_at":"2021-02-25T23:39:08.962468+00:00","modified_at":"2021-02-25T23:39:08.962468+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3695516588483057},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":35421410005026}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"zh8-exf-kq7","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1623092760","url":"/dashboard/zh8-exf-kq7/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1623092760","created_at":"2021-06-07T19:06:23.814046+00:00","modified_at":"2021-06-07T19:06:23.814046+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":1162891459967107},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":207425878663771}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:12 GMT + - Mon, 07 Jun 2021 19:06:25 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN + - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7fq-hc7-w8z + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zh8-exf-kq7 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7fq-hc7-w8z","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1614296348","url":"/dashboard/7fq-hc7-w8z/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1614296348","created_at":"2021-02-25T23:39:08.962468+00:00","modified_at":"2021-02-25T23:39:08.962468+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3695516588483057},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":35421410005026}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"zh8-exf-kq7","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1623092760","url":"/dashboard/zh8-exf-kq7/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1623092760","created_at":"2021-06-07T19:06:23.814046+00:00","modified_at":"2021-06-07T19:06:23.814046+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":1162891459967107},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":207425878663771}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:13 GMT + - Mon, 07 Jun 2021 19:06:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -124,7 +124,7 @@ interactions: X-Dd-Debug: - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7fq-hc7-w8z + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zh8-exf-kq7 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7fq-hc7-w8z","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1614296348","url":"/dashboard/7fq-hc7-w8z/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1614296348","created_at":"2021-02-25T23:39:08.962468+00:00","modified_at":"2021-02-25T23:39:08.962468+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3695516588483057},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":35421410005026}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"zh8-exf-kq7","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1623092760","url":"/dashboard/zh8-exf-kq7/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1623092760","created_at":"2021-06-07T19:06:23.814046+00:00","modified_at":"2021-06-07T19:06:23.814046+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":1162891459967107},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":207425878663771}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:13 GMT + - Mon, 07 Jun 2021 19:06:54 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,93 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc - X-Dd-Version: - - "35.3986175" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7fq-hc7-w8z - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7fq-hc7-w8z","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1614296348","url":"/dashboard/7fq-hc7-w8z/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1614296348","created_at":"2021-02-25T23:39:08.962468+00:00","modified_at":"2021-02-25T23:39:08.962468+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3695516588483057},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":35421410005026}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Thu, 25 Feb 2021 23:39:13 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - S1wfaMZOKGT/IoMw6fqAwAwGWo2vQ44sjF3YzuETnQfxZO2T5eJbs0aX3UKb9Dwu - X-Dd-Version: - - "35.3986175" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7fq-hc7-w8z - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7fq-hc7-w8z","title":"tf-TestAccDatadogDashboardQueryValueFormula_import-local-1614296348","url":"/dashboard/7fq-hc7-w8z/tf-testaccdatadogdashboardqueryvalueformulaimport-local-1614296348","created_at":"2021-02-25T23:39:08.962468+00:00","modified_at":"2021-02-25T23:39:08.962468+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"autoscale":false,"precision":0},"id":3695516588483057},{"definition":{"type":"query_value","requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"autoscale":false,"precision":0},"id":35421410005026}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Thu, 25 Feb 2021 23:39:13 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH + - JpIJLwIH2nFlZOC+u71rq7aAOL43MLZN3MUsL+gpYHdZz5QLUOG8Jysf8kVK6tPU X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -265,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7fq-hc7-w8z + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zh8-exf-kq7 method: DELETE response: - body: '{"deleted_dashboard_id":"7fq-hc7-w8z"}' + body: '{"deleted_dashboard_id":"zh8-exf-kq7"}' headers: Cache-Control: - no-cache @@ -280,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:13 GMT + - Mon, 07 Jun 2021 19:06:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JpIJLwIH2nFlZOC+u71rq7aAOL43MLZN3MUsL+gpYHdZz5QLUOG8Jysf8kVK6tPU + - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -307,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7fq-hc7-w8z + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zh8-exf-kq7 method: GET response: - body: '{"errors": ["Dashboard with ID 7fq-hc7-w8z not found"]}' + body: '{"errors": ["Dashboard with ID zh8-exf-kq7 not found"]}' headers: Cache-Control: - no-cache @@ -322,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Feb 2021 23:39:14 GMT + - Mon, 07 Jun 2021 19:07:00 GMT Pragma: - no-cache Strict-Transport-Security: @@ -332,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3986175" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue_import.freeze index 9f5765dcb..0b0688662 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue_import.freeze @@ -1 +1 @@ -2021-03-12T17:14:51.096924-05:00 \ No newline at end of file +2021-06-07T15:06:00.592866-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue_import.yaml index 08cc3fb9a..e80e5fb1b 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardQueryValue_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryValue_import-local-1615587291","widgets":[{"definition":{"autoscale":true,"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"custom_unit":"Gib","precision":3,"requests":[{"aggregator":"max","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_red","value":9},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_green","value":9}],"q":"avg:system.mem.free{account:prod}"}],"time":{"live_span":"1h"},"title":"Avg of system.mem.free over account:prod","title_align":"center","title_size":"16","type":"query_value"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardQueryValue_import-local-1623092760","widgets":[{"definition":{"autoscale":true,"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"custom_unit":"Gib","precision":3,"requests":[{"aggregator":"max","conditional_formats":[{"comparator":"\u003c","hide_value":false,"palette":"white_on_red","value":9},{"comparator":"\u003e=","hide_value":false,"palette":"white_on_green","value":9}],"q":"avg:system.mem.free{account:prod}"}],"time":{"live_span":"1h"},"title":"Avg of system.mem.free over account:prod","title_align":"center","title_size":"16","type":"query_value"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"yiq-8j2-q62","title":"tf-TestAccDatadogDashboardQueryValue_import-local-1615587291","url":"/dashboard/yiq-8j2-q62/tf-testaccdatadogdashboardqueryvalueimport-local-1615587291","created_at":"2021-03-12T22:14:53.884730+00:00","modified_at":"2021-03-12T22:14:53.884730+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8591753428610054}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"mg4-4z4-f2h","title":"tf-TestAccDatadogDashboardQueryValue_import-local-1623092760","url":"/dashboard/mg4-4z4-f2h/tf-testaccdatadogdashboardqueryvalueimport-local-1623092760","created_at":"2021-06-07T19:06:23.783463+00:00","modified_at":"2021-06-07T19:06:23.783463+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":5079986295067332}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:56 GMT + - Mon, 07 Jun 2021 19:06:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/yiq-8j2-q62 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/mg4-4z4-f2h method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"yiq-8j2-q62","title":"tf-TestAccDatadogDashboardQueryValue_import-local-1615587291","url":"/dashboard/yiq-8j2-q62/tf-testaccdatadogdashboardqueryvalueimport-local-1615587291","created_at":"2021-03-12T22:14:53.884730+00:00","modified_at":"2021-03-12T22:14:53.884730+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8591753428610054}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"mg4-4z4-f2h","title":"tf-TestAccDatadogDashboardQueryValue_import-local-1623092760","url":"/dashboard/mg4-4z4-f2h/tf-testaccdatadogdashboardqueryvalueimport-local-1623092760","created_at":"2021-06-07T19:06:23.783463+00:00","modified_at":"2021-06-07T19:06:23.783463+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":5079986295067332}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:57 GMT + - Mon, 07 Jun 2021 19:06:25 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/yiq-8j2-q62 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/mg4-4z4-f2h method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"yiq-8j2-q62","title":"tf-TestAccDatadogDashboardQueryValue_import-local-1615587291","url":"/dashboard/yiq-8j2-q62/tf-testaccdatadogdashboardqueryvalueimport-local-1615587291","created_at":"2021-03-12T22:14:53.884730+00:00","modified_at":"2021-03-12T22:14:53.884730+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8591753428610054}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"mg4-4z4-f2h","title":"tf-TestAccDatadogDashboardQueryValue_import-local-1623092760","url":"/dashboard/mg4-4z4-f2h/tf-testaccdatadogdashboardqueryvalueimport-local-1623092760","created_at":"2021-06-07T19:06:23.783463+00:00","modified_at":"2021-06-07T19:06:23.783463+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":5079986295067332}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:58 GMT + - Mon, 07 Jun 2021 19:06:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/yiq-8j2-q62 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/mg4-4z4-f2h method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"yiq-8j2-q62","title":"tf-TestAccDatadogDashboardQueryValue_import-local-1615587291","url":"/dashboard/yiq-8j2-q62/tf-testaccdatadogdashboardqueryvalueimport-local-1615587291","created_at":"2021-03-12T22:14:53.884730+00:00","modified_at":"2021-03-12T22:14:53.884730+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":8591753428610054}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"mg4-4z4-f2h","title":"tf-TestAccDatadogDashboardQueryValue_import-local-1623092760","url":"/dashboard/mg4-4z4-f2h/tf-testaccdatadogdashboardqueryvalueimport-local-1623092760","created_at":"2021-06-07T19:06:23.783463+00:00","modified_at":"2021-06-07T19:06:23.783463+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"autoscale":true,"title":"Avg of system.mem.free over account:prod","title_align":"center","custom_unit":"Gib","precision":3,"time":{"live_span":"1h"},"title_size":"16","requests":[{"q":"avg:system.mem.free{account:prod}","aggregator":"max","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":9,"comparator":"<"},{"palette":"white_on_green","hide_value":false,"value":9,"comparator":">="}]}],"type":"query_value"},"id":5079986295067332}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:59 GMT + - Mon, 07 Jun 2021 19:06:54 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/yiq-8j2-q62 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/mg4-4z4-f2h method: DELETE response: - body: '{"deleted_dashboard_id":"yiq-8j2-q62"}' + body: '{"deleted_dashboard_id":"mg4-4z4-f2h"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:00 GMT + - Mon, 07 Jun 2021 19:06:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 + - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/yiq-8j2-q62 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/mg4-4z4-f2h method: GET response: - body: '{"errors": ["Dashboard with ID yiq-8j2-q62 not found"]}' + body: '{"errors": ["Dashboard with ID mg4-4z4-f2h not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:15:00 GMT + - Mon, 07 Jun 2021 19:06:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot.freeze index cfd3d47da..cf895f800 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot.freeze @@ -1 +1 @@ -2021-03-12T17:14:48.688211-05:00 \ No newline at end of file +2021-06-07T15:17:33.270492-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot.yaml index 64132edaa..e31430653 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardScatterplot-local-1615587288","widgets":[{"definition":{"color_by_groups":["app"],"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":{"x":{"aggregator":"avg","q":"avg:system.cpu.user{account:prod} by {service, team, app}"},"y":{"aggregator":"avg","q":"avg:system.mem.used{env:prod} by {service, team, app}"}},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","title_align":"right","title_size":"16","type":"scatterplot","xaxis":{"include_zero":false,"label":"cpu (%)","max":"100","min":"0","scale":"log"},"yaxis":{"include_zero":false,"label":"mem (Gib)","min":"1","scale":"log"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardScatterplot-local-1623093453","widgets":[{"definition":{"color_by_groups":["app"],"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"requests":{"x":{"aggregator":"avg","q":"avg:system.cpu.user{account:prod} by {service, team, app}"},"y":{"aggregator":"avg","q":"avg:system.mem.used{env:prod} by {service, team, app}"}},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","title_align":"right","title_size":"16","type":"scatterplot","xaxis":{"include_zero":false,"label":"cpu (%)","max":"100","min":"0","scale":"log"},"yaxis":{"include_zero":false,"label":"mem (Gib)","min":"1","scale":"log"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"m89-wx4-dqc","title":"tf-TestAccDatadogDashboardScatterplot-local-1615587288","url":"/dashboard/m89-wx4-dqc/tf-testaccdatadogdashboardscatterplot-local-1615587288","created_at":"2021-03-12T22:14:51.954759+00:00","modified_at":"2021-03-12T22:14:51.954759+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":6760094181408537}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"5q6-8vk-wyy","title":"tf-TestAccDatadogDashboardScatterplot-local-1623093453","url":"/dashboard/5q6-8vk-wyy/tf-testaccdatadogdashboardscatterplot-local-1623093453","created_at":"2021-06-07T19:17:48.615393+00:00","modified_at":"2021-06-07T19:17:48.615393+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":1131581165332985}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:55 GMT + - Mon, 07 Jun 2021 19:17:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - vdJ3/nHEY1ioXQ6pQrBVvsQK1s4yyc+wufBMPSoXql71qZVuP/xMdtNo6DafhOAk X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/m89-wx4-dqc + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/5q6-8vk-wyy method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"m89-wx4-dqc","title":"tf-TestAccDatadogDashboardScatterplot-local-1615587288","url":"/dashboard/m89-wx4-dqc/tf-testaccdatadogdashboardscatterplot-local-1615587288","created_at":"2021-03-12T22:14:51.954759+00:00","modified_at":"2021-03-12T22:14:51.954759+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":6760094181408537}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"5q6-8vk-wyy","title":"tf-TestAccDatadogDashboardScatterplot-local-1623093453","url":"/dashboard/5q6-8vk-wyy/tf-testaccdatadogdashboardscatterplot-local-1623093453","created_at":"2021-06-07T19:17:48.615393+00:00","modified_at":"2021-06-07T19:17:48.615393+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":1131581165332985}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:55 GMT + - Mon, 07 Jun 2021 19:18:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX + - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/m89-wx4-dqc + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/5q6-8vk-wyy method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"m89-wx4-dqc","title":"tf-TestAccDatadogDashboardScatterplot-local-1615587288","url":"/dashboard/m89-wx4-dqc/tf-testaccdatadogdashboardscatterplot-local-1615587288","created_at":"2021-03-12T22:14:51.954759+00:00","modified_at":"2021-03-12T22:14:51.954759+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":6760094181408537}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"5q6-8vk-wyy","title":"tf-TestAccDatadogDashboardScatterplot-local-1623093453","url":"/dashboard/5q6-8vk-wyy/tf-testaccdatadogdashboardscatterplot-local-1623093453","created_at":"2021-06-07T19:17:48.615393+00:00","modified_at":"2021-06-07T19:17:48.615393+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":1131581165332985}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:55 GMT + - Mon, 07 Jun 2021 19:18:21 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/m89-wx4-dqc + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/5q6-8vk-wyy method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"m89-wx4-dqc","title":"tf-TestAccDatadogDashboardScatterplot-local-1615587288","url":"/dashboard/m89-wx4-dqc/tf-testaccdatadogdashboardscatterplot-local-1615587288","created_at":"2021-03-12T22:14:51.954759+00:00","modified_at":"2021-03-12T22:14:51.954759+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":6760094181408537}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"5q6-8vk-wyy","title":"tf-TestAccDatadogDashboardScatterplot-local-1623093453","url":"/dashboard/5q6-8vk-wyy/tf-testaccdatadogdashboardscatterplot-local-1623093453","created_at":"2021-06-07T19:17:48.615393+00:00","modified_at":"2021-06-07T19:17:48.615393+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":1131581165332985}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:56 GMT + - Mon, 07 Jun 2021 19:18:28 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2328yjLSqI4XmR1pVqrPRR/SFcQsbafjEpPmZx7/3PfxUK1nJQQsX+wrMelyVyj+ + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/m89-wx4-dqc + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/5q6-8vk-wyy method: DELETE response: - body: '{"deleted_dashboard_id":"m89-wx4-dqc"}' + body: '{"deleted_dashboard_id":"5q6-8vk-wyy"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:58 GMT + - Mon, 07 Jun 2021 19:18:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX + - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/m89-wx4-dqc + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/5q6-8vk-wyy method: GET response: - body: '{"errors": ["Dashboard with ID m89-wx4-dqc not found"]}' + body: '{"errors": ["Dashboard with ID 5q6-8vk-wyy not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:58 GMT + - Mon, 07 Jun 2021 19:18:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot_import.freeze index 69da99bfd..f74481143 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot_import.freeze @@ -1 +1 @@ -2021-03-12T17:14:32.906157-05:00 \ No newline at end of file +2021-06-07T15:17:33.270445-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot_import.yaml index ed898aacc..76885acb0 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardScatterplot_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardScatterplot_import-local-1615587272","widgets":[{"definition":{"color_by_groups":["app"],"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":{"x":{"aggregator":"avg","q":"avg:system.cpu.user{account:prod} by {service, team, app}"},"y":{"aggregator":"avg","q":"avg:system.mem.used{env:prod} by {service, team, app}"}},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","title_align":"right","title_size":"16","type":"scatterplot","xaxis":{"include_zero":false,"label":"cpu (%)","max":"100","min":"0","scale":"log"},"yaxis":{"include_zero":false,"label":"mem (Gib)","min":"1","scale":"log"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardScatterplot_import-local-1623093453","widgets":[{"definition":{"color_by_groups":["app"],"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":{"x":{"aggregator":"avg","q":"avg:system.cpu.user{account:prod} by {service, team, app}"},"y":{"aggregator":"avg","q":"avg:system.mem.used{env:prod} by {service, team, app}"}},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","title_align":"right","title_size":"16","type":"scatterplot","xaxis":{"include_zero":false,"label":"cpu (%)","max":"100","min":"0","scale":"log"},"yaxis":{"include_zero":false,"label":"mem (Gib)","min":"1","scale":"log"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r3d-h7p-dx3","title":"tf-TestAccDatadogDashboardScatterplot_import-local-1615587272","url":"/dashboard/r3d-h7p-dx3/tf-testaccdatadogdashboardscatterplotimport-local-1615587272","created_at":"2021-03-12T22:14:36.302186+00:00","modified_at":"2021-03-12T22:14:36.302186+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":1335930968145344}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"bfm-yn2-y68","title":"tf-TestAccDatadogDashboardScatterplot_import-local-1623093453","url":"/dashboard/bfm-yn2-y68/tf-testaccdatadogdashboardscatterplotimport-local-1623093453","created_at":"2021-06-07T19:17:48.614428+00:00","modified_at":"2021-06-07T19:17:48.614428+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7879867335288477}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:38 GMT + - Mon, 07 Jun 2021 19:17:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU + - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/r3d-h7p-dx3 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/bfm-yn2-y68 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r3d-h7p-dx3","title":"tf-TestAccDatadogDashboardScatterplot_import-local-1615587272","url":"/dashboard/r3d-h7p-dx3/tf-testaccdatadogdashboardscatterplotimport-local-1615587272","created_at":"2021-03-12T22:14:36.302186+00:00","modified_at":"2021-03-12T22:14:36.302186+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":1335930968145344}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"bfm-yn2-y68","title":"tf-TestAccDatadogDashboardScatterplot_import-local-1623093453","url":"/dashboard/bfm-yn2-y68/tf-testaccdatadogdashboardscatterplotimport-local-1623093453","created_at":"2021-06-07T19:17:48.614428+00:00","modified_at":"2021-06-07T19:17:48.614428+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7879867335288477}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:39 GMT + - Mon, 07 Jun 2021 19:18:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JpIJLwIH2nFlZOC+u71rq7aAOL43MLZN3MUsL+gpYHdZz5QLUOG8Jysf8kVK6tPU + - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/r3d-h7p-dx3 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/bfm-yn2-y68 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r3d-h7p-dx3","title":"tf-TestAccDatadogDashboardScatterplot_import-local-1615587272","url":"/dashboard/r3d-h7p-dx3/tf-testaccdatadogdashboardscatterplotimport-local-1615587272","created_at":"2021-03-12T22:14:36.302186+00:00","modified_at":"2021-03-12T22:14:36.302186+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":1335930968145344}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"bfm-yn2-y68","title":"tf-TestAccDatadogDashboardScatterplot_import-local-1623093453","url":"/dashboard/bfm-yn2-y68/tf-testaccdatadogdashboardscatterplotimport-local-1623093453","created_at":"2021-06-07T19:17:48.614428+00:00","modified_at":"2021-06-07T19:17:48.614428+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7879867335288477}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:40 GMT + - Mon, 07 Jun 2021 19:18:28 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I + - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/r3d-h7p-dx3 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/bfm-yn2-y68 method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r3d-h7p-dx3","title":"tf-TestAccDatadogDashboardScatterplot_import-local-1615587272","url":"/dashboard/r3d-h7p-dx3/tf-testaccdatadogdashboardscatterplotimport-local-1615587272","created_at":"2021-03-12T22:14:36.302186+00:00","modified_at":"2021-03-12T22:14:36.302186+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":1335930968145344}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"bfm-yn2-y68","title":"tf-TestAccDatadogDashboardScatterplot_import-local-1623093453","url":"/dashboard/bfm-yn2-y68/tf-testaccdatadogdashboardscatterplotimport-local-1623093453","created_at":"2021-06-07T19:17:48.614428+00:00","modified_at":"2021-06-07T19:17:48.614428+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","yaxis":{"include_zero":false,"scale":"log","min":"1","label":"mem (Gib)"},"title_align":"right","color_by_groups":["app"],"xaxis":{"include_zero":false,"max":"100","min":"0","scale":"log","label":"cpu (%)"},"time":{"live_span":"15m"},"title":"system.mem.used and system.cpu.user by service,team,app colored by app","requests":{"y":{"q":"avg:system.mem.used{env:prod} by {service, team, app}","aggregator":"avg"},"x":{"q":"avg:system.cpu.user{account:prod} by {service, team, app}","aggregator":"avg"}},"type":"scatterplot"},"id":7879867335288477}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:41 GMT + - Mon, 07 Jun 2021 19:18:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/r3d-h7p-dx3 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/bfm-yn2-y68 method: DELETE response: - body: '{"deleted_dashboard_id":"r3d-h7p-dx3"}' + body: '{"deleted_dashboard_id":"bfm-yn2-y68"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:42 GMT + - Mon, 07 Jun 2021 19:18:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q + - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/r3d-h7p-dx3 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/bfm-yn2-y68 method: GET response: - body: '{"errors": ["Dashboard with ID r3d-h7p-dx3 not found"]}' + body: '{"errors": ["Dashboard with ID bfm-yn2-y68 not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:42 GMT + - Mon, 07 Jun 2021 19:18:47 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap.freeze index 2cbc8cf6a..c00c39fa3 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap.freeze @@ -1 +1 @@ -2021-05-19T19:44:34.041111-04:00 \ No newline at end of file +2021-06-07T15:19:48.273896-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap.yaml index b5f9e2653..4c5911fb4 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardServiceMap-local-1621467874","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"filters":["env:prod","datacenter:us1.prod.dog"],"service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","title_size":"16","type":"servicemap"},"layout":{"height":43,"is_column_break":false,"width":32,"x":5,"y":5}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardServiceMap-local-1623093588","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"filters":["env:prod","datacenter:us1.prod.dog"],"service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","title_size":"16","type":"servicemap"},"layout":{"height":43,"is_column_break":false,"width":32,"x":5,"y":5}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"gig-k48-fde","title":"tf-TestAccDatadogDashboardServiceMap-local-1621467874","url":"/dashboard/gig-k48-fde/tf-testaccdatadogdashboardservicemap-local-1621467874","created_at":"2021-05-19T23:44:35.404849+00:00","modified_at":"2021-05-19T23:44:35.404849+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":176557003357431}],"layout_type":"free"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"pfd-jf5-qzi","title":"tf-TestAccDatadogDashboardServiceMap-local-1623093588","url":"/dashboard/pfd-jf5-qzi/tf-testaccdatadogdashboardservicemap-local-1623093588","created_at":"2021-06-07T19:20:04.619244+00:00","modified_at":"2021-06-07T19:20:04.619244+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":8699224010426462}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:44:38 GMT + - Mon, 07 Jun 2021 19:20:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 + - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/gig-k48-fde + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/pfd-jf5-qzi method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"gig-k48-fde","title":"tf-TestAccDatadogDashboardServiceMap-local-1621467874","url":"/dashboard/gig-k48-fde/tf-testaccdatadogdashboardservicemap-local-1621467874","created_at":"2021-05-19T23:44:35.404849+00:00","modified_at":"2021-05-19T23:44:35.404849+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":176557003357431}],"layout_type":"free"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"pfd-jf5-qzi","title":"tf-TestAccDatadogDashboardServiceMap-local-1623093588","url":"/dashboard/pfd-jf5-qzi/tf-testaccdatadogdashboardservicemap-local-1623093588","created_at":"2021-06-07T19:20:04.619244+00:00","modified_at":"2021-06-07T19:20:04.619244+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":8699224010426462}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:44:38 GMT + - Mon, 07 Jun 2021 19:20:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a + - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/gig-k48-fde + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/pfd-jf5-qzi method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"gig-k48-fde","title":"tf-TestAccDatadogDashboardServiceMap-local-1621467874","url":"/dashboard/gig-k48-fde/tf-testaccdatadogdashboardservicemap-local-1621467874","created_at":"2021-05-19T23:44:35.404849+00:00","modified_at":"2021-05-19T23:44:35.404849+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":176557003357431}],"layout_type":"free"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"pfd-jf5-qzi","title":"tf-TestAccDatadogDashboardServiceMap-local-1623093588","url":"/dashboard/pfd-jf5-qzi/tf-testaccdatadogdashboardservicemap-local-1623093588","created_at":"2021-06-07T19:20:04.619244+00:00","modified_at":"2021-06-07T19:20:04.619244+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":8699224010426462}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:44:38 GMT + - Mon, 07 Jun 2021 19:20:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I + - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/gig-k48-fde + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/pfd-jf5-qzi method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"gig-k48-fde","title":"tf-TestAccDatadogDashboardServiceMap-local-1621467874","url":"/dashboard/gig-k48-fde/tf-testaccdatadogdashboardservicemap-local-1621467874","created_at":"2021-05-19T23:44:35.404849+00:00","modified_at":"2021-05-19T23:44:35.404849+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":176557003357431}],"layout_type":"free"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"pfd-jf5-qzi","title":"tf-TestAccDatadogDashboardServiceMap-local-1623093588","url":"/dashboard/pfd-jf5-qzi/tf-testaccdatadogdashboardservicemap-local-1623093588","created_at":"2021-06-07T19:20:04.619244+00:00","modified_at":"2021-06-07T19:20:04.619244+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":8699224010426462}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:44:39 GMT + - Mon, 07 Jun 2021 19:20:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV + - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/gig-k48-fde + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/pfd-jf5-qzi method: DELETE response: - body: '{"deleted_dashboard_id":"gig-k48-fde"}' + body: '{"deleted_dashboard_id":"pfd-jf5-qzi"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:44:40 GMT + - Mon, 07 Jun 2021 19:20:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/gig-k48-fde + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/pfd-jf5-qzi method: GET response: - body: '{"errors": ["Dashboard with ID gig-k48-fde not found"]}' + body: '{"errors": ["Dashboard with ID pfd-jf5-qzi not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:44:40 GMT + - Mon, 07 Jun 2021 19:20:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap_import.freeze index f7bf0d095..0ac19c4a3 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap_import.freeze @@ -1 +1 @@ -2021-05-19T19:45:29.636528-04:00 \ No newline at end of file +2021-06-07T15:19:48.277937-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap_import.yaml index 134eae2c6..eb7df2ad2 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardServiceMap_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardServiceMap_import-local-1621467929","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"filters":["env:prod","datacenter:us1.prod.dog"],"service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","title_size":"16","type":"servicemap"},"layout":{"height":43,"is_column_break":false,"width":32,"x":5,"y":5}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardServiceMap_import-local-1623093588","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"filters":["env:prod","datacenter:us1.prod.dog"],"service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","title_size":"16","type":"servicemap"},"layout":{"height":43,"is_column_break":false,"width":32,"x":5,"y":5}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"mqv-2ic-cbm","title":"tf-TestAccDatadogDashboardServiceMap_import-local-1621467929","url":"/dashboard/mqv-2ic-cbm/tf-testaccdatadogdashboardservicemapimport-local-1621467929","created_at":"2021-05-19T23:45:31.005808+00:00","modified_at":"2021-05-19T23:45:31.005808+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":6521775422701413}],"layout_type":"free"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i6s-jfx-igt","title":"tf-TestAccDatadogDashboardServiceMap_import-local-1623093588","url":"/dashboard/i6s-jfx-igt/tf-testaccdatadogdashboardservicemapimport-local-1623093588","created_at":"2021-06-07T19:20:04.617489+00:00","modified_at":"2021-06-07T19:20:04.617489+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":8731554746901751}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:45:32 GMT + - Mon, 07 Jun 2021 19:20:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/mqv-2ic-cbm + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/i6s-jfx-igt method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"mqv-2ic-cbm","title":"tf-TestAccDatadogDashboardServiceMap_import-local-1621467929","url":"/dashboard/mqv-2ic-cbm/tf-testaccdatadogdashboardservicemapimport-local-1621467929","created_at":"2021-05-19T23:45:31.005808+00:00","modified_at":"2021-05-19T23:45:31.005808+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":6521775422701413}],"layout_type":"free"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i6s-jfx-igt","title":"tf-TestAccDatadogDashboardServiceMap_import-local-1623093588","url":"/dashboard/i6s-jfx-igt/tf-testaccdatadogdashboardservicemapimport-local-1623093588","created_at":"2021-06-07T19:20:04.617489+00:00","modified_at":"2021-06-07T19:20:04.617489+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":8731554746901751}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:45:32 GMT + - Mon, 07 Jun 2021 19:20:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN + - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/mqv-2ic-cbm + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/i6s-jfx-igt method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"mqv-2ic-cbm","title":"tf-TestAccDatadogDashboardServiceMap_import-local-1621467929","url":"/dashboard/mqv-2ic-cbm/tf-testaccdatadogdashboardservicemapimport-local-1621467929","created_at":"2021-05-19T23:45:31.005808+00:00","modified_at":"2021-05-19T23:45:31.005808+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":6521775422701413}],"layout_type":"free"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i6s-jfx-igt","title":"tf-TestAccDatadogDashboardServiceMap_import-local-1623093588","url":"/dashboard/i6s-jfx-igt/tf-testaccdatadogdashboardservicemapimport-local-1623093588","created_at":"2021-06-07T19:20:04.617489+00:00","modified_at":"2021-06-07T19:20:04.617489+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":8731554746901751}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:45:33 GMT + - Mon, 07 Jun 2021 19:20:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/mqv-2ic-cbm + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/i6s-jfx-igt method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"mqv-2ic-cbm","title":"tf-TestAccDatadogDashboardServiceMap_import-local-1621467929","url":"/dashboard/mqv-2ic-cbm/tf-testaccdatadogdashboardservicemapimport-local-1621467929","created_at":"2021-05-19T23:45:31.005808+00:00","modified_at":"2021-05-19T23:45:31.005808+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":6521775422701413}],"layout_type":"free"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i6s-jfx-igt","title":"tf-TestAccDatadogDashboardServiceMap_import-local-1623093588","url":"/dashboard/i6s-jfx-igt/tf-testaccdatadogdashboardservicemapimport-local-1623093588","created_at":"2021-06-07T19:20:04.617489+00:00","modified_at":"2021-06-07T19:20:04.617489+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","service":"master-db","title":"env: prod, datacenter:us1.prod.dog, service: master-db","title_align":"left","filters":["env:prod","datacenter:us1.prod.dog"],"type":"servicemap"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":8731554746901751}],"layout_type":"free"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:45:34 GMT + - Mon, 07 Jun 2021 19:20:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - S1wfaMZOKGT/IoMw6fqAwAwGWo2vQ44sjF3YzuETnQfxZO2T5eJbs0aX3UKb9Dwu + - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/mqv-2ic-cbm + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/i6s-jfx-igt method: DELETE response: - body: '{"deleted_dashboard_id":"mqv-2ic-cbm"}' + body: '{"deleted_dashboard_id":"i6s-jfx-igt"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:45:35 GMT + - Mon, 07 Jun 2021 19:20:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ + - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/mqv-2ic-cbm + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/i6s-jfx-igt method: GET response: - body: '{"errors": ["Dashboard with ID mqv-2ic-cbm not found"]}' + body: '{"errors": ["Dashboard with ID i6s-jfx-igt not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 May 2021 23:45:35 GMT + - Mon, 07 Jun 2021 19:20:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4569410" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries.freeze index 2d64ca865..07f67053f 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries.freeze @@ -1 +1 @@ -2021-04-20T10:47:47.078585-04:00 \ No newline at end of file +2021-06-07T15:23:28.12816-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries.yaml index 678df9652..5da8cd755 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTimeseries-local-1618930067","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_columns":["value","min","max"],"legend_layout":"horizontal","legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","metadata":[{"expression":""}],"on_right_yaxis":true,"q":"avg:system.cpu.user{env:prod} by {app}","style":{"line_type":"solid","line_width":"thin","palette":"dog_classic"}},{"display_type":"line","log_query":{"compute":{"aggregation":"count"},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","search":{"query":""}},"on_right_yaxis":false,"style":{"line_type":"solid","line_width":"normal","palette":"cool"}},{"apm_query":{"compute":{"aggregation":"cardinality","facet":"env","interval":1000},"group_by":[{"facet":"status","limit":10,"sort":{"aggregation":"cardinality","facet":"env","order":"desc"}}],"index":"trace-search","search":{"query":""}},"display_type":"line","on_right_yaxis":true,"style":{"line_type":"dashed","line_width":"thick","palette":"warm"}},{"display_type":"line","on_right_yaxis":true,"process_query":{"filter_by":["account:prod"],"limit":10,"metric":"process.stat.cpu.total_pct"},"style":{"line_type":"solid","line_width":"normal","palette":"purple"}},{"display_type":"area","network_query":{"compute":{"aggregation":"sum","facet":"network.bytes_read"},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""}},"on_right_yaxis":true,"style":{"line_type":"solid","line_width":"normal","palette":"orange"}},{"display_type":"area","on_right_yaxis":true,"rum_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":10},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"avg","facet":"@duration","order":"desc"}}],"index":"*","search":{"query":""}},"style":{"line_type":"solid","line_width":"normal","palette":"grey"}}],"right_yaxis":{"include_zero":false,"max":"599998","min":"1"},"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTimeseries-local-1623093808","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_columns":["value","min","max"],"legend_layout":"horizontal","legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","metadata":[{"expression":""}],"on_right_yaxis":true,"q":"avg:system.cpu.user{env:prod} by {app}","style":{"line_type":"solid","line_width":"thin","palette":"dog_classic"}},{"display_type":"line","log_query":{"compute":{"aggregation":"count"},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","search":{"query":""}},"on_right_yaxis":false,"style":{"line_type":"solid","line_width":"normal","palette":"cool"}},{"apm_query":{"compute":{"aggregation":"cardinality","facet":"env","interval":1000},"group_by":[{"facet":"status","limit":10,"sort":{"aggregation":"cardinality","facet":"env","order":"desc"}}],"index":"trace-search","search":{"query":""}},"display_type":"line","on_right_yaxis":true,"style":{"line_type":"dashed","line_width":"thick","palette":"warm"}},{"display_type":"line","on_right_yaxis":true,"process_query":{"filter_by":["account:prod"],"limit":10,"metric":"process.stat.cpu.total_pct"},"style":{"line_type":"solid","line_width":"normal","palette":"purple"}},{"display_type":"area","network_query":{"compute":{"aggregation":"sum","facet":"network.bytes_read"},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""}},"on_right_yaxis":true,"style":{"line_type":"solid","line_width":"normal","palette":"orange"}},{"display_type":"area","on_right_yaxis":true,"rum_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":10},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"avg","facet":"@duration","order":"desc"}}],"index":"*","search":{"query":""}},"style":{"line_type":"solid","line_width":"normal","palette":"grey"}}],"right_yaxis":{"include_zero":false,"max":"599998","min":"1"},"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7kv-ff8-pv5","title":"tf-TestAccDatadogDashboardTimeseries-local-1618930067","url":"/dashboard/7kv-ff8-pv5/tf-testaccdatadogdashboardtimeseries-local-1618930067","created_at":"2021-04-20T14:47:48.914572+00:00","modified_at":"2021-04-20T14:47:48.914572+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":7330818668776286}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xvy-t6u-fuk","title":"tf-TestAccDatadogDashboardTimeseries-local-1623093808","url":"/dashboard/xvy-t6u-fuk/tf-testaccdatadogdashboardtimeseries-local-1623093808","created_at":"2021-06-07T19:23:56.697995+00:00","modified_at":"2021-06-07T19:23:56.697995+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":2808140227137116}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:23:58 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 + - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7kv-ff8-pv5 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xvy-t6u-fuk method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7kv-ff8-pv5","title":"tf-TestAccDatadogDashboardTimeseries-local-1618930067","url":"/dashboard/7kv-ff8-pv5/tf-testaccdatadogdashboardtimeseries-local-1618930067","created_at":"2021-04-20T14:47:48.914572+00:00","modified_at":"2021-04-20T14:47:48.914572+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":7330818668776286}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xvy-t6u-fuk","title":"tf-TestAccDatadogDashboardTimeseries-local-1623093808","url":"/dashboard/xvy-t6u-fuk/tf-testaccdatadogdashboardtimeseries-local-1623093808","created_at":"2021-06-07T19:23:56.697995+00:00","modified_at":"2021-06-07T19:23:56.697995+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":2808140227137116}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:23:58 GMT Pragma: - no-cache Strict-Transport-Security: @@ -82,7 +82,7 @@ interactions: X-Dd-Debug: - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7kv-ff8-pv5 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xvy-t6u-fuk method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7kv-ff8-pv5","title":"tf-TestAccDatadogDashboardTimeseries-local-1618930067","url":"/dashboard/7kv-ff8-pv5/tf-testaccdatadogdashboardtimeseries-local-1618930067","created_at":"2021-04-20T14:47:48.914572+00:00","modified_at":"2021-04-20T14:47:48.914572+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":7330818668776286}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xvy-t6u-fuk","title":"tf-TestAccDatadogDashboardTimeseries-local-1623093808","url":"/dashboard/xvy-t6u-fuk/tf-testaccdatadogdashboardtimeseries-local-1623093808","created_at":"2021-06-07T19:23:56.697995+00:00","modified_at":"2021-06-07T19:23:56.697995+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":2808140227137116}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:24:01 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH + - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7kv-ff8-pv5 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xvy-t6u-fuk method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7kv-ff8-pv5","title":"tf-TestAccDatadogDashboardTimeseries-local-1618930067","url":"/dashboard/7kv-ff8-pv5/tf-testaccdatadogdashboardtimeseries-local-1618930067","created_at":"2021-04-20T14:47:48.914572+00:00","modified_at":"2021-04-20T14:47:48.914572+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":7330818668776286}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"xvy-t6u-fuk","title":"tf-TestAccDatadogDashboardTimeseries-local-1623093808","url":"/dashboard/xvy-t6u-fuk/tf-testaccdatadogdashboardtimeseries-local-1623093808","created_at":"2021-06-07T19:23:56.697995+00:00","modified_at":"2021-06-07T19:23:56.697995+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":2808140227137116}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:53 GMT + - Mon, 07 Jun 2021 19:24:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ + - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7kv-ff8-pv5 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xvy-t6u-fuk method: DELETE response: - body: '{"deleted_dashboard_id":"7kv-ff8-pv5"}' + body: '{"deleted_dashboard_id":"xvy-t6u-fuk"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:54 GMT + - Mon, 07 Jun 2021 19:24:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7kv-ff8-pv5 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/xvy-t6u-fuk method: GET response: - body: '{"errors": ["Dashboard with ID 7kv-ff8-pv5 not found"]}' + body: '{"errors": ["Dashboard with ID xvy-t6u-fuk not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:54 GMT + - Mon, 07 Jun 2021 19:24:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute.freeze index 9b6376973..b2d5a6850 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute.freeze @@ -1 +1 @@ -2021-04-20T10:47:47.078628-04:00 \ No newline at end of file +2021-06-07T15:30:27.094725-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute.yaml index f3717a3d1..36b903248 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1618930067","widgets":[{"definition":{"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","log_query":{"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","multi_compute":[{"aggregation":"count"},{"aggregation":"cardinality","facet":"env","interval":1000}],"search":{"query":""}},"on_right_yaxis":true,"style":{"line_type":"solid","line_width":"normal","palette":"cool"}}],"right_yaxis":{"include_zero":false,"max":"599998","min":"1"},"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1623094227","widgets":[{"definition":{"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","log_query":{"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","multi_compute":[{"aggregation":"count"},{"aggregation":"cardinality","facet":"env","interval":1000}],"search":{"query":""}},"on_right_yaxis":true,"style":{"line_type":"solid","line_width":"normal","palette":"cool"}}],"right_yaxis":{"include_zero":false,"max":"599998","min":"1"},"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7hz-esx-ri8","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1618930067","url":"/dashboard/7hz-esx-ri8/tf-testaccdatadogdashboardtimeseriesmulticompute-local-1618930067","created_at":"2021-04-20T14:47:48.910986+00:00","modified_at":"2021-04-20T14:47:48.910986+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":4373902707113392}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"nv9-aek-i6r","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1623094227","url":"/dashboard/nv9-aek-i6r/tf-testaccdatadogdashboardtimeseriesmulticompute-local-1623094227","created_at":"2021-06-07T19:30:53.864111+00:00","modified_at":"2021-06-07T19:30:53.864111+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":793249261765312}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:51 GMT + - Mon, 07 Jun 2021 19:30:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7hz-esx-ri8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/nv9-aek-i6r method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7hz-esx-ri8","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1618930067","url":"/dashboard/7hz-esx-ri8/tf-testaccdatadogdashboardtimeseriesmulticompute-local-1618930067","created_at":"2021-04-20T14:47:48.910986+00:00","modified_at":"2021-04-20T14:47:48.910986+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":4373902707113392}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"nv9-aek-i6r","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1623094227","url":"/dashboard/nv9-aek-i6r/tf-testaccdatadogdashboardtimeseriesmulticompute-local-1623094227","created_at":"2021-06-07T19:30:53.864111+00:00","modified_at":"2021-06-07T19:30:53.864111+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":793249261765312}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:30:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN + - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7hz-esx-ri8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/nv9-aek-i6r method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7hz-esx-ri8","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1618930067","url":"/dashboard/7hz-esx-ri8/tf-testaccdatadogdashboardtimeseriesmulticompute-local-1618930067","created_at":"2021-04-20T14:47:48.910986+00:00","modified_at":"2021-04-20T14:47:48.910986+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":4373902707113392}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"nv9-aek-i6r","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1623094227","url":"/dashboard/nv9-aek-i6r/tf-testaccdatadogdashboardtimeseriesmulticompute-local-1623094227","created_at":"2021-06-07T19:30:53.864111+00:00","modified_at":"2021-06-07T19:30:53.864111+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":793249261765312}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:30:58 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7hz-esx-ri8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/nv9-aek-i6r method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"7hz-esx-ri8","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1618930067","url":"/dashboard/7hz-esx-ri8/tf-testaccdatadogdashboardtimeseriesmulticompute-local-1618930067","created_at":"2021-04-20T14:47:48.910986+00:00","modified_at":"2021-04-20T14:47:48.910986+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":4373902707113392}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"nv9-aek-i6r","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute-local-1623094227","url":"/dashboard/nv9-aek-i6r/tf-testaccdatadogdashboardtimeseriesmulticompute-local-1623094227","created_at":"2021-06-07T19:30:53.864111+00:00","modified_at":"2021-06-07T19:30:53.864111+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":793249261765312}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:31:09 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7hz-esx-ri8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/nv9-aek-i6r method: DELETE response: - body: '{"deleted_dashboard_id":"7hz-esx-ri8"}' + body: '{"deleted_dashboard_id":"nv9-aek-i6r"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:54 GMT + - Mon, 07 Jun 2021 19:31:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/7hz-esx-ri8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/nv9-aek-i6r method: GET response: - body: '{"errors": ["Dashboard with ID 7hz-esx-ri8 not found"]}' + body: '{"errors": ["Dashboard with ID nv9-aek-i6r not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:54 GMT + - Mon, 07 Jun 2021 19:31:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute_import.freeze index 6657b0aa5..a383ee218 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute_import.freeze @@ -1 +1 @@ -2021-04-20T10:47:47.079387-04:00 \ No newline at end of file +2021-06-07T15:30:27.095277-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute_import.yaml index 63ff3d3c9..4bbd9e211 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseriesMultiCompute_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1618930067","widgets":[{"definition":{"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","log_query":{"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","multi_compute":[{"aggregation":"count"},{"aggregation":"cardinality","facet":"env","interval":1000}],"search":{"query":""}},"on_right_yaxis":true,"style":{"line_type":"solid","line_width":"normal","palette":"cool"}}],"right_yaxis":{"include_zero":false,"max":"599998","min":"1"},"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1623094227","widgets":[{"definition":{"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","log_query":{"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","multi_compute":[{"aggregation":"count"},{"aggregation":"cardinality","facet":"env","interval":1000}],"search":{"query":""}},"on_right_yaxis":true,"style":{"line_type":"solid","line_width":"normal","palette":"cool"}}],"right_yaxis":{"include_zero":false,"max":"599998","min":"1"},"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jbu-p37-vfz","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1618930067","url":"/dashboard/jbu-p37-vfz/tf-testaccdatadogdashboardtimeseriesmulticomputeimport-local-1618930067","created_at":"2021-04-20T14:47:48.916008+00:00","modified_at":"2021-04-20T14:47:48.916008+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":6919684455779179}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"2z6-99n-syc","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1623094227","url":"/dashboard/2z6-99n-syc/tf-testaccdatadogdashboardtimeseriesmulticomputeimport-local-1623094227","created_at":"2021-06-07T19:30:53.843201+00:00","modified_at":"2021-06-07T19:30:53.843201+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":4310322390295271}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:30:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h + - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/jbu-p37-vfz + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/2z6-99n-syc method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jbu-p37-vfz","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1618930067","url":"/dashboard/jbu-p37-vfz/tf-testaccdatadogdashboardtimeseriesmulticomputeimport-local-1618930067","created_at":"2021-04-20T14:47:48.916008+00:00","modified_at":"2021-04-20T14:47:48.916008+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":6919684455779179}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"2z6-99n-syc","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1623094227","url":"/dashboard/2z6-99n-syc/tf-testaccdatadogdashboardtimeseriesmulticomputeimport-local-1623094227","created_at":"2021-06-07T19:30:53.843201+00:00","modified_at":"2021-06-07T19:30:53.843201+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":4310322390295271}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:30:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH + - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/jbu-p37-vfz + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/2z6-99n-syc method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jbu-p37-vfz","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1618930067","url":"/dashboard/jbu-p37-vfz/tf-testaccdatadogdashboardtimeseriesmulticomputeimport-local-1618930067","created_at":"2021-04-20T14:47:48.916008+00:00","modified_at":"2021-04-20T14:47:48.916008+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":6919684455779179}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"2z6-99n-syc","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1623094227","url":"/dashboard/2z6-99n-syc/tf-testaccdatadogdashboardtimeseriesmulticomputeimport-local-1623094227","created_at":"2021-06-07T19:30:53.843201+00:00","modified_at":"2021-06-07T19:30:53.843201+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":4310322390295271}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:53 GMT + - Mon, 07 Jun 2021 19:31:09 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/jbu-p37-vfz + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/2z6-99n-syc method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"jbu-p37-vfz","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1618930067","url":"/dashboard/jbu-p37-vfz/tf-testaccdatadogdashboardtimeseriesmulticomputeimport-local-1618930067","created_at":"2021-04-20T14:47:48.916008+00:00","modified_at":"2021-04-20T14:47:48.916008+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":6919684455779179}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"2z6-99n-syc","title":"tf-TestAccDatadogDashboardTimeseriesMultiCompute_import-local-1623094227","url":"/dashboard/2z6-99n-syc/tf-testaccdatadogdashboardtimeseriesmulticomputeimport-local-1623094227","created_at":"2021-06-07T19:30:53.843201+00:00","modified_at":"2021-06-07T19:30:53.843201+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"title_size":"16","yaxis":{"include_zero":true,"min":"0","max":"599999"},"title_align":"left","right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"show_legend":true,"markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","legend_size":"2","type":"timeseries","requests":[{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"multi_compute":[{"aggregation":"count"},{"facet":"env","interval":1000,"aggregation":"cardinality"}]}}]},"id":4310322390295271}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:54 GMT + - Mon, 07 Jun 2021 19:31:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/jbu-p37-vfz + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/2z6-99n-syc method: DELETE response: - body: '{"deleted_dashboard_id":"jbu-p37-vfz"}' + body: '{"deleted_dashboard_id":"2z6-99n-syc"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:54 GMT + - Mon, 07 Jun 2021 19:31:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a + - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/jbu-p37-vfz + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/2z6-99n-syc method: GET response: - body: '{"errors": ["Dashboard with ID jbu-p37-vfz not found"]}' + body: '{"errors": ["Dashboard with ID 2z6-99n-syc not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:55 GMT + - Mon, 07 Jun 2021 19:31:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4351615" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries_import.freeze index 807534016..8f2fd1e5f 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries_import.freeze @@ -1 +1 @@ -2021-04-20T10:47:47.07862-04:00 \ No newline at end of file +2021-06-07T15:23:28.127955-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries_import.yaml index ee5a09075..7d0a4813b 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTimeseries_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTimeseries_import-local-1618930067","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_columns":["value","min","max"],"legend_layout":"horizontal","legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","metadata":[{"expression":""}],"on_right_yaxis":true,"q":"avg:system.cpu.user{env:prod} by {app}","style":{"line_type":"solid","line_width":"thin","palette":"dog_classic"}},{"display_type":"line","log_query":{"compute":{"aggregation":"count"},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","search":{"query":""}},"on_right_yaxis":false,"style":{"line_type":"solid","line_width":"normal","palette":"cool"}},{"apm_query":{"compute":{"aggregation":"cardinality","facet":"env","interval":1000},"group_by":[{"facet":"status","limit":10,"sort":{"aggregation":"cardinality","facet":"env","order":"desc"}}],"index":"trace-search","search":{"query":""}},"display_type":"line","on_right_yaxis":true,"style":{"line_type":"dashed","line_width":"thick","palette":"warm"}},{"display_type":"line","on_right_yaxis":true,"process_query":{"filter_by":["account:prod"],"limit":10,"metric":"process.stat.cpu.total_pct"},"style":{"line_type":"solid","line_width":"normal","palette":"purple"}},{"display_type":"area","network_query":{"compute":{"aggregation":"sum","facet":"network.bytes_read"},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""}},"on_right_yaxis":true,"style":{"line_type":"solid","line_width":"normal","palette":"orange"}},{"display_type":"area","on_right_yaxis":true,"rum_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":10},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"avg","facet":"@duration","order":"desc"}}],"index":"*","search":{"query":""}},"style":{"line_type":"solid","line_width":"normal","palette":"grey"}}],"right_yaxis":{"include_zero":false,"max":"599998","min":"1"},"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTimeseries_import-local-1623093808","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"events":[{"q":"sources:test tags:1","tags_execution":"and"}],"legend_columns":["value","min","max"],"legend_layout":"horizontal","legend_size":"2","markers":[{"display_type":"error dashed","label":"y=500000","value":"y=500000"},{"display_type":"warning dashed","label":"y=400000","value":"y=400000"}],"requests":[{"display_type":"line","metadata":[{"expression":""}],"on_right_yaxis":true,"q":"avg:system.cpu.user{env:prod} by {app}","style":{"line_type":"solid","line_width":"thin","palette":"dog_classic"}},{"display_type":"line","log_query":{"compute":{"aggregation":"count"},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"count","order":"desc"}}],"index":"*","search":{"query":""}},"on_right_yaxis":false,"style":{"line_type":"solid","line_width":"normal","palette":"cool"}},{"apm_query":{"compute":{"aggregation":"cardinality","facet":"env","interval":1000},"group_by":[{"facet":"status","limit":10,"sort":{"aggregation":"cardinality","facet":"env","order":"desc"}}],"index":"trace-search","search":{"query":""}},"display_type":"line","on_right_yaxis":true,"style":{"line_type":"dashed","line_width":"thick","palette":"warm"}},{"display_type":"line","on_right_yaxis":true,"process_query":{"filter_by":["account:prod"],"limit":10,"metric":"process.stat.cpu.total_pct"},"style":{"line_type":"solid","line_width":"normal","palette":"purple"}},{"display_type":"area","network_query":{"compute":{"aggregation":"sum","facet":"network.bytes_read"},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""}},"on_right_yaxis":true,"style":{"line_type":"solid","line_width":"normal","palette":"orange"}},{"display_type":"area","on_right_yaxis":true,"rum_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":10},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"avg","facet":"@duration","order":"desc"}}],"index":"*","search":{"query":""}},"style":{"line_type":"solid","line_width":"normal","palette":"grey"}}],"right_yaxis":{"include_zero":false,"max":"599998","min":"1"},"show_legend":true,"time":{"live_span":"5m"},"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","title_size":"16","type":"timeseries","yaxis":{"include_zero":true,"max":"599999","min":"0"}}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"x6h-b9x-7d7","title":"tf-TestAccDatadogDashboardTimeseries_import-local-1618930067","url":"/dashboard/x6h-b9x-7d7/tf-testaccdatadogdashboardtimeseriesimport-local-1618930067","created_at":"2021-04-20T14:47:48.944960+00:00","modified_at":"2021-04-20T14:47:48.944960+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":6915616040296303}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"zrr-p9u-a4z","title":"tf-TestAccDatadogDashboardTimeseries_import-local-1623093808","url":"/dashboard/zrr-p9u-a4z/tf-testaccdatadogdashboardtimeseriesimport-local-1623093808","created_at":"2021-06-07T19:23:56.682320+00:00","modified_at":"2021-06-07T19:23:56.682320+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":1931710450637415}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:51 GMT + - Mon, 07 Jun 2021 19:23:57 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu + - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/x6h-b9x-7d7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zrr-p9u-a4z method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"x6h-b9x-7d7","title":"tf-TestAccDatadogDashboardTimeseries_import-local-1618930067","url":"/dashboard/x6h-b9x-7d7/tf-testaccdatadogdashboardtimeseriesimport-local-1618930067","created_at":"2021-04-20T14:47:48.944960+00:00","modified_at":"2021-04-20T14:47:48.944960+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":6915616040296303}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"zrr-p9u-a4z","title":"tf-TestAccDatadogDashboardTimeseries_import-local-1623093808","url":"/dashboard/zrr-p9u-a4z/tf-testaccdatadogdashboardtimeseriesimport-local-1623093808","created_at":"2021-06-07T19:23:56.682320+00:00","modified_at":"2021-06-07T19:23:56.682320+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":1931710450637415}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:52 GMT + - Mon, 07 Jun 2021 19:23:57 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV + - S1wfaMZOKGT/IoMw6fqAwAwGWo2vQ44sjF3YzuETnQfxZO2T5eJbs0aX3UKb9Dwu X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/x6h-b9x-7d7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zrr-p9u-a4z method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"x6h-b9x-7d7","title":"tf-TestAccDatadogDashboardTimeseries_import-local-1618930067","url":"/dashboard/x6h-b9x-7d7/tf-testaccdatadogdashboardtimeseriesimport-local-1618930067","created_at":"2021-04-20T14:47:48.944960+00:00","modified_at":"2021-04-20T14:47:48.944960+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":6915616040296303}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"zrr-p9u-a4z","title":"tf-TestAccDatadogDashboardTimeseries_import-local-1623093808","url":"/dashboard/zrr-p9u-a4z/tf-testaccdatadogdashboardtimeseriesimport-local-1623093808","created_at":"2021-06-07T19:23:56.682320+00:00","modified_at":"2021-06-07T19:23:56.682320+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":1931710450637415}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:53 GMT + - Mon, 07 Jun 2021 19:24:09 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/x6h-b9x-7d7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zrr-p9u-a4z method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"x6h-b9x-7d7","title":"tf-TestAccDatadogDashboardTimeseries_import-local-1618930067","url":"/dashboard/x6h-b9x-7d7/tf-testaccdatadogdashboardtimeseriesimport-local-1618930067","created_at":"2021-04-20T14:47:48.944960+00:00","modified_at":"2021-04-20T14:47:48.944960+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":6915616040296303}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"zrr-p9u-a4z","title":"tf-TestAccDatadogDashboardTimeseries_import-local-1623093808","url":"/dashboard/zrr-p9u-a4z/tf-testaccdatadogdashboardtimeseriesimport-local-1623093808","created_at":"2021-06-07T19:23:56.682320+00:00","modified_at":"2021-06-07T19:23:56.682320+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","legend_columns":["value","min","max"],"title":"system.cpu.user, env, process.stat.cpu.total_pct, network.bytes_read, @d...","title_align":"left","markers":[{"display_type":"error dashed","value":"y=500000","label":"y=500000"},{"display_type":"warning dashed","value":"y=400000","label":"y=400000"}],"yaxis":{"include_zero":true,"min":"0","max":"599999"},"legend_layout":"horizontal","show_legend":true,"right_yaxis":{"include_zero":false,"min":"1","max":"599998"},"time":{"live_span":"5m"},"legend_size":"2","requests":[{"q":"avg:system.cpu.user{env:prod} by {app}","on_right_yaxis":true,"style":{"line_width":"thin","palette":"dog_classic","line_type":"solid"},"display_type":"line","metadata":[{"expression":""}]},{"on_right_yaxis":false,"style":{"line_width":"normal","palette":"cool","line_type":"solid"},"display_type":"line","log_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"aggregation":"count","order":"desc"},"limit":10}],"compute":{"aggregation":"count"}}},{"on_right_yaxis":true,"style":{"line_width":"thick","palette":"warm","line_type":"dashed"},"apm_query":{"index":"trace-search","search":{"query":""},"group_by":[{"facet":"status","sort":{"facet":"env","aggregation":"cardinality","order":"desc"},"limit":10}],"compute":{"facet":"env","interval":1000,"aggregation":"cardinality"}},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"purple","line_type":"solid"},"process_query":{"metric":"process.stat.cpu.total_pct","limit":10,"filter_by":["account:prod"]},"display_type":"line"},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"orange","line_type":"solid"},"display_type":"area","network_query":{"index":"netflow-search","search":{"query":"network.transport:udp network.destination.ip:\"*\""},"group_by":[{"facet":"source_region"},{"facet":"dest_environment"}],"compute":{"facet":"network.bytes_read","aggregation":"sum"}}},{"on_right_yaxis":true,"style":{"line_width":"normal","palette":"grey","line_type":"solid"},"rum_query":{"index":"*","search":{"query":""},"group_by":[{"facet":"service","sort":{"facet":"@duration","aggregation":"avg","order":"desc"},"limit":10}],"compute":{"facet":"@duration","interval":10,"aggregation":"avg"}},"display_type":"area"}],"type":"timeseries","events":[{"q":"sources:test tags:1","tags_execution":"and"}]},"id":1931710450637415}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:54 GMT + - Mon, 07 Jun 2021 19:24:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/x6h-b9x-7d7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zrr-p9u-a4z method: DELETE response: - body: '{"deleted_dashboard_id":"x6h-b9x-7d7"}' + body: '{"deleted_dashboard_id":"zrr-p9u-a4z"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:54 GMT + - Mon, 07 Jun 2021 19:24:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ + - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.19 (go go1.16.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/x6h-b9x-7d7 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/zrr-p9u-a4z method: GET response: - body: '{"errors": ["Dashboard with ID x6h-b9x-7d7 not found"]}' + body: '{"errors": ["Dashboard with ID zrr-p9u-a4z not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 20 Apr 2021 14:47:55 GMT + - Mon, 07 Jun 2021 19:24:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4351615" + - "35.4693436" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTopList.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardTopList.freeze index 0a187c7c0..c4d431c6a 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTopList.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTopList.freeze @@ -1 +1 @@ -2021-03-12T17:14:21.90212-05:00 \ No newline at end of file +2021-06-07T15:51:00.268238-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTopList.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardTopList.yaml index 2a7ab65be..5b02a4173 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTopList.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTopList.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTopList-local-1615587261","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":15000}],"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')"}],"time":{"live_span":"1w"},"title":"Avg of system.core.user over account:prod by service,app","title_align":"right","title_size":"16","type":"toplist"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTopList-local-1623095460","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"},{"is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists","override_label":"logs"}],"requests":[{"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":15000}],"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')"}],"time":{"live_span":"1w"},"title":"Avg of system.core.user over account:prod by service,app","title_align":"right","title_size":"16","type":"toplist"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"wsu-5g2-6p8","title":"tf-TestAccDatadogDashboardTopList-local-1615587261","url":"/dashboard/wsu-5g2-6p8/tf-testaccdatadogdashboardtoplist-local-1615587261","created_at":"2021-03-12T22:14:24.860945+00:00","modified_at":"2021-03-12T22:14:24.860945+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":1094958805014679}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"h4h-g2e-d2w","title":"tf-TestAccDatadogDashboardTopList-local-1623095460","url":"/dashboard/h4h-g2e-d2w/tf-testaccdatadogdashboardtoplist-local-1623095460","created_at":"2021-06-07T19:51:25.317264+00:00","modified_at":"2021-06-07T19:51:25.317264+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":5898962078797621}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:27 GMT + - Mon, 07 Jun 2021 19:51:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wsu-5g2-6p8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h4h-g2e-d2w method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"wsu-5g2-6p8","title":"tf-TestAccDatadogDashboardTopList-local-1615587261","url":"/dashboard/wsu-5g2-6p8/tf-testaccdatadogdashboardtoplist-local-1615587261","created_at":"2021-03-12T22:14:24.860945+00:00","modified_at":"2021-03-12T22:14:24.860945+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":1094958805014679}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"h4h-g2e-d2w","title":"tf-TestAccDatadogDashboardTopList-local-1623095460","url":"/dashboard/h4h-g2e-d2w/tf-testaccdatadogdashboardtoplist-local-1623095460","created_at":"2021-06-07T19:51:25.317264+00:00","modified_at":"2021-06-07T19:51:25.317264+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":5898962078797621}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:27 GMT + - Mon, 07 Jun 2021 19:51:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wsu-5g2-6p8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h4h-g2e-d2w method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"wsu-5g2-6p8","title":"tf-TestAccDatadogDashboardTopList-local-1615587261","url":"/dashboard/wsu-5g2-6p8/tf-testaccdatadogdashboardtoplist-local-1615587261","created_at":"2021-03-12T22:14:24.860945+00:00","modified_at":"2021-03-12T22:14:24.860945+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":1094958805014679}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"h4h-g2e-d2w","title":"tf-TestAccDatadogDashboardTopList-local-1623095460","url":"/dashboard/h4h-g2e-d2w/tf-testaccdatadogdashboardtoplist-local-1623095460","created_at":"2021-06-07T19:51:25.317264+00:00","modified_at":"2021-06-07T19:51:25.317264+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":5898962078797621}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:28 GMT + - Mon, 07 Jun 2021 19:51:29 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wsu-5g2-6p8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h4h-g2e-d2w method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"wsu-5g2-6p8","title":"tf-TestAccDatadogDashboardTopList-local-1615587261","url":"/dashboard/wsu-5g2-6p8/tf-testaccdatadogdashboardtoplist-local-1615587261","created_at":"2021-03-12T22:14:24.860945+00:00","modified_at":"2021-03-12T22:14:24.860945+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":1094958805014679}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"h4h-g2e-d2w","title":"tf-TestAccDatadogDashboardTopList-local-1623095460","url":"/dashboard/h4h-g2e-d2w/tf-testaccdatadogdashboardtoplist-local-1623095460","created_at":"2021-06-07T19:51:25.317264+00:00","modified_at":"2021-06-07T19:51:25.317264+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"},{"override_label":"logs","is_hidden":true,"link":"https://app.datadoghq.com/dashboard/lists"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":5898962078797621}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:29 GMT + - Mon, 07 Jun 2021 19:51:38 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt + - L3ULR3HwCWYmEqCWGz2Yob3chcH4pjowBacBXkncP7o+/uPqKt9yGEYf/g1AJPzQ X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wsu-5g2-6p8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h4h-g2e-d2w method: DELETE response: - body: '{"deleted_dashboard_id":"wsu-5g2-6p8"}' + body: '{"deleted_dashboard_id":"h4h-g2e-d2w"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:32 GMT + - Mon, 07 Jun 2021 19:51:53 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 + - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/wsu-5g2-6p8 + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h4h-g2e-d2w method: GET response: - body: '{"errors": ["Dashboard with ID wsu-5g2-6p8 not found"]}' + body: '{"errors": ["Dashboard with ID h4h-g2e-d2w not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:32 GMT + - Mon, 07 Jun 2021 19:51:53 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula.freeze index 23137d6c7..f7f2d0fe3 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula.freeze @@ -1 +1 @@ -2021-04-16T13:25:09.298892-04:00 \ No newline at end of file +2021-06-07T15:51:00.271443-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula.yaml index 3afb358c0..819619475 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTopListFormula-local-1618593909","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"type":"toplist"}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"type":"toplist"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTopListFormula-local-1623095460","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"type":"toplist"}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"type":"toplist"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"n2x-25q-def","title":"tf-TestAccDatadogDashboardTopListFormula-local-1618593909","url":"/dashboard/n2x-25q-def/tf-testaccdatadogdashboardtoplistformula-local-1618593909","created_at":"2021-04-16T17:25:10.178675+00:00","modified_at":"2021-04-16T17:25:10.178675+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":7631037175834849},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6558674061820933}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vt8-eqz-w7s","title":"tf-TestAccDatadogDashboardTopListFormula-local-1623095460","url":"/dashboard/vt8-eqz-w7s/tf-testaccdatadogdashboardtoplistformula-local-1623095460","created_at":"2021-06-07T19:51:25.322590+00:00","modified_at":"2021-06-07T19:51:25.322590+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":4801967116201792},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":8489905572496181}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:14 GMT + - Mon, 07 Jun 2021 19:51:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,51 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG - X-Dd-Version: - - "35.4330587" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/n2x-25q-def - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"n2x-25q-def","title":"tf-TestAccDatadogDashboardTopListFormula-local-1618593909","url":"/dashboard/n2x-25q-def/tf-testaccdatadogdashboardtoplistformula-local-1618593909","created_at":"2021-04-16T17:25:10.178675+00:00","modified_at":"2021-04-16T17:25:10.178675+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":7631037175834849},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6558674061820933}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Fri, 16 Apr 2021 17:25:14 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - 2328yjLSqI4XmR1pVqrPRR/SFcQsbafjEpPmZx7/3PfxUK1nJQQsX+wrMelyVyj+ X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/n2x-25q-def + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vt8-eqz-w7s method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"n2x-25q-def","title":"tf-TestAccDatadogDashboardTopListFormula-local-1618593909","url":"/dashboard/n2x-25q-def/tf-testaccdatadogdashboardtoplistformula-local-1618593909","created_at":"2021-04-16T17:25:10.178675+00:00","modified_at":"2021-04-16T17:25:10.178675+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":7631037175834849},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6558674061820933}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vt8-eqz-w7s","title":"tf-TestAccDatadogDashboardTopListFormula-local-1623095460","url":"/dashboard/vt8-eqz-w7s/tf-testaccdatadogdashboardtoplistformula-local-1623095460","created_at":"2021-06-07T19:51:25.322590+00:00","modified_at":"2021-06-07T19:51:25.322590+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":4801967116201792},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":8489905572496181}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:14 GMT + - Mon, 07 Jun 2021 19:51:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/n2x-25q-def + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vt8-eqz-w7s method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"n2x-25q-def","title":"tf-TestAccDatadogDashboardTopListFormula-local-1618593909","url":"/dashboard/n2x-25q-def/tf-testaccdatadogdashboardtoplistformula-local-1618593909","created_at":"2021-04-16T17:25:10.178675+00:00","modified_at":"2021-04-16T17:25:10.178675+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":7631037175834849},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6558674061820933}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vt8-eqz-w7s","title":"tf-TestAccDatadogDashboardTopListFormula-local-1623095460","url":"/dashboard/vt8-eqz-w7s/tf-testaccdatadogdashboardtoplistformula-local-1623095460","created_at":"2021-06-07T19:51:25.322590+00:00","modified_at":"2021-06-07T19:51:25.322590+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":4801967116201792},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":8489905572496181}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:14 GMT + - Mon, 07 Jun 2021 19:51:29 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/n2x-25q-def + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vt8-eqz-w7s method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"n2x-25q-def","title":"tf-TestAccDatadogDashboardTopListFormula-local-1618593909","url":"/dashboard/n2x-25q-def/tf-testaccdatadogdashboardtoplistformula-local-1618593909","created_at":"2021-04-16T17:25:10.178675+00:00","modified_at":"2021-04-16T17:25:10.178675+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":7631037175834849},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6558674061820933}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vt8-eqz-w7s","title":"tf-TestAccDatadogDashboardTopListFormula-local-1623095460","url":"/dashboard/vt8-eqz-w7s/tf-testaccdatadogdashboardtoplistformula-local-1623095460","created_at":"2021-06-07T19:51:25.322590+00:00","modified_at":"2021-06-07T19:51:25.322590+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":4801967116201792},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":8489905572496181}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -196,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:15 GMT + - Mon, 07 Jun 2021 19:51:38 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/n2x-25q-def + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vt8-eqz-w7s method: DELETE response: - body: '{"deleted_dashboard_id":"n2x-25q-def"}' + body: '{"deleted_dashboard_id":"vt8-eqz-w7s"}' headers: Cache-Control: - no-cache @@ -238,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:15 GMT + - Mon, 07 Jun 2021 19:51:54 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -265,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/n2x-25q-def + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vt8-eqz-w7s method: GET response: - body: '{"errors": ["Dashboard with ID n2x-25q-def not found"]}' + body: '{"errors": ["Dashboard with ID vt8-eqz-w7s not found"]}' headers: Cache-Control: - no-cache @@ -280,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:15 GMT + - Mon, 07 Jun 2021 19:51:54 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula_import.freeze index d0398dd29..8a1c93c80 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula_import.freeze @@ -1 +1 @@ -2021-04-16T13:25:09.298847-04:00 \ No newline at end of file +2021-06-07T15:51:00.268519-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula_import.yaml index 04470f374..1c5d3e105 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTopListFormula_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1618593909","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"type":"toplist"}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"type":"toplist"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1623095460","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"type":"toplist"}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"type":"toplist"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8m8-w4i-zck","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1618593909","url":"/dashboard/8m8-w4i-zck/tf-testaccdatadogdashboardtoplistformulaimport-local-1618593909","created_at":"2021-04-16T17:25:10.190731+00:00","modified_at":"2021-04-16T17:25:10.190731+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":3925289752360287},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6057887070427033}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"h5c-4ng-8je","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1623095460","url":"/dashboard/h5c-4ng-8je/tf-testaccdatadogdashboardtoplistformulaimport-local-1623095460","created_at":"2021-06-07T19:51:25.296224+00:00","modified_at":"2021-06-07T19:51:25.296224+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":881841534970167},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":2624982935751176}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:13 GMT + - Mon, 07 Jun 2021 19:51:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU + - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/8m8-w4i-zck + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h5c-4ng-8je method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8m8-w4i-zck","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1618593909","url":"/dashboard/8m8-w4i-zck/tf-testaccdatadogdashboardtoplistformulaimport-local-1618593909","created_at":"2021-04-16T17:25:10.190731+00:00","modified_at":"2021-04-16T17:25:10.190731+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":3925289752360287},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6057887070427033}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"h5c-4ng-8je","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1623095460","url":"/dashboard/h5c-4ng-8je/tf-testaccdatadogdashboardtoplistformulaimport-local-1623095460","created_at":"2021-06-07T19:51:25.296224+00:00","modified_at":"2021-06-07T19:51:25.296224+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":881841534970167},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":2624982935751176}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:13 GMT + - Mon, 07 Jun 2021 19:51:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 + - EFjE6I+AUQmTiNqZcuE1nqoFeAjWD0Xtzy3edDrinkwlU/Wzr/2Dbl5kWk3qLVaQ X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/8m8-w4i-zck + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h5c-4ng-8je method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8m8-w4i-zck","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1618593909","url":"/dashboard/8m8-w4i-zck/tf-testaccdatadogdashboardtoplistformulaimport-local-1618593909","created_at":"2021-04-16T17:25:10.190731+00:00","modified_at":"2021-04-16T17:25:10.190731+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":3925289752360287},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6057887070427033}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"h5c-4ng-8je","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1623095460","url":"/dashboard/h5c-4ng-8je/tf-testaccdatadogdashboardtoplistformulaimport-local-1623095460","created_at":"2021-06-07T19:51:25.296224+00:00","modified_at":"2021-06-07T19:51:25.296224+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":881841534970167},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":2624982935751176}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:14 GMT + - Mon, 07 Jun 2021 19:51:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/8m8-w4i-zck + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h5c-4ng-8je method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8m8-w4i-zck","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1618593909","url":"/dashboard/8m8-w4i-zck/tf-testaccdatadogdashboardtoplistformulaimport-local-1618593909","created_at":"2021-04-16T17:25:10.190731+00:00","modified_at":"2021-04-16T17:25:10.190731+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":3925289752360287},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6057887070427033}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"h5c-4ng-8je","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1623095460","url":"/dashboard/h5c-4ng-8je/tf-testaccdatadogdashboardtoplistformulaimport-local-1623095460","created_at":"2021-06-07T19:51:25.296224+00:00","modified_at":"2021-06-07T19:51:25.296224+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":881841534970167},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":2624982935751176}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:14 GMT + - Mon, 07 Jun 2021 19:51:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -166,91 +166,7 @@ interactions: X-Dd-Debug: - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH X-Dd-Version: - - "35.4330587" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/8m8-w4i-zck - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8m8-w4i-zck","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1618593909","url":"/dashboard/8m8-w4i-zck/tf-testaccdatadogdashboardtoplistformulaimport-local-1618593909","created_at":"2021-04-16T17:25:10.190731+00:00","modified_at":"2021-04-16T17:25:10.190731+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":3925289752360287},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6057887070427033}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Fri, 16 Apr 2021 17:25:14 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I - X-Dd-Version: - - "35.4330587" - X-Frame-Options: - - SAMEORIGIN - status: 200 OK - code: 200 - duration: "" -- request: - body: "" - form: {} - headers: - Accept: - - application/json - Dd-Operation-Id: - - GetDashboard - User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/8m8-w4i-zck - method: GET - response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"8m8-w4i-zck","title":"tf-TestAccDatadogDashboardTopListFormula_import-local-1618593909","url":"/dashboard/8m8-w4i-zck/tf-testaccdatadogdashboardtoplistformulaimport-local-1618593909","created_at":"2021-04-16T17:25:10.190731+00:00","modified_at":"2021-04-16T17:25:10.190731+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"toplist"},"id":3925289752360287},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"toplist"},"id":6057887070427033}],"layout_type":"ordered"}' - headers: - Cache-Control: - - no-cache - Connection: - - keep-alive - Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report - Content-Type: - - application/json - Date: - - Fri, 16 Apr 2021 17:25:15 GMT - Pragma: - - no-cache - Strict-Transport-Security: - - max-age=15724800; - Vary: - - Accept-Encoding - X-Content-Type-Options: - - nosniff - X-Dd-Debug: - - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV - X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -265,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/8m8-w4i-zck + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h5c-4ng-8je method: DELETE response: - body: '{"deleted_dashboard_id":"8m8-w4i-zck"}' + body: '{"deleted_dashboard_id":"h5c-4ng-8je"}' headers: Cache-Control: - no-cache @@ -280,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:15 GMT + - Mon, 07 Jun 2021 19:52:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc + - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -307,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19+dev (go go1.15.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/8m8-w4i-zck + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/h5c-4ng-8je method: GET response: - body: '{"errors": ["Dashboard with ID 8m8-w4i-zck not found"]}' + body: '{"errors": ["Dashboard with ID h5c-4ng-8je not found"]}' headers: Cache-Control: - no-cache @@ -322,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 16 Apr 2021 17:25:15 GMT + - Mon, 07 Jun 2021 19:52:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -332,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4330587" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTopList_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardTopList_import.freeze index 64535b27e..dd236c432 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTopList_import.freeze +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTopList_import.freeze @@ -1 +1 @@ -2021-03-12T17:14:21.670282-05:00 \ No newline at end of file +2021-06-07T15:51:00.270087-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardTopList_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardTopList_import.yaml index 0e69cf4bd..3cfebf476 100644 --- a/datadog/tests/cassettes/TestAccDatadogDashboardTopList_import.yaml +++ b/datadog/tests/cassettes/TestAccDatadogDashboardTopList_import.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTopList_import-local-1615587261","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":15000}],"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')"}],"time":{"live_span":"1w"},"title":"Avg of system.core.user over account:prod by service,app","title_align":"right","title_size":"16","type":"toplist"}}]} + {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardTopList_import-local-1623095460","widgets":[{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"conditional_formats":[{"comparator":"\u003e","hide_value":false,"palette":"white_on_red","value":15000}],"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, 'sum', 'desc')"}],"time":{"live_span":"1w"},"title":"Avg of system.core.user over account:prod by service,app","title_align":"right","title_size":"16","type":"toplist"}}]} form: {} headers: Accept: @@ -13,11 +13,11 @@ interactions: Dd-Operation-Id: - CreateDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/dashboard method: POST response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"uuv-ibj-szj","title":"tf-TestAccDatadogDashboardTopList_import-local-1615587261","url":"/dashboard/uuv-ibj-szj/tf-testaccdatadogdashboardtoplistimport-local-1615587261","created_at":"2021-03-12T22:14:24.500805+00:00","modified_at":"2021-03-12T22:14:24.500805+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2957177201213649}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vmr-r56-i4k","title":"tf-TestAccDatadogDashboardTopList_import-local-1623095460","url":"/dashboard/vmr-r56-i4k/tf-testaccdatadogdashboardtoplistimport-local-1623095460","created_at":"2021-06-07T19:51:25.312853+00:00","modified_at":"2021-06-07T19:51:25.312853+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":8609368833436790}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -28,7 +28,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:27 GMT + - Mon, 07 Jun 2021 19:51:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -38,9 +38,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX + - B1nwy/pPNqX+q4pQT22cdp1QCexE35IF8qwSHy0Nf7IW0Y881qtn4tXN1lpmzaKc X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -55,11 +55,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/uuv-ibj-szj + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vmr-r56-i4k method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"uuv-ibj-szj","title":"tf-TestAccDatadogDashboardTopList_import-local-1615587261","url":"/dashboard/uuv-ibj-szj/tf-testaccdatadogdashboardtoplistimport-local-1615587261","created_at":"2021-03-12T22:14:24.500805+00:00","modified_at":"2021-03-12T22:14:24.500805+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2957177201213649}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vmr-r56-i4k","title":"tf-TestAccDatadogDashboardTopList_import-local-1623095460","url":"/dashboard/vmr-r56-i4k/tf-testaccdatadogdashboardtoplistimport-local-1623095460","created_at":"2021-06-07T19:51:25.312853+00:00","modified_at":"2021-06-07T19:51:25.312853+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":8609368833436790}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -70,7 +70,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:27 GMT + - Mon, 07 Jun 2021 19:51:27 GMT Pragma: - no-cache Strict-Transport-Security: @@ -80,9 +80,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -97,11 +97,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/uuv-ibj-szj + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vmr-r56-i4k method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"uuv-ibj-szj","title":"tf-TestAccDatadogDashboardTopList_import-local-1615587261","url":"/dashboard/uuv-ibj-szj/tf-testaccdatadogdashboardtoplistimport-local-1615587261","created_at":"2021-03-12T22:14:24.500805+00:00","modified_at":"2021-03-12T22:14:24.500805+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2957177201213649}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vmr-r56-i4k","title":"tf-TestAccDatadogDashboardTopList_import-local-1623095460","url":"/dashboard/vmr-r56-i4k/tf-testaccdatadogdashboardtoplistimport-local-1623095460","created_at":"2021-06-07T19:51:25.312853+00:00","modified_at":"2021-06-07T19:51:25.312853+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":8609368833436790}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -112,7 +112,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:29 GMT + - Mon, 07 Jun 2021 19:51:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -122,9 +122,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I + - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -139,11 +139,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli ) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/uuv-ibj-szj + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vmr-r56-i4k method: GET response: - body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"uuv-ibj-szj","title":"tf-TestAccDatadogDashboardTopList_import-local-1615587261","url":"/dashboard/uuv-ibj-szj/tf-testaccdatadogdashboardtoplistimport-local-1615587261","created_at":"2021-03-12T22:14:24.500805+00:00","modified_at":"2021-03-12T22:14:24.500805+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":2957177201213649}],"layout_type":"ordered"}' + body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"vmr-r56-i4k","title":"tf-TestAccDatadogDashboardTopList_import-local-1623095460","url":"/dashboard/vmr-r56-i4k/tf-testaccdatadogdashboardtoplistimport-local-1623095460","created_at":"2021-06-07T19:51:25.312853+00:00","modified_at":"2021-06-07T19:51:25.312853+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"title_size":"16","title":"Avg of system.core.user over account:prod by service,app","title_align":"right","time":{"live_span":"1w"},"requests":[{"q":"top(avg:system.core.user{account:prod} by {service,app}, 10, ''sum'', ''desc'')","conditional_formats":[{"palette":"white_on_red","hide_value":false,"value":15000,"comparator":">"}]}],"type":"toplist"},"id":8609368833436790}],"layout_type":"ordered"}' headers: Cache-Control: - no-cache @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:31 GMT + - Mon, 07 Jun 2021 19:51:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -164,9 +164,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 + - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -181,11 +181,11 @@ interactions: Dd-Operation-Id: - DeleteDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/uuv-ibj-szj + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vmr-r56-i4k method: DELETE response: - body: '{"deleted_dashboard_id":"uuv-ibj-szj"}' + body: '{"deleted_dashboard_id":"vmr-r56-i4k"}' headers: Cache-Control: - no-cache @@ -196,7 +196,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:32 GMT + - Mon, 07 Jun 2021 19:52:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -206,9 +206,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JpIJLwIH2nFlZOC+u71rq7aAOL43MLZN3MUsL+gpYHdZz5QLUOG8Jysf8kVK6tPU + - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 200 OK @@ -223,11 +223,11 @@ interactions: Dd-Operation-Id: - GetDashboard User-Agent: - - terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.16 (go go1.15.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/dashboard/uuv-ibj-szj + - terraform-provider-datadog/dev (terraform 2.6.1; terraform-cli 0.15.3) datadog-api-client-go/1.0.0-beta.22 (go go1.16.3; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard/vmr-r56-i4k method: GET response: - body: '{"errors": ["Dashboard with ID uuv-ibj-szj not found"]}' + body: '{"errors": ["Dashboard with ID vmr-r56-i4k not found"]}' headers: Cache-Control: - no-cache @@ -238,7 +238,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 12 Mar 2021 22:14:33 GMT + - Mon, 07 Jun 2021 19:52:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -248,7 +248,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.4088130" + - "35.4693673" X-Frame-Options: - SAMEORIGIN status: 404 Not Found diff --git a/datadog/tests/resource_datadog_dashboard_change_test.go b/datadog/tests/resource_datadog_dashboard_change_test.go index 997c8fbba..8ee948f7b 100644 --- a/datadog/tests/resource_datadog_dashboard_change_test.go +++ b/datadog/tests/resource_datadog_dashboard_change_test.go @@ -75,6 +75,11 @@ resource "datadog_dashboard" "change_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } } } } @@ -106,9 +111,12 @@ var datadogDashboardChangeAsserts = []string{ "widget.0.change_definition.0.request.0.order_by =", "widget.1.change_definition.0.live_span = 1h", "widget.0.change_definition.0.request.0.compare_to =", - "widget.1.change_definition.0.custom_link.# = 1", + "widget.1.change_definition.0.custom_link.# = 2", "widget.1.change_definition.0.custom_link.0.label = Test Custom Link label", "widget.1.change_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.1.change_definition.0.custom_link.1.override_label = logs", + "widget.1.change_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.1.change_definition.0.custom_link.1.is_hidden = true", } func TestAccDatadogDashboardChange(t *testing.T) { diff --git a/datadog/tests/resource_datadog_dashboard_geomap_test.go b/datadog/tests/resource_datadog_dashboard_geomap_test.go index 24452cfea..cc44a8f9e 100644 --- a/datadog/tests/resource_datadog_dashboard_geomap_test.go +++ b/datadog/tests/resource_datadog_dashboard_geomap_test.go @@ -47,6 +47,11 @@ resource "datadog_dashboard" "geomap_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } } } widget { @@ -196,9 +201,12 @@ var datadogDashboardGeomapAsserts = []string{ "widget.1.geomap_definition.0.style.0.palette = hostmap_blues", "widget.1.geomap_definition.0.style.0.palette_flip = false", "widget.1.geomap_definition.0.view.0.focus = WORLD", - "widget.1.geomap_definition.0.custom_link.# = 1", + "widget.1.geomap_definition.0.custom_link.# = 2", "widget.1.geomap_definition.0.custom_link.0.label = Test Custom Link label", "widget.1.geomap_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.1.geomap_definition.0.custom_link.1.override_label = logs", + "widget.1.geomap_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.1.geomap_definition.0.custom_link.1.is_hidden = true", "widget.2.geomap_definition.0.live_span = 4h", "widget.2.geomap_definition.0.request.0.rum_query.0.compute_query.0.aggregation = count", "widget.2.geomap_definition.0.request.0.rum_query.0.index = *", diff --git a/datadog/tests/resource_datadog_dashboard_heatmap_test.go b/datadog/tests/resource_datadog_dashboard_heatmap_test.go index 0cb14edcd..764ce5956 100644 --- a/datadog/tests/resource_datadog_dashboard_heatmap_test.go +++ b/datadog/tests/resource_datadog_dashboard_heatmap_test.go @@ -37,6 +37,11 @@ resource "datadog_dashboard" "heatmap_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } } } } @@ -99,9 +104,12 @@ var datadogDashboardHeatMapAsserts = []string{ "widget.0.heatmap_definition.0.event.0.tags_execution = and", "widget.0.heatmap_definition.0.show_legend = true", "widget.0.heatmap_definition.0.legend_size = 2", - "widget.0.heatmap_definition.0.custom_link.# = 1", + "widget.0.heatmap_definition.0.custom_link.# = 2", "widget.0.heatmap_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.heatmap_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.heatmap_definition.0.custom_link.1.override_label = logs", + "widget.0.heatmap_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.heatmap_definition.0.custom_link.1.is_hidden = true", } func TestAccDatadogDashboardHeatMap(t *testing.T) { diff --git a/datadog/tests/resource_datadog_dashboard_hostmap_test.go b/datadog/tests/resource_datadog_dashboard_hostmap_test.go index 2145622d5..eae2d54a4 100644 --- a/datadog/tests/resource_datadog_dashboard_hostmap_test.go +++ b/datadog/tests/resource_datadog_dashboard_hostmap_test.go @@ -39,6 +39,11 @@ resource "datadog_dashboard" "hostmap_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } } } } @@ -63,9 +68,12 @@ var datadogDashboardHostMapAsserts = []string{ "is_read_only = true", "title = {{uniq}}", "widget.0.hostmap_definition.0.group.0 = region", - "widget.0.hostmap_definition.0.custom_link.# = 1", + "widget.0.hostmap_definition.0.custom_link.# = 2", "widget.0.hostmap_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.hostmap_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.hostmap_definition.0.custom_link.1.override_label = logs", + "widget.0.hostmap_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.hostmap_definition.0.custom_link.1.is_hidden = true", } func TestAccDatadogDashboardHostMap(t *testing.T) { diff --git a/datadog/tests/resource_datadog_dashboard_query_table_test.go b/datadog/tests/resource_datadog_dashboard_query_table_test.go index bd2c4fa77..b149e36f8 100644 --- a/datadog/tests/resource_datadog_dashboard_query_table_test.go +++ b/datadog/tests/resource_datadog_dashboard_query_table_test.go @@ -50,6 +50,11 @@ resource "datadog_dashboard" "query_table_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } has_search_bar = "auto" } } @@ -186,9 +191,12 @@ var datadogDashboardQueryTableAsserts = []string{ "widget.1.query_table_definition.0.request.0.apm_stats_query.0.primary_tag = tag:*", "widget.1.query_table_definition.0.request.0.apm_stats_query.0.name = name", "widget.1.query_table_definition.0.request.0.apm_stats_query.0.row_type = resource", - "widget.0.query_table_definition.0.custom_link.# = 1", + "widget.0.query_table_definition.0.custom_link.# = 2", "widget.0.query_table_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.query_table_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.query_table_definition.0.custom_link.1.override_label = logs", + "widget.0.query_table_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.query_table_definition.0.custom_link.1.is_hidden = true", "widget.0.query_table_definition.0.request.0.cell_display_mode.0 = number", "widget.0.query_table_definition.0.request.1.cell_display_mode.0 = number", "widget.0.query_table_definition.0.has_search_bar = auto", diff --git a/datadog/tests/resource_datadog_dashboard_query_value_test.go b/datadog/tests/resource_datadog_dashboard_query_value_test.go index 3851ffe9b..5e1e9872e 100644 --- a/datadog/tests/resource_datadog_dashboard_query_value_test.go +++ b/datadog/tests/resource_datadog_dashboard_query_value_test.go @@ -38,6 +38,11 @@ resource "datadog_dashboard" "query_value_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } } } } @@ -176,9 +181,12 @@ var datadogDashboardQueryValueAsserts = []string{ "widget.0.query_value_definition.0.request.0.conditional_formats.0.custom_fg_color =", "is_read_only = true", "title = {{uniq}}", - "widget.0.query_value_definition.0.custom_link.# = 1", + "widget.0.query_value_definition.0.custom_link.# = 2", "widget.0.query_value_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.query_value_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.query_value_definition.0.custom_link.1.override_label = logs", + "widget.0.query_value_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.query_value_definition.0.custom_link.1.is_hidden = true", } var datadogDashboardQueryValueFormulaAsserts = []string{ diff --git a/datadog/tests/resource_datadog_dashboard_scatterplot_test.go b/datadog/tests/resource_datadog_dashboard_scatterplot_test.go index 40b5ac30d..f657908ba 100644 --- a/datadog/tests/resource_datadog_dashboard_scatterplot_test.go +++ b/datadog/tests/resource_datadog_dashboard_scatterplot_test.go @@ -45,6 +45,11 @@ resource "datadog_dashboard" "scatterplot_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } } } } @@ -120,9 +125,12 @@ var datadogDashboardScatterplotAsserts = []string{ "widget.0.scatterplot_definition.0.xaxis.0.label = cpu (%)", "widget.0.scatterplot_definition.0.request.0.y.0.aggregator = avg", "widget.0.scatterplot_definition.0.xaxis.0.scale = log", - "widget.0.scatterplot_definition.0.custom_link.# = 1", + "widget.0.scatterplot_definition.0.custom_link.# = 2", "widget.0.scatterplot_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.scatterplot_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.scatterplot_definition.0.custom_link.1.override_label = logs", + "widget.0.scatterplot_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.scatterplot_definition.0.custom_link.1.is_hidden = true", } func TestAccDatadogDashboardScatterplot(t *testing.T) { diff --git a/datadog/tests/resource_datadog_dashboard_service_map_test.go b/datadog/tests/resource_datadog_dashboard_service_map_test.go index 1ac9fa4d6..48ebfa35a 100644 --- a/datadog/tests/resource_datadog_dashboard_service_map_test.go +++ b/datadog/tests/resource_datadog_dashboard_service_map_test.go @@ -20,6 +20,11 @@ resource "datadog_dashboard" "service_map_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } } widget_layout { height = 43 @@ -46,9 +51,12 @@ var datadogDashboardServiceMapAsserts = []string{ "widget.0.servicemap_definition.0.title = env: prod, datacenter:us1.prod.dog, service: master-db", "widget.0.widget_layout.0.height = 43", "widget.0.servicemap_definition.0.filters.1 = datacenter:us1.prod.dog", - "widget.0.servicemap_definition.0.custom_link.# = 1", + "widget.0.servicemap_definition.0.custom_link.# = 2", "widget.0.servicemap_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.servicemap_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.servicemap_definition.0.custom_link.1.override_label = logs", + "widget.0.servicemap_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.servicemap_definition.0.custom_link.1.is_hidden = true", } func TestAccDatadogDashboardServiceMap(t *testing.T) { diff --git a/datadog/tests/resource_datadog_dashboard_timeseries_test.go b/datadog/tests/resource_datadog_dashboard_timeseries_test.go index 251468d3b..140b75e22 100644 --- a/datadog/tests/resource_datadog_dashboard_timeseries_test.go +++ b/datadog/tests/resource_datadog_dashboard_timeseries_test.go @@ -180,6 +180,11 @@ resource "datadog_dashboard" "timeseries_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } legend_layout = "horizontal" legend_columns = ["value", "min", "max"] } @@ -612,9 +617,12 @@ var datadogDashboardTimeseriesAsserts = []string{ "widget.0.timeseries_definition.0.legend_columns.TypeSet = value", "widget.0.timeseries_definition.0.legend_columns.TypeSet = min", "widget.0.timeseries_definition.0.legend_columns.TypeSet = max", - "widget.0.timeseries_definition.0.custom_link.# = 1", + "widget.0.timeseries_definition.0.custom_link.# = 2", "widget.0.timeseries_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.timeseries_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.timeseries_definition.0.custom_link.1.override_label = logs", + "widget.0.timeseries_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.timeseries_definition.0.custom_link.1.is_hidden = true", } var datadogDashboardFormulaAsserts = []string{ diff --git a/datadog/tests/resource_datadog_dashboard_top_list_test.go b/datadog/tests/resource_datadog_dashboard_top_list_test.go index 299a3947f..5ec66cd86 100644 --- a/datadog/tests/resource_datadog_dashboard_top_list_test.go +++ b/datadog/tests/resource_datadog_dashboard_top_list_test.go @@ -29,6 +29,11 @@ resource "datadog_dashboard" "top_list_dashboard" { link = "https://app.datadoghq.com/dashboard/lists" label = "Test Custom Link label" } + custom_link { + link = "https://app.datadoghq.com/dashboard/lists" + is_hidden = true + override_label = "logs" + } } } } @@ -148,9 +153,12 @@ var datadogDashboardTopListAsserts = []string{ "widget.0.toplist_definition.0.request.0.conditional_formats.0.value = 15000", "widget.0.toplist_definition.0.title = Avg of system.core.user over account:prod by service,app", "widget.0.toplist_definition.0.request.0.conditional_formats.0.custom_fg_color =", - "widget.0.toplist_definition.0.custom_link.# = 1", + "widget.0.toplist_definition.0.custom_link.# = 2", "widget.0.toplist_definition.0.custom_link.0.label = Test Custom Link label", "widget.0.toplist_definition.0.custom_link.0.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.toplist_definition.0.custom_link.1.override_label = logs", + "widget.0.toplist_definition.0.custom_link.1.link = https://app.datadoghq.com/dashboard/lists", + "widget.0.toplist_definition.0.custom_link.1.is_hidden = true", } var datadogDashboardTopListFormulaAsserts = []string{ diff --git a/docs/resources/dashboard.md b/docs/resources/dashboard.md index c85656ca5..10bd1c371 100644 --- a/docs/resources/dashboard.md +++ b/docs/resources/dashboard.md @@ -769,10 +769,12 @@ Optional: ### Nested Schema for `widget.change_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -1465,10 +1467,12 @@ Required: ### Nested Schema for `widget.geomap_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -1847,10 +1851,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.change_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -2543,10 +2549,12 @@ Required: ### Nested Schema for `widget.group_definition.widget.geomap_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -2846,10 +2854,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.heatmap_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -3189,10 +3199,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.hostmap_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -3890,10 +3902,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.query_table_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -4256,10 +4270,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.query_value_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -4715,10 +4731,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.scatterplot_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -5360,10 +5378,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.servicemap_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -5390,10 +5410,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.timeseries_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -5965,10 +5987,12 @@ Optional: ### Nested Schema for `widget.group_definition.widget.toplist_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -6475,10 +6499,12 @@ Optional: ### Nested Schema for `widget.heatmap_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -6818,10 +6844,12 @@ Optional: ### Nested Schema for `widget.hostmap_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -7519,10 +7547,12 @@ Optional: ### Nested Schema for `widget.query_table_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -7885,10 +7915,12 @@ Optional: ### Nested Schema for `widget.query_value_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -8344,10 +8376,12 @@ Optional: ### Nested Schema for `widget.scatterplot_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -8989,10 +9023,12 @@ Optional: ### Nested Schema for `widget.servicemap_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -9019,10 +9055,12 @@ Optional: ### Nested Schema for `widget.timeseries_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field. @@ -9594,10 +9632,12 @@ Optional: ### Nested Schema for `widget.toplist_definition.custom_link` -Required: +Optional: +- **is_hidden** (Boolean) The flag for toggling context menu link visibility. - **label** (String) The label for the custom link URL. - **link** (String) The URL of the custom link. +- **override_label** (String) The label id that refers to a context menu link item. When override_label is provided, the client request will omit the label field.