public interface AggregateCounterRepository extends CounterRepository
Modifier and Type | Method and Description |
---|---|
AggregateCount |
getCounts(java.lang.String name,
int nCounts,
AggregateCountResolution resolution)
Query function which returns the last 'n' points for a particular resolution.
|
AggregateCount |
getCounts(java.lang.String name,
int nCounts,
org.joda.time.DateTime end,
AggregateCountResolution resolution)
Queries by requesting a number of points, ending on the given date (inclusive).
|
AggregateCount |
getCounts(java.lang.String name,
org.joda.time.Interval interval,
AggregateCountResolution resolution)
Query function to allow the counts for a specific interval to be retrieved.
|
long |
increment(java.lang.String name,
long amount,
org.joda.time.DateTime dateTime)
Increments the named counter by a specific amount for the given instant.
|
decrement, increment, increment, reset
findAll, findAll
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, save
findAllInRange
long increment(java.lang.String name, long amount, org.joda.time.DateTime dateTime)
AggregateCount getCounts(java.lang.String name, int nCounts, AggregateCountResolution 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)AggregateCount getCounts(java.lang.String name, org.joda.time.Interval interval, AggregateCountResolution 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)AggregateCount getCounts(java.lang.String name, int nCounts, org.joda.time.DateTime end, AggregateCountResolution 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)