-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update QueryResponse type to parse errMessage and errType
Ref: https://code.vmware.com/apis/714/wavefront-rest#/Query/queryApi. The model for QueryResult here says there can be two optional string types which represent errors: * errType * errMessage I have frequently seen wavefront return statuses like 'Query Execution Terminated', in errType fields. Without these types defined, there is no way for clients to know the query execution failed on the server.
- Loading branch information
Ankur Huralikoppi
committed
Nov 22, 2019
1 parent
0e31d81
commit b40d576
Showing
3 changed files
with
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"query": "ts(servers.load.load.longterm, source=server1.example.net)", | ||
"errorType": "QueryExecutionFailed", | ||
"errorMessage": "Terminating Query to save resources" | ||
} |
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