forked from zorkian/go-datadog-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix zorkian#192 screenboard width and height should support string
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.
- Loading branch information
Brice Figureau
committed
Nov 16, 2018
1 parent
f3f6d2f
commit 21cd18a
Showing
5 changed files
with
76 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"board_title": "dogapi test", | ||
"height": "768", | ||
"id": 6334, | ||
"widgets": [ | ||
{ | ||
"height": 20, | ||
"type": "image", | ||
"url": "http://path/to/image.jpg", | ||
"width": 32, | ||
"x": 32, | ||
"y": 7 | ||
} | ||
], | ||
"width": "100%", | ||
"created": "2015-12-17T23:06:06.703087+00:00", | ||
"modified": "2015-12-17T23:12:26.726234+00:00", | ||
"read_only": false | ||
} |