Interface MetricDefinitionsClient
public interface MetricDefinitionsClient
An instance of this class provides access to all the operations defined in MetricDefinitionsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.rest.PagedIterable<MetricDefinitionInner> Lists the metric definitions for the resource.com.azure.core.http.rest.PagedIterable<MetricDefinitionInner> Lists the metric definitions for the resource.com.azure.core.http.rest.PagedFlux<MetricDefinitionInner> Lists the metric definitions for the resource.com.azure.core.http.rest.PagedFlux<MetricDefinitionInner> Lists the metric definitions for the resource.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<MetricDefinitionInner> listAsync(String resourceUri, String metricnamespace) Lists the metric definitions for the resource.- Parameters:
resourceUri- The identifier of the resource.metricnamespace- Metric namespace to query metric definitions for.- Returns:
- represents collection of metric definitions 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 definitions for the resource.- Parameters:
resourceUri- The identifier of the resource.- Returns:
- represents collection of metric definitions 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 definitions for the resource.- Parameters:
resourceUri- The identifier of the resource.- Returns:
- represents collection of metric definitions 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<MetricDefinitionInner> list(String resourceUri, String metricnamespace, com.azure.core.util.Context context) Lists the metric definitions for the resource.- Parameters:
resourceUri- The identifier of the resource.metricnamespace- Metric namespace to query metric definitions for.context- The context to associate with this operation.- Returns:
- represents collection of metric definitions 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.
-