public interface AggregateCounterReader
| Modifier and Type | Method and Description |
|---|---|
AggregateCounter |
findOne(String name)
Retrieve a single counter by name.
|
AggregateCounter |
getCounts(String name,
int nCounts,
AggregateCounterResolution resolution)
Query function which returns the last 'n' points for a particular resolution.
|
AggregateCounter |
getCounts(String name,
int nCounts,
org.joda.time.DateTime end,
AggregateCounterResolution resolution)
Queries by requesting a number of points, ending on the given date (inclusive).
|
AggregateCounter |
getCounts(String name,
org.joda.time.Interval interval,
AggregateCounterResolution resolution)
Query function to allow the counts for a specific interval to be retrieved for the given resolution.
|
List<String> |
list()
List the names of all available aggregate counters.
|
AggregateCounter getCounts(String name, int nCounts, AggregateCounterResolution resolution)
name - the counter to querynCounts - the number of data points to returnresolution - the resolution at which the data should be returned (minute, hour, day, month)AggregateCounter getCounts(String name, org.joda.time.Interval interval, AggregateCounterResolution resolution)
name - the counter to queryinterval - the time interval to return data for. Includes start and end.resolution - the resolution at which the data should be returned (minute, hour, day, month)AggregateCounter getCounts(String name, int nCounts, org.joda.time.DateTime end, AggregateCounterResolution resolution)
name - the counter to queryend - the end of the query interval (inclusive). Cannot be null.nCounts - the number of data points to returnresolution - the resolution at which the data should be returned (minute, hour, day, month)AggregateCounter findOne(String name)
name - the counter to queryCopyright © 2016 Pivotal Software, Inc.. All rights reserved.