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

Fix #192 screenboard width and height should support string #196

Closed
wants to merge 1 commit into from

Conversation

masterzen
Copy link

Datadog API for screenboards width and height can return either numbers, number as strings (like “1024”) or even strings (like “100%”).

The recent fix #190 changed those fields to be only ints, breaking the compatibility with some datadog screen boards (notably the ones returning "100%").

As suggested in #192 this change fixes the issue by making the fields become json.Number which should cover all possible returned values.

Datadog API for screenboards width and height can return either numbers
, number (like “1024”) strings or even strings (like “100%”).
The recent fix zorkian#190 changed those fields to be only ints, breaking
the compatibility with some datadog screen boards.
As suggested in zorkian#192 this change fixes the issue by making the fields
become `json.Number` which should cover all possible returned values.
@masterzen
Copy link
Author

Damned, I hadn't seen @kterada0509 had pushed PR #195 for #192 issue.
/me closing this one.

@masterzen masterzen closed this Nov 16, 2018
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 this pull request may close these issues.

1 participant