-
Notifications
You must be signed in to change notification settings - Fork 156
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
GetDashboard Fails Fatal When Scatterplot Exists in Dashboard #281
Comments
Here's the functioning change I've come up with thus far.
Further below I added a custom unmarshaler for GraphDefinition data:
|
I am also having this problem, and an additional problem with
|
I think that using the custom unmarshaller is a reasonable way to go forward in this issue - I'd accept a PR that implements that. However, there is another way - using the |
@bkabrda please double check me, but when I used |
Am I missing something |
When a Dashboard in Datadog contains a scatterplot, the resulting API response from GetDashboard cannot be parsed.
Error:
Related code: https://github.com/zorkian/go-datadog-api/blob/master/dashboards.go#L163
A scatterplot in the API response looks like the following, note the viz type of scatterplot:
As you can see "requests" is no longer a slice, causing deserialization issues.
Unfortunately I can't come up with a backwards compatible way to support scatterplots. Although I'm working on parsing this in a fork with a custom unmarshaler.
The text was updated successfully, but these errors were encountered: