public class QueryResponse extends Response
| Constructor and Description |
|---|
QueryResponse(JsonMapper mapper,
int responseCode,
InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Returns the body response as a string.
|
List<Query> |
getQueries()
Returns a list of query results returned by KairosDB.
|
Query |
getQueryResponse(String metricName) |
addErrors, getBody, getErrors, getStatusCode, setStatusCodepublic QueryResponse(JsonMapper mapper, int responseCode, InputStream stream) throws IOException
IOExceptionpublic List<Query> getQueries() throws IOException
IOException - if could not map response to Queries objectcom.google.gson.JsonSyntaxException - if the response is not JSON or is invalid JSONpublic String getBody()
Copyright © 2018. All rights reserved.