Interface MetricDefinitionsClient


public interface MetricDefinitionsClient
An instance of this class provides access to all the operations defined in MetricDefinitionsClient.
  • 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

      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 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

      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 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.