Skip to content

Commit

Permalink
Updated version in the pom and the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsabin committed Mar 4, 2017
1 parent 5349686 commit 2002eb6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ Optionally, tags may be added to narrow down the search.
HttpClient client = new HttpClient("http://localhost:8080");
QueryResponse response = client.query(builder);
client.shutdown();

## Querying Metric Tags

Querying metric tags is done by using the QueryTagBuilder class. A query requires a date range. The start date is
required, but the end date defaults to NOW if not specified. The metric(s) that you are querying for is also required.
Optionally, tags may be added to narrow down the search.

QueryTagBuilder builder = QueryTagBuilder.getInstance();
builder.setStart(2, TimeUnit.MONTHS)
.setEnd(1, TimeUnit.MONTHS)
.addMetric("metric1")
HttpClient client = new HttpClient("http://localhost:8080");
QueryTagResponse response = client.queryTag(builder);
client.shutdown();

## Querying Metric Names

Expand Down Expand Up @@ -141,7 +155,7 @@ Last, you must cast to your new type following a query for a metric.

## KairosDB compatibility

Version 2.1.1 of the client was tested with KairosDB version 1.1.2-1.
Version 2.2.0 of the client was tested with KairosDB version 1.1.3-1.

## Copyright and License

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.kairosdb</groupId>
<artifactId>client</artifactId>
<version>2.2.0-SNAPSHOT</version>
<version>2.2.0</version>
<packaging>jar</packaging>

<name>kairosclient</name>
Expand Down

0 comments on commit 2002eb6

Please sign in to comment.