public interface MetricsClient
| Modifier and Type | Method and Description |
|---|---|
ResponseInner |
list(String resourceUri)
**Lists the metric values for a resource**.
|
Mono<ResponseInner> |
listAsync(String resourceUri)
**Lists the metric values for a resource**.
|
Mono<ResponseInner> |
listAsync(String resourceUri,
String timespan,
Duration interval,
String metricnames,
String aggregation,
Integer top,
String orderby,
String filter,
ResultType resultType,
String metricnamespace)
**Lists the metric values for a resource**.
|
com.azure.core.http.rest.Response<ResponseInner> |
listWithResponse(String resourceUri,
String timespan,
Duration interval,
String metricnames,
String aggregation,
Integer top,
String orderby,
String filter,
ResultType resultType,
String metricnamespace,
com.azure.core.util.Context context)
**Lists the metric values for a resource**.
|
Mono<com.azure.core.http.rest.Response<ResponseInner>> |
listWithResponseAsync(String resourceUri,
String timespan,
Duration interval,
String metricnames,
String aggregation,
Integer top,
String orderby,
String filter,
ResultType resultType,
String metricnamespace)
**Lists the metric values for a resource**.
|
Mono<com.azure.core.http.rest.Response<ResponseInner>> listWithResponseAsync(String resourceUri, String timespan, Duration interval, String metricnames, String aggregation, Integer top, String orderby, String filter, ResultType resultType, String metricnamespace)
resourceUri - The identifier of the resource.timespan - The timespan of the query. It is a string with the following format
'startDateTime_ISO/endDateTime_ISO'.interval - The interval (i.e. timegrain) of the query.metricnames - The names of the metrics (comma separated) to retrieve.aggregation - The list of aggregation types (comma separated) to retrieve.top - The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.orderby - The aggregation to use for sorting results and the direction of the sort. Only one order can be
specified. Examples: sum asc.filter - The **$filter** is used to reduce the set of metric data
returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series
of C where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq
‘*’**<br>- Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B =
‘b2’**<br>This is invalid because the logical or operator cannot separate two different metadata
names.<br>- Return all time series where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B
eq ‘b1’ and C eq ‘c1’**<br>- Return all time series where A = a1<br>**$filter=A eq ‘a1’ and B eq
‘*’ and C eq ‘*’**.resultType - Reduces the set of data collected. The syntax allowed depends on the operation. See the
operation's description for details.metricnamespace - Metric namespace to query metric definitions for.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ResponseInner> listAsync(String resourceUri, String timespan, Duration interval, String metricnames, String aggregation, Integer top, String orderby, String filter, ResultType resultType, String metricnamespace)
resourceUri - The identifier of the resource.timespan - The timespan of the query. It is a string with the following format
'startDateTime_ISO/endDateTime_ISO'.interval - The interval (i.e. timegrain) of the query.metricnames - The names of the metrics (comma separated) to retrieve.aggregation - The list of aggregation types (comma separated) to retrieve.top - The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.orderby - The aggregation to use for sorting results and the direction of the sort. Only one order can be
specified. Examples: sum asc.filter - The **$filter** is used to reduce the set of metric data
returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series
of C where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq
‘*’**<br>- Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B =
‘b2’**<br>This is invalid because the logical or operator cannot separate two different metadata
names.<br>- Return all time series where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B
eq ‘b1’ and C eq ‘c1’**<br>- Return all time series where A = a1<br>**$filter=A eq ‘a1’ and B eq
‘*’ and C eq ‘*’**.resultType - Reduces the set of data collected. The syntax allowed depends on the operation. See the
operation's description for details.metricnamespace - Metric namespace to query metric definitions for.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ResponseInner> listAsync(String resourceUri)
resourceUri - The identifier of the resource.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ResponseInner list(String resourceUri)
resourceUri - The identifier of the resource.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ResponseInner> listWithResponse(String resourceUri, String timespan, Duration interval, String metricnames, String aggregation, Integer top, String orderby, String filter, ResultType resultType, String metricnamespace, com.azure.core.util.Context context)
resourceUri - The identifier of the resource.timespan - The timespan of the query. It is a string with the following format
'startDateTime_ISO/endDateTime_ISO'.interval - The interval (i.e. timegrain) of the query.metricnames - The names of the metrics (comma separated) to retrieve.aggregation - The list of aggregation types (comma separated) to retrieve.top - The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.orderby - The aggregation to use for sorting results and the direction of the sort. Only one order can be
specified. Examples: sum asc.filter - The **$filter** is used to reduce the set of metric data
returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series
of C where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq
‘*’**<br>- Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B =
‘b2’**<br>This is invalid because the logical or operator cannot separate two different metadata
names.<br>- Return all time series where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B
eq ‘b1’ and C eq ‘c1’**<br>- Return all time series where A = a1<br>**$filter=A eq ‘a1’ and B eq
‘*’ and C eq ‘*’**.resultType - Reduces the set of data collected. The syntax allowed depends on the operation. See the
operation's description for details.metricnamespace - Metric namespace to query metric definitions for.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Copyright © 2020 Microsoft Corporation. All rights reserved.