MetricsAsyncClient Class

  • java.lang.Object
    • com.azure.monitor.query.MetricsAsyncClient

public final class MetricsAsyncClient

This class provides an asynchronous client that contains all the query operations that use batch requests to retrieve metrics for multiple resources.

Method Summary

Modifier and Type Method and Description
Mono<MetricsQueryResourcesResult> queryResources(List<String> resourceIds, List<String> metricsNames, String metricsNamespace)

Returns all the Azure Monitor metrics requested for the batch of resources.

Mono<Response<MetricsQueryResourcesResult>> queryResourcesWithResponse(List<String> resourceIds, List<String> metricsNames, String metricsNamespace, MetricsQueryResourcesOptions options)

Returns all the Azure Monitor metrics requested for the batch of resources.

Methods inherited from java.lang.Object

Method Details

queryResources

public Mono queryResources(List resourceIds, List metricsNames, String metricsNamespace)

Returns all the Azure Monitor metrics requested for the batch of resources.

Parameters:

resourceIds - The resource ids for which the metrics is requested.
metricsNames - The names of the metrics to query.
metricsNamespace - The namespace of the metrics to query.

Returns:

A time-series metrics result for the requested metric names.

queryResourcesWithResponse

public Mono<>> queryResourcesWithResponse(List resourceIds, List metricsNames, String metricsNamespace, MetricsQueryResourcesOptions options)

Returns all the Azure Monitor metrics requested for the batch of resources.

Parameters:

resourceIds - The resource ids for which the metrics is requested.
metricsNames - The names of the metrics to query.
metricsNamespace - The namespace of the metrics to query.
options - The MetricsQueryResourcesOptions to include for the request.

Returns:

A time-series metrics result for the requested metric names.

Applies to