AggregationResultGroupedByDuration

public final class AggregationResultGroupedByDuration


Contains an aggregation result within a duration slice.

Summary

Public methods

final @NonNull Instant

end time of the slice.

final @NonNull AggregationResult

contains AggregationResult with metrics included in the request.

final @NonNull Instant

start time of the slice.

final @NonNull ZoneOffset

zoneOffset of underlying record within the slice.

Public methods

getEndTime

Added in 1.1.0-alpha07
public final @NonNull Instant getEndTime()

end time of the slice.

getResult

Added in 1.1.0-alpha07
public final @NonNull AggregationResult getResult()

contains AggregationResult with metrics included in the request.

getStartTime

Added in 1.1.0-alpha07
public final @NonNull Instant getStartTime()

start time of the slice.

getZoneOffset

Added in 1.1.0-alpha07
public final @NonNull ZoneOffset getZoneOffset()

zoneOffset of underlying record within the slice. If underlying records have mixed ZoneOffset, the first one is returned. Use this to render result in user local time and handle scenarios involving Day Light Savings, such as "hourly steps on a given date".