-
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
Screenboard width and height should stay as type string #192
Labels
Comments
I agree that |
masterzen
pushed a commit
to masterzen/go-datadog-api
that referenced
this issue
Nov 16, 2018
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.
mrwonko
added a commit
to mrwonko/go-datadog-api
that referenced
this issue
Mar 1, 2019
Besides integer sizes in pixel (e.g. 768) the API can also return percentages (e.g. "100%"). Fixes zorkian#192
mrwonko
added a commit
to mrwonko/go-datadog-api
that referenced
this issue
Mar 1, 2019
Besides integer sizes in pixel (e.g. 768) the API can also return percentages (e.g. "100%"). Fixes zorkian#192
mrwonko
added a commit
to mrwonko/go-datadog-api
that referenced
this issue
Mar 4, 2019
Besides integer sizes in pixel (e.g. 768) the API can also return percentages (e.g. "100%"). Fixes zorkian#192
masterzen
pushed a commit
to masterzen/go-datadog-api
that referenced
this issue
Sep 6, 2019
Besides integer sizes in pixel (e.g. 768) the API can also return percentages (e.g. "100%"). Fixes zorkian#192
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
#190 changed the type for
Screenboard.Height
andScreenboard.Width
from*string
to*int
(see https://github.com/zorkian/go-datadog-api/pull/190/files#diff-7d71d2abb56836dce85c7c7b114c80dcL20) but I believe they should stay as strings, at leastwidth
since it can be something like"100%"
.The text was updated successfully, but these errors were encountered: