public interface SampleRepository extends SampleSetDispatcher
| Modifier and Type | Method and Description |
|---|---|
Results |
find(SampleProcessorBuilder builder,
Timestamp start,
Timestamp end,
Resource resource,
Metric... metrics)
Returns measurements for a set of metrics, a given resource, and a time
range.
|
saveResults find(SampleProcessorBuilder builder, Timestamp start, Timestamp end, Resource resource, Metric... metrics)
Passing a null value for start or end serves to make that
end of the temporal range unbounded. For example, a null start will
return all matching measurements up to the end Timestamp. Passing
both a null start and end will return all measurements
for the matching metrics (so be careful).
Note: There is no guarantee that a sample period will include results for every requested metric (or any of them, in fact); Missing samples are recorded with a value of Double.NaN.
processor - a processor that processes the data as it is read.start - the start time of this search.end - the end time of this search.resource - the resource to query.metrics - a sequence of metrics to include in the results.Results instance containing the results of the search.Copyright © 2016. All rights reserved.