Share via


MetricsBatchQueryClient class

A client that can query batch metrics.

Constructors

MetricsBatchQueryClient(string, TokenCredential, MetricsBatchQueryClientOptions)

Methods

queryBatch(string[], string, string[], MetricsBatchOptionalParams)

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

Constructor Details

MetricsBatchQueryClient(string, TokenCredential, MetricsBatchQueryClientOptions)

new MetricsBatchQueryClient(batchEndPoint: string, tokenCredential: TokenCredential, options?: MetricsBatchQueryClientOptions)

Parameters

batchEndPoint

string

tokenCredential
TokenCredential

Method Details

queryBatch(string[], string, string[], MetricsBatchOptionalParams)

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

function queryBatch(resourceIds: string[], metricNamespace: string, metricNames: string[], options?: MetricsBatchOptionalParams): Promise<MetricResultsResponseValuesItem[]>

Parameters

resourceIds

string[]

metricNamespace

string

metricNames

string[]

Returns