AggregateGroupByPeriodRequest


class AggregateGroupByPeriodRequest


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

timeRangeSlicer contains a Period of variable length time intervals, such as per day, which may be anywhere between 23, 24, or 25 hour. Use AggregateGroupByDurationRequest if time slice is of fixed intervals, such as an hour, every ten minutes.

Summary

Public constructors

AggregateGroupByPeriodRequest(
    metrics: Set<AggregateMetric<*>>,
    timeRangeFilter: TimeRangeFilter,
    timeRangeSlicer: Period,
    dataOriginFilter: Set<DataOrigin>
)

Public functions

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

Public constructors

AggregateGroupByPeriodRequest

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

Set of AggregateMetrics to aggregate.

timeRangeFilter: TimeRangeFilter

The TimeRangeFilter to read from.

timeRangeSlicer: Period

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