AggregateGroupByPeriodRequest


public final 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(
    @NonNull Set<@NonNull AggregateMetric<@NonNull ?>> metrics,
    @NonNull TimeRangeFilter timeRangeFilter,
    @NonNull Period timeRangeSlicer,
    @NonNull Set<@NonNull DataOrigin> dataOriginFilter
)

Public methods

boolean
equals(Object other)
int

Public constructors

AggregateGroupByPeriodRequest

public AggregateGroupByPeriodRequest(
    @NonNull Set<@NonNull AggregateMetric<@NonNull ?>> metrics,
    @NonNull TimeRangeFilter timeRangeFilter,
    @NonNull Period timeRangeSlicer,
    @NonNull Set<@NonNull DataOrigin> dataOriginFilter
)
Parameters
@NonNull Set<@NonNull AggregateMetric<@NonNull ?>> metrics

Set of AggregateMetrics to aggregate.

@NonNull TimeRangeFilter timeRangeFilter

The TimeRangeFilter to read from.

@NonNull Period timeRangeSlicer

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

@NonNull Set<@NonNull DataOrigin> dataOriginFilter

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

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()