You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.
What I would have expected was this checks data would match what is provided with the /events api and it mainly is, with one notable exception. The history array is switched to a list of strings:
The datatypes returned for history from /results and /events should match.
Current Behavior
As described above, different datatypes are shown for check history
Steps to Reproduce (for bugs)
hit /events for any event with history
hit /results and look up that same check
Context
Discovered while writing a go application talking to sensu. The json lib failed to unmarshal responses where the same struct was used for both endpoints.
Your Environment
Sensu version used: 1.4.2
Operating System and version: CentOS 7
RabbitMQ version: 3.6.9-1
The text was updated successfully, but these errors were encountered:
When I hit /results for the current status of a check with the api, the history of the last few checks can be seen as expected as a list of int's:
What I would have expected was this checks data would match what is provided with the /events api and it mainly is, with one notable exception. The history array is switched to a list of strings:
Expected Behavior
The datatypes returned for history from /results and /events should match.
Current Behavior
As described above, different datatypes are shown for check history
Steps to Reproduce (for bugs)
Context
Discovered while writing a go application talking to sensu. The json lib failed to unmarshal responses where the same struct was used for both endpoints.
Your Environment
The text was updated successfully, but these errors were encountered: