Interface BaselinesClient
public interface BaselinesClient
An instance of this class provides access to all the operations defined in BaselinesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.rest.PagedIterable
<SingleMetricBaselineInner> **Lists the metric baseline values for a resource**.com.azure.core.http.rest.PagedIterable
<SingleMetricBaselineInner> list
(String resourceUri, String metricnames, String metricnamespace, String timespan, Duration interval, String aggregation, String sensitivities, String filter, ResultType resultType, com.azure.core.util.Context context) **Lists the metric baseline values for a resource**.com.azure.core.http.rest.PagedFlux
<SingleMetricBaselineInner> **Lists the metric baseline values for a resource**.com.azure.core.http.rest.PagedFlux
<SingleMetricBaselineInner> listAsync
(String resourceUri, String metricnames, String metricnamespace, String timespan, Duration interval, String aggregation, String sensitivities, String filter, ResultType resultType) **Lists the metric baseline values for a resource**.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<SingleMetricBaselineInner> listAsync(String resourceUri, String metricnames, String metricnamespace, String timespan, Duration interval, String aggregation, String sensitivities, String filter, ResultType resultType) **Lists the metric baseline values for a resource**.- Parameters:
resourceUri
- The identifier of the resource.metricnames
- The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.metricnamespace
- Metric namespace to query metric definitions for.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.aggregation
- The list of aggregation types (comma separated) to retrieve.sensitivities
- The list of sensitivities (comma separated) to retrieve.filter
- The **$filter** is used to reduce the set of metric data returned. Example: Metric contains metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= "dim (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**.resultType
- Allows retrieving only metadata of the baseline. On data request all information is retrieved.- Returns:
- a list of metric baselines as paginated response with
PagedFlux
. - Throws:
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.
-
listAsync
**Lists the metric baseline values for a resource**.- Parameters:
resourceUri
- The identifier of the resource.- Returns:
- a list of metric baselines as paginated response with
PagedFlux
. - Throws:
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.
-
list
**Lists the metric baseline values for a resource**.- Parameters:
resourceUri
- The identifier of the resource.- Returns:
- a list of metric baselines as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<SingleMetricBaselineInner> list(String resourceUri, String metricnames, String metricnamespace, String timespan, Duration interval, String aggregation, String sensitivities, String filter, ResultType resultType, com.azure.core.util.Context context) **Lists the metric baseline values for a resource**.- Parameters:
resourceUri
- The identifier of the resource.metricnames
- The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.metricnamespace
- Metric namespace to query metric definitions for.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.aggregation
- The list of aggregation types (comma separated) to retrieve.sensitivities
- The list of sensitivities (comma separated) to retrieve.filter
- The **$filter** is used to reduce the set of metric data returned. Example: Metric contains metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= "dim (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**.resultType
- Allows retrieving only metadata of the baseline. On data request all information is retrieved.context
- The context to associate with this operation.- Returns:
- a list of metric baselines as paginated response with
PagedIterable
. - Throws:
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.
-