Class 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 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 name
        values - tag values
        Returns:
        the metric
      • getName

        public String getName()
      • getTags

        public com.google.common.collect.ListMultimap<String,​String> getTags()