AggregateGroupByDurationRequest


class AggregateGroupByDurationRequest


Request object to read time bucketed aggregations for given AggregateMetrics in Android Health Platform.

timeRangeSlicer contains a Duration of fixed physical time intervals, such as per hour, per ten minutes or so. Prefer AggregateGroupByPeriodRequest, if you would like variable length time intervals, such as per day, which may or may not include DST (23 or 25 hour).

Summary

Public constructors

AggregateGroupByDurationRequest(
    metrics: Set<AggregateMetric<*>>,
    timeRangeFilter: TimeRangeFilter,
    timeRangeSlicer: Duration,
    dataOriginFilter: Set<DataOrigin>
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public constructors

AggregateGroupByDurationRequest

AggregateGroupByDurationRequest(
    metrics: Set<AggregateMetric<*>>,
    timeRangeFilter: TimeRangeFilter,
    timeRangeSlicer: Duration,
    dataOriginFilter: Set<DataOrigin> = emptySet()
)
Parameters
metrics: Set<AggregateMetric<*>>

Set of AggregateMetrics to aggregate.

timeRangeFilter: TimeRangeFilter

The TimeRangeFilter to read from.

timeRangeSlicer: Duration

The bucket size of each returned aggregate row. timeRangeFilter will be sliced into several equal-sized time buckets (except for the last one).

dataOriginFilter: Set<DataOrigin> = emptySet()

Set of DataOrigins to read from, or empty for no filter.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int