Interface MetricDefinitionsClient
-
public interface MetricDefinitionsClientAn instance of this class provides access to all the operations defined in MetricDefinitionsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.http.rest.PagedIterable<MetricDefinitionInner>list(String resourceUri)Lists the metric definitions for the resource.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.com.azure.core.http.rest.PagedFlux<MetricDefinitionInner>listAsync(String resourceUri)Lists the metric definitions for the resource.com.azure.core.http.rest.PagedFlux<MetricDefinitionInner>listAsync(String resourceUri, String metricnamespace)Lists the metric definitions for the resource.
-
-
-
Method Detail
-
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.
- 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
com.azure.core.http.rest.PagedFlux<MetricDefinitionInner> listAsync(String resourceUri)
Lists the metric definitions for the resource.- Parameters:
resourceUri- The identifier of the resource.- Returns:
- represents collection of metric definitions.
- 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)
Lists the metric definitions for the resource.- Parameters:
resourceUri- The identifier of the resource.- Returns:
- represents collection of metric definitions.
- 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.
- 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.
-
-