MetricsClient class

A client that can query batch metrics.

Constructors

MetricsClient(string, TokenCredential, MetricsClientOptions)

Methods

queryResources(string[], string[], string, MetricsQueryResourcesOptions)

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

Constructor Details

MetricsClient(string, TokenCredential, MetricsClientOptions)

new MetricsClient(endpoint: string, tokenCredential: TokenCredential, options?: MetricsClientOptions)

Parameters

endpoint

string

tokenCredential
TokenCredential

Method Details

queryResources(string[], string[], string, MetricsQueryResourcesOptions)

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

function queryResources(resourceIds: string[], metricNames: string[], metricNamespace: string, options?: MetricsQueryResourcesOptions): Promise<MetricsQueryResult[]>

Parameters

resourceIds

string[]

metricNames

string[]

metricNamespace

string

Returns

Promise<MetricsQueryResult[]>