public interface Client
| Modifier and Type | Method and Description |
|---|---|
RollupResponse |
createRollup(RollupBuilder builder) |
Response |
delete(QueryBuilder builder)
Deletes data in KairosDB using the query built by the builder.
|
Response |
deleteMetric(String name)
Deletes a metric.
|
Response |
deleteRollup(String id) |
Class |
getDataPointValueClass(String groupType)
Returns the data point value class for the given group type or null if one is not registered for the group type
|
GetResponse |
getMetricNames()
Returns a list of all metric names.
|
int |
getRetryCount()
Returns the number of retries.
|
RollupResponse |
getRollupTask(String id) |
RollupResponse |
getRollupTasks() |
GetResponse |
getStatus()
Returns status of Kairos Instance.
|
GetResponse |
getTagNames()
Returns a list of all tag names.
|
GetResponse |
getTagValues()
Returns a list of all tag values.
|
Response |
pushMetrics(MetricBuilder builder)
Sends metrics from the builder to the KairosDB server.
|
QueryResponse |
query(QueryBuilder builder)
Queries KairosDB using the query built by the builder.
|
QueryTagResponse |
queryTag(QueryTagBuilder builder)
Queries KairosDB tags using the query built by the builder.
|
void |
registerCustomDataType(String groupType,
Class dataPointValueClass)
Registers a new custom data type.
|
void |
shutdown()
Shuts down the client.
|
RollupResponse createRollup(RollupBuilder builder) throws IOException
IOExceptionResponse deleteRollup(String id) throws IOException
IOExceptionRollupResponse getRollupTasks() throws IOException
IOExceptionRollupResponse getRollupTask(String id) throws IOException
IOExceptionGetResponse getMetricNames() throws IOException
IOException - if the JSON returned could not be properly processedGetResponse getTagNames() throws IOException
IOException - if the JSON returned could not be properly processedGetResponse getTagValues() throws IOException
IOException - if the JSON returned could not be properly processedGetResponse getStatus() throws IOException
IOException - if the JSON returned could not be properly processedQueryResponse query(QueryBuilder builder) throws URISyntaxException, IOException
builder - query builderURISyntaxException - if the host or post is invalidIOException - problem occurred querying the serverQueryTagResponse queryTag(QueryTagBuilder builder) throws URISyntaxException, IOException
builder - query tag builderURISyntaxException - if the host or post is invalidIOException - problem occurred querying the serverResponse pushMetrics(MetricBuilder builder) throws URISyntaxException, IOException
builder - metrics builderURISyntaxException - if the host or post is invalidIOException - problem occurred sending to the serverResponse deleteMetric(String name) throws IOException
name - the metric to deleteIOException - problem occurred sending to the serverResponse delete(QueryBuilder builder) throws URISyntaxException, IOException
builder - query builderURISyntaxException - if the host or post is invalidIOException - problem occurred querying the serverint getRetryCount()
void shutdown()
throws IOException
IOException - if could not shutdown the clientvoid registerCustomDataType(String groupType, Class dataPointValueClass)
groupType - type used to deserialize the json on the clientdataPointValueClass - class that is the value of a data pointCopyright © 2018. All rights reserved.