你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MetricsBatchQueryClient class

可以查询批处理指标的客户端。

构造函数

MetricsBatchQueryClient(string, TokenCredential, MetricsBatchQueryClientOptions)

方法

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

返回为一批资源请求的所有 Azure Monitor 指标。

构造函数详细信息

MetricsBatchQueryClient(string, TokenCredential, MetricsBatchQueryClientOptions)

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

参数

batchEndPoint

string

tokenCredential
TokenCredential

方法详细信息

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

返回为一批资源请求的所有 Azure Monitor 指标。

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

参数

resourceIds

string[]

metricNamespace

string

metricNames

string[]

返回