diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index c84d091ecc..3a117af5e2 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -2355,13 +2355,17 @@ func getManageStatusDefinitionSchema() map[string]*schema.Schema { Type: schema.TypeString, Optional: true, }, + // The count param is deprecated "count": { - Type: schema.TypeInt, - Optional: true, + Type: schema.TypeInt, + Deprecated: "This parameter may be removed from the dashboard API in the future", + Optional: true, }, + // The start param is deprecated "start": { - Type: schema.TypeInt, - Optional: true, + Type: schema.TypeInt, + Deprecated: "This parameter may be removed from the dashboard API in the future", + Optional: true, }, "display_format": { Type: schema.TypeString, diff --git a/datadog/resource_datadog_screenboard.go b/datadog/resource_datadog_screenboard.go index 591c52fe29..b2cd053537 100644 --- a/datadog/resource_datadog_screenboard.go +++ b/datadog/resource_datadog_screenboard.go @@ -1208,6 +1208,7 @@ func buildWidgets(tfWidgets *[]interface{}) []datadog.Widget { matches: []match{ {"sort", &d.Params.Sort}, {"text", &d.Params.Text}, + // The count and start params are deprecated for the monitor summary widget {"count", &d.Params.Count}, {"start", &d.Params.Start}, }}) diff --git a/website/docs/r/dashboard.html.markdown b/website/docs/r/dashboard.html.markdown index 0d0e65bf66..8cab544dd2 100644 --- a/website/docs/r/dashboard.html.markdown +++ b/website/docs/r/dashboard.html.markdown @@ -493,13 +493,11 @@ resource "datadog_dashboard" "free_dashboard" { widget { manage_status_definition { color_preference = "text" - count = 50 display_format = "countsAndList" hide_zero_counts = true query = "type:metric" show_last_triggered = false sort = "status,asc" - start = 0 summary_type = "monitors" title = "Widget Title" title_size = 16 @@ -685,9 +683,7 @@ Nested `widget` blocks have the following structure: - `manage_status_definition`: The definition for a Manage Status, aka Monitor Summary, widget. Exactly one nested block is allowed with the following structure: - `query`: (Required) The query to use in the widget. - `summary_type` - (Optional) The monitor summary type to use. One of "monitors", "groups", or "combined". Defaults to "monitors". - - `sort` - (Optional) The method to use to sort monitors. One of : "desc" or "asc". - `count` - (Optional) The number of monitors to display. - `start` - (Optional) The start of the list. Typically 0. + - `sort` - (Optional) The method to use to sort monitors. Example: "status,asc". - `display_format` - (Optional") The display setting to use. One of "counts", "list", or "countsAndList". - `color_preference` - (Optional") Whether to colorize text or background. One of "text", "background". - `hide_zero_counts` - (Optional") Boolean indicating whether to hide empty categories. diff --git a/website/docs/r/screenboard.html.markdown b/website/docs/r/screenboard.html.markdown index 13aeff5671..e5bf9ebb4e 100644 --- a/website/docs/r/screenboard.html.markdown +++ b/website/docs/r/screenboard.html.markdown @@ -409,8 +409,6 @@ resource "datadog_screenboard" "acceptance_test" { params = { sort = "status,asc" text = "status:alert" - count = 50 - start = 0 } } @@ -544,8 +542,6 @@ Nested `widget` `params` blocks have the following structure: - `sort` - (Optional) The method to use to sort monitors. Example: "status,asc". - `text` - (Optional) The query to use to get monitors. Example: "status:alert". -- `count` - (Optional) The number of monitors to display. -- `start` - (Optional) The start of the list. Typically 0. ### Nested `widget` `tile_def` blocks