public interface MeasurementFetchStrategy
Modifier and Type | Method and Description |
---|---|
FetchResults |
fetch(long start,
long end,
long step,
int maxrows,
Long interval,
Long heartbeat,
List<Source> sources,
boolean relaxed)
Fetches the measurements for the given sources.
|
FetchResults fetch(long start, long end, long step, int maxrows, Long interval, Long heartbeat, List<Source> sources, boolean relaxed) throws Exception
start
- timestamp in millisecondsend
- timestamp in millisecondsstep
- desired resolution in milliseconds - actual resolution might differmaxrows
- maximum number of rows - no limit when <= 0interval
- duration in milliseconds, used by strategies that implement late aggregationheartbeat
- duration in milliseconds, used by strategies that implement late aggregationsources
- array of sources - these should have unique labelsrelaxed
- if false
a missing source results in a return of null
.
true
on the other hand ignores that source.Exception
Copyright © 2021. All rights reserved.