Package org.kairosdb.client.builder
Class QueryTagMetric
- java.lang.Object
-
- org.kairosdb.client.builder.QueryTagMetric
-
public class QueryTagMetric extends Object
Query request for tags. You can narrow down the query by adding tags. Only metrics that include the tag and matches one of the values are returned.
-
-
Constructor Summary
Constructors Constructor Description QueryTagMetric(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryTagMetricaddTag(String name, String... values)Adds a tag with multiple values.QueryTagMetricaddTag(String name, Set<String> values)QueryTagMetricaddTags(Map<String,String> tags)Add a map of tags.StringgetName()com.google.common.collect.ListMultimap<String,String>getTags()
-
-
-
Constructor Detail
-
QueryTagMetric
public QueryTagMetric(String name)
-
-
Method Detail
-
addTags
public QueryTagMetric addTags(Map<String,String> tags)
Add a map of tags. This narrows the query to only show metadata associated with the tags' values.- Parameters:
tags- tags to add- Returns:
- the metric
-
addTag
public QueryTagMetric addTag(String name, String... values)
Adds a tag with multiple values. This narrows the query to only show metadata associated with the tag's values.- Parameters:
name- tag namevalues- tag values- Returns:
- the metric
-
addTag
public QueryTagMetric addTag(String name, Set<String> values)
-
getName
public String getName()
-
-