共用方式為


Metrics class

代表計量的類別。

建構函式

Metrics(ApplicationInsightsDataClientContext)

建立計量。

方法

get(string, MetricId, MetricsGetOptionalParams)

取得單一計量的計量值

get(string, MetricId, MetricsGetOptionalParams, ServiceCallback<MetricsResult>)
get(string, MetricId, ServiceCallback<MetricsResult>)
getMetadata(string, RequestOptionsBase)

取得描述可用計量的中繼資料

getMetadata(string, RequestOptionsBase, ServiceCallback<any>)
getMetadata(string, ServiceCallback<any>)
getMultiple(string, MetricsPostBodySchema[], RequestOptionsBase)

取得多個計量的計量值

getMultiple(string, MetricsPostBodySchema[], RequestOptionsBase, ServiceCallback<MetricsResultsItem[]>)
getMultiple(string, MetricsPostBodySchema[], ServiceCallback<MetricsResultsItem[]>)

建構函式詳細資料

Metrics(ApplicationInsightsDataClientContext)

建立計量。

new Metrics(client: ApplicationInsightsDataClientContext)

參數

client
ApplicationInsightsDataClientContext

服務用戶端的參考。

方法詳細資料

get(string, MetricId, MetricsGetOptionalParams)

取得單一計量的計量值

function get(appId: string, metricId: MetricId, options?: MetricsGetOptionalParams): Promise<MetricsGetResponse>

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

metricId
MetricId

計量的識別碼。 這是標準 AI 計量或應用程式特定的自訂計量。 可能的值包括:'requests/count'、'requests/duration'、'requests/failed'、'users/count'、'users/authenticated'、'pageViews/count'、 'pageViews/duration'、'client/processingDuration'、'client/receiveDuration'、'client/networkDuration'、'client/sendDuration'、'client/totalDuration'、'dependencies/count'、'dependencies/failed'、'dependencies/duration'、'exceptions/browser'、'exceptions/server'、'sessions/count'、'performanceCounters/requestExecutionTime'、'performanceCounters/requestsPerSecond'、'performanceCounters/requestsInQueue'、 'performanceCounters/memoryAvailableBytes'、'performanceCounters/exceptionsPerSecond'、'performanceCounters/processCpuPercentage'、'performanceCounters/processIOBytesPerSecond'、'performanceCounters/processPrivateBytes'、'performanceCounters/processorCpuPercentage'、'availabilityResults/availabilityPercentage'、'availabilityResults/duration'、'billing/telemetryCount','customEvents/count'

options
MetricsGetOptionalParams

選擇性參數

傳回

Promise < Models.MetricsGetResponse>

get(string, MetricId, MetricsGetOptionalParams, ServiceCallback<MetricsResult>)

function get(appId: string, metricId: MetricId, options: MetricsGetOptionalParams, callback: ServiceCallback<MetricsResult>)

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

metricId
MetricId

計量的識別碼。 這是標準 AI 計量或應用程式特定的自訂計量。 可能的值包括:'requests/count'、'requests/duration'、'requests/failed'、'users/count'、'users/authenticated'、'pageViews/count'、 'pageViews/duration'、'client/processingDuration'、'client/receiveDuration'、'client/networkDuration'、'client/sendDuration'、'client/totalDuration'、'dependencies/count'、'dependencies/failed'、'dependencies/duration'、'exceptions/browser'、'exceptions/server'、'sessions/count'、'performanceCounters/requestExecutionTime'、'performanceCounters/requestsPerSecond'、'performanceCounters/requestsInQueue'、 'performanceCounters/memoryAvailableBytes'、'performanceCounters/exceptionsPerSecond'、'performanceCounters/processCpuPercentage'、'performanceCounters/processIOBytesPerSecond'、'performanceCounters/processPrivateBytes'、'performanceCounters/processorCpuPercentage'、'availabilityResults/availabilityPercentage'、'availabilityResults/duration'、'billing/telemetryCount','customEvents/count'

options
MetricsGetOptionalParams

選擇性參數

callback

ServiceCallback<MetricsResult>

回呼

get(string, MetricId, ServiceCallback<MetricsResult>)

function get(appId: string, metricId: MetricId, callback: ServiceCallback<MetricsResult>)

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

metricId
MetricId

計量的識別碼。 這是標準 AI 計量或應用程式特定的自訂計量。 可能的值包括:'requests/count'、'requests/duration'、'requests/failed'、'users/count'、'users/authenticated'、'pageViews/count'、 'pageViews/duration'、'client/processingDuration'、'client/receiveDuration'、'client/networkDuration'、'client/sendDuration'、'client/totalDuration'、'dependencies/count'、'dependencies/failed'、'dependencies/duration'、'exceptions/browser'、'exceptions/server'、'sessions/count'、'performanceCounters/requestExecutionTime'、'performanceCounters/requestsPerSecond'、'performanceCounters/requestsInQueue'、 'performanceCounters/memoryAvailableBytes'、'performanceCounters/exceptionsPerSecond'、'performanceCounters/processCpuPercentage'、'performanceCounters/processIOBytesPerSecond'、'performanceCounters/processPrivateBytes'、'performanceCounters/processorCpuPercentage'、'availabilityResults/availabilityPercentage'、'availabilityResults/duration'、'billing/telemetryCount','customEvents/count'

callback

ServiceCallback<MetricsResult>

回呼

getMetadata(string, RequestOptionsBase)

取得描述可用計量的中繼資料

function getMetadata(appId: string, options?: RequestOptionsBase): Promise<MetricsGetMetadataResponse>

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.MetricsGetMetadataResponse>

getMetadata(string, RequestOptionsBase, ServiceCallback<any>)

function getMetadata(appId: string, options: RequestOptionsBase, callback: ServiceCallback<any>)

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<any>

回呼

getMetadata(string, ServiceCallback<any>)

function getMetadata(appId: string, callback: ServiceCallback<any>)

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

callback

ServiceCallback<any>

回呼

getMultiple(string, MetricsPostBodySchema[], RequestOptionsBase)

取得多個計量的計量值

function getMultiple(appId: string, body: MetricsPostBodySchema[], options?: RequestOptionsBase): Promise<MetricsGetMultipleResponse>

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

body

MetricsPostBodySchema[]

批次計量查詢。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.MetricsGetMultipleResponse>

getMultiple(string, MetricsPostBodySchema[], RequestOptionsBase, ServiceCallback<MetricsResultsItem[]>)

function getMultiple(appId: string, body: MetricsPostBodySchema[], options: RequestOptionsBase, callback: ServiceCallback<MetricsResultsItem[]>)

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

body

MetricsPostBodySchema[]

批次計量查詢。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<MetricsResultsItem[]>

回呼

getMultiple(string, MetricsPostBodySchema[], ServiceCallback<MetricsResultsItem[]>)

function getMultiple(appId: string, body: MetricsPostBodySchema[], callback: ServiceCallback<MetricsResultsItem[]>)

參數

appId

string

應用程式的識別碼。 這是Azure 入口網站 [API 存取設定] 刀鋒視窗中的應用程式識別碼。

body

MetricsPostBodySchema[]

批次計量查詢。

callback

ServiceCallback<MetricsResultsItem[]>

回呼