public interface Client
Modifier and Type | Method and Description |
---|---|
Response |
delete(QueryBuilder builder)
Deletes data in KairosDB using the query built by the builder.
|
Response |
deleteMetric(String name)
Deletes a metric.
|
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.
|
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.
|
void |
registerCustomDataType(String groupType,
Class dataPointValueClass)
Registers a new custom data type.
|
void |
shutdown()
Shuts down the client.
|
GetResponse 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 processedQueryResponse query(QueryBuilder builder) throws URISyntaxException, IOException
builder
- query 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
void registerCustomDataType(String groupType, Class dataPointValueClass)
groupType
- type used to deserialize the json on the clientdataPointValueClass
- class that is the value of a data pointCopyright © 2014. All rights reserved.