public final class MetricsQueryOptions extends Object
Constructor and Description |
---|
MetricsQueryOptions() |
Modifier and Type | Method and Description |
---|---|
List<AggregationType> |
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.
|
com.azure.core.experimental.models.TimeInterval |
getTimeInterval()
Returns the time span for which the metrics data is queried.
|
Integer |
getTop()
Returns the number of top metrics values to query.
|
MetricsQueryOptions |
setAggregations(AggregationType... aggregations)
Sets the list of aggregations that should be applied to the metrics data.
|
MetricsQueryOptions |
setAggregations(List<AggregationType> aggregations)
Sets the list of aggregations that should be applied to the metrics data.
|
MetricsQueryOptions |
setFilter(String filter)
Sets the filter to be applied to the query.
|
MetricsQueryOptions |
setGranularity(Duration granularity)
Sets the interval (window size) for which the metric data was returned in.
|
MetricsQueryOptions |
setMetricNamespace(String metricNamespace)
Sets the namespace of the metrics been queried
|
MetricsQueryOptions |
setOrderBy(String orderBy)
Sets the order in which the query results should be ordered.
|
MetricsQueryOptions |
setTimeInterval(com.azure.core.experimental.models.TimeInterval timeInterval)
Sets the time span for which the metrics data is queried.
|
MetricsQueryOptions |
setTop(Integer top)
Sets the number of top metrics values to query.
|
public com.azure.core.experimental.models.TimeInterval getTimeInterval()
public MetricsQueryOptions setTimeInterval(com.azure.core.experimental.models.TimeInterval timeInterval)
timeInterval
- the time span for which the metrics data is queried.public Duration getGranularity()
public MetricsQueryOptions setGranularity(Duration granularity)
granularity
- The interval (window size) for which the metric data was returned in.public List<AggregationType> getAggregations()
public MetricsQueryOptions setAggregations(List<AggregationType> aggregations)
aggregations
- the list of aggregations that should be applied to the metrics data.public MetricsQueryOptions setAggregations(AggregationType... aggregations)
aggregations
- the list of aggregations that should be applied to the metrics data.public Integer getTop()
public MetricsQueryOptions setTop(Integer top)
top
- the number of top metrics values to query.public String getOrderBy()
public MetricsQueryOptions setOrderBy(String orderBy)
orderBy
- the order in which the query results should be ordered.public String getFilter()
public MetricsQueryOptions setFilter(String filter)
filter
- the filter to be applied to the query. The filter users OData format.public String getMetricNamespace()
public MetricsQueryOptions setMetricNamespace(String metricNamespace)
metricNamespace
- the namespace of the metrics been queriedCopyright © 2021 Microsoft Corporation. All rights reserved.