public interface MetricsQuery
| Modifier and Type | Method and Description | 
|---|---|
| MetricsQuery | endDate(Date endTime)Restrict to data collected before the given date (exclusive) | 
| List<MetricIntervalValue> | interval()Returns the metrics summed up and aggregated on a time interval. | 
| List<MetricIntervalValue> | interval(long interval)Returns the metrics summed up and aggregated on a time interval. | 
| MetricsQuery | limit(int maxResults)Sets the limit row count of the result. | 
| MetricsQuery | name(String name) | 
| MetricsQuery | offset(int offset)Sets the offset of the returned results. | 
| MetricsQuery | reporter(String reporter)Restrict to data collected by the reported with the given identifier | 
| MetricsQuery | startDate(Date startTime)Restrict to data collected after the given date (inclusive) | 
| long | sum() | 
MetricsQuery name(String name)
name - The name of the metrics to query forin {@link Metrics} for a list of names which can be used here.MetricsQuery reporter(String reporter)
MetricsQuery startDate(Date startTime)
MetricsQuery endDate(Date endTime)
MetricsQuery offset(int offset)
offset - indicates after which row the result beginsMetricsQuery limit(int maxResults)
maxResults - the new row limit of the resultList<MetricIntervalValue> interval()
List<MetricIntervalValue> interval(long interval)
interval - The time interval on which the metrics should be aggregated.
                  The time unit is seconds.long sum()
Copyright © 2018. All rights reserved.