Class TimeSeriesAggregationQuery


  • public class TimeSeriesAggregationQuery
    extends Object
    • Method Detail

      • range

        public TimeSeriesAggregationQuery range​(long from,
                                                long to)
        Specifies a time range for the query
        Parameters:
        from - the beginning of the time range in ms (Epoch time)
        to - the end of the time range (Epoch time)
        Returns:
        the builder
      • filter

        public TimeSeriesAggregationQuery filter​(Map<String,​String> filters)
        Specifies the mandatory list of key-value attributes that the series should match
        Parameters:
        filters - the mandatory key-value attributes that the series should match
        Returns:
        the builder
      • window

        public TimeSeriesAggregationQuery window​(long resolution)
        Defines the desired resolution.
        If the desired resolution isn't a multiple of the source resolution it will floored to the closest valid resolution
        Parameters:
        resolution - the desired resolution in ms
        Returns:
        the builder
      • split

        public TimeSeriesAggregationQuery split​(long targetNumberOfBuckets)
        Specifies the desired number of buckets in the result. - For targetNumberOfBuckets = 1 the resulting number of buckets will be exactly 1 - For targetNumberOfBuckets > 1 the resulting number of buckets will be as close as possible to the specified target
        Parameters:
        targetNumberOfBuckets - the desired number of buckets in the result
        Returns:
        the builder
      • getGroupDimensions

        protected Set<String> getGroupDimensions()
      • getBucketIndexFrom

        protected Long getBucketIndexFrom()
      • getBucketIndexTo

        protected Long getBucketIndexTo()
      • drawAxis

        protected List<Long> drawAxis()
      • getProjectionFunction

        protected Function<Long,​Long> getProjectionFunction()
      • getBucketSize

        protected long getBucketSize()