MetricsQueryOptions Class
- java.
lang. Object - com.
azure. monitor. query. models. MetricsQueryOptions
- com.
public final class MetricsQueryOptions
The model class to configure the metrics query options.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| MetricsQueryOptions() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Aggregation |
getAggregations()
Returns the list of aggregations that should be applied to the metrics data. |
| String |
getFilter()
Returns the filter to be applied to the query. |
| Duration |
getGranularity()
Returns the interval (window size) for which the metric data was returned in. |
| String |
getMetricNamespace()
Returns the namespace of the metrics been queried |
| String |
getOrderBy()
Returns the order in which the query results should be ordered. |
|
Query |
getTimeInterval()
Returns the time span for which the metrics data is queried. |
| Integer |
getTop()
Returns the number of top metrics values to query. |
|
Metrics |
setAggregations(AggregationType[] aggregations)
Sets the list of aggregations that should be applied to the metrics data. |
|
Metrics |
setAggregations(List<AggregationType> aggregations)
Sets the list of aggregations that should be applied to the metrics data. |
|
Metrics |
setFilter(String filter)
Sets the filter to be applied to the query. |
|
Metrics |
setGranularity(Duration granularity)
Sets the interval (window size) for which the metric data was returned in. |
|
Metrics |
setMetricNamespace(String metricNamespace)
Sets the namespace of the metrics been queried |
|
Metrics |
setOrderBy(String orderBy)
Sets the order in which the query results should be ordered. |
|
Metrics |
setTimeInterval(QueryTimeInterval timeInterval)
Sets the time span for which the metrics data is queried. |
|
Metrics |
setTop(Integer top)
Sets the number of top metrics values to query. |
Methods inherited from java.lang.Object
Constructor Details
MetricsQueryOptions
public MetricsQueryOptions()
Method Details
getAggregations
public List<AggregationType> getAggregations()
Returns the list of aggregations that should be applied to the metrics data.
Returns:
getFilter
public String getFilter()
Returns the filter to be applied to the query. The filter users OData format.
Returns:
getGranularity
public Duration getGranularity()
Returns the interval (window size) for which the metric data was returned in.
Returns:
getMetricNamespace
public String getMetricNamespace()
Returns the namespace of the metrics been queried
Returns:
getOrderBy
public String getOrderBy()
Returns the order in which the query results should be ordered.
Returns:
getTimeInterval
public QueryTimeInterval getTimeInterval()
Returns the time span for which the metrics data is queried.
Returns:
getTop
public Integer getTop()
Returns the number of top metrics values to query.
Returns:
setAggregations
public MetricsQueryOptions setAggregations(AggregationType[] aggregations)
Sets the list of aggregations that should be applied to the metrics data.
Parameters:
Returns:
setAggregations
public MetricsQueryOptions setAggregations(List<AggregationType> aggregations)
Sets the list of aggregations that should be applied to the metrics data.
Parameters:
Returns:
setFilter
public MetricsQueryOptions setFilter(String filter)
Sets the filter to be applied to the query. The filter users OData format.
Parameters:
Returns:
setGranularity
public MetricsQueryOptions setGranularity(Duration granularity)
Sets the interval (window size) for which the metric data was returned in.
Parameters:
Returns:
setMetricNamespace
public MetricsQueryOptions setMetricNamespace(String metricNamespace)
Sets the namespace of the metrics been queried
Parameters:
Returns:
setOrderBy
public MetricsQueryOptions setOrderBy(String orderBy)
Sets the order in which the query results should be ordered.
Parameters:
Returns:
setTimeInterval
public MetricsQueryOptions setTimeInterval(QueryTimeInterval timeInterval)
Sets the time span for which the metrics data is queried.
Parameters:
Returns:
setTop
public MetricsQueryOptions setTop(Integer top)
Sets the number of top metrics values to query.
Parameters:
Returns: