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

Datadog Dashboards can have non-numeric IDs, but this isn't supported #26

Open
thundergolfer opened this issue Dec 10, 2019 · 2 comments

Comments

@thundergolfer
Copy link

thundergolfer commented Dec 10, 2019

🐛

ris-aew-hdc is an example. The Datadog docs now show this type of ID as well: https://docs.datadoghq.com/api/?lang=python#get-a-dashboard

Actual Behaviour

./dd2tf dashboards --ids ris-aew-hdc
invalid argument "ris-aew-hdc" for "--ids" flag: strconv.Atoi: parsing "ris-aew-hdc": invalid syntax
Usage of dashboards:
      --all        Export all available elements.
      --debug      Enable debug output.
      --files      Save each element into a separate file.
      --ids ints   IDs of the elements to fetch.
invalid argument "ris-aew-hdc" for "--ids" flag: strconv.Atoi: parsing "ris-aew-hdc": invalid syntax

Expected Behaviour

whatever working looks like 😅

@matt-canty-dragon
Copy link

Looks like the fix would start here:
https://github.com/amnk/dd2tf/blob/master/main.go#L36

go-datadog-api supports string or int at first glance.

Related: zorkian/go-datadog-api#308

@inductor
Copy link

It seems that https://github.com/zorkian/go-datadog-api/blob/master/boards.go is a new implementation for it

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

No branches or pull requests

3 participants