Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show_legend in timeseries_definition not updating on new API #323

Closed
SipkeW opened this issue Sep 25, 2019 · 0 comments · Fixed by #329
Closed

show_legend in timeseries_definition not updating on new API #323

SipkeW opened this issue Sep 25, 2019 · 0 comments · Fixed by #329

Comments

@SipkeW
Copy link

SipkeW commented Sep 25, 2019

Terraform Version

Terraform v0.12.9

  • provider.datadog v2.4.0

Affected Resource(s)

timeseries_definition using resource "datadog_dashboard"

Terraform Configuration Files

  widget { #pseudo code
    timeseries_definition {   
        show_legend = true
        title       = widget.value["title"]
        title_size  = 16
        title_align = "left"
        request {
          q            = widget.value["query"]
          display_type = widget.value["display_type"]
          style {
            palette    = "cool"
            line_type  = "solid"
            line_width = "normal"
          }
        }
  }

terraform apply

          ~ timeseries_definition {
              ~ show_legend = false -> true
                time        = {}
                title       = "Write Requests"
                title_align = "left"
                title_size  = "16"

                request {
                    display_type = "bars"
                    q            = "sum:azure.datalakestore_accounts.write_requests{$var,$subscription,$resource_group,$region} by {name}.as_count()"

                    style {
                        line_type  = "solid"
                        line_width = "normal"
                        palette    = "cool"
                    }
                }
            }
        }

terraform show

(ran after succesfull apply obviously )

timeseries_definition {
            show_legend = false
            time        = {}
            title       = "Write Requests"
            title_align = "left"
            title_size  = "16"

            request {
                display_type = "bars"
                q            = "sum:azure.datalakestore_accounts.write_requests{$var,$subscription,$resource_group,$region} by {name}.as_count()"

                style {
                    line_type  = "solid"
                    line_width = "normal"
                    palette    = "cool"
                }
            }
        }
    }

Expected Behavior

show_legend should be set to 'true'

Actual Behavior

Terraform 'said' it would change to 'true' but it didn't

Steps to Reproduce

as layed out above:

  1. create a timeseries_definition with show_legend set to 'true'
  2. terraform apply
  3. terraform show, or just login to datadog, and verifiy there.

Important Factoids

nothing special as far as i can tell. It could be that this is not yet implemented, since there's no reference on the manual pages either.

References

not yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant