Class QueryTagBuilder


  • public class QueryTagBuilder
    extends AbstractQueryBuilder<QueryTagBuilder>
    Builder used to create the JSON to query tags from KairosDB.

    This is similar to a regular query but just returns the tags (no data points) for the range specified. The time range can be specified as absolute or relative. Absolute times are a given point in time. Relative times are relative to now. The end time is not required and defaults to now.

    For example, if you specify a relative start time of 30 minutes, all matching data points for the last 30 minutes will be returned. If you specify a relative start time of 30 minutes and a relative end time of 10 minutes, then all matching data points that occurred between the last 30 minutes up to and including the last 10 minutes are returned.
    • Method Detail

      • getInstance

        public static QueryTagBuilder getInstance()
        Returns a new query tag builder.
        Returns:
        new query tag builder
      • addMetric

        public QueryTagMetric addMetric​(String name)
        The metric to query tag for.
        Parameters:
        name - metric name
        Returns:
        the builder
      • getMetrics

        public List<QueryTagMetric> getMetrics()
        Returns the list metrics to query for tags.
        Returns:
        metrics