共用方式為


Components class

代表 Components 的類別。

建構函式

Components(ApplicationInsightsManagementClientContext)

建立元件。

方法

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)

建立 Application Insights 元件(或更新)。 注意:您無法在 Put 作業中為 InstrumentationKey 或 AppId 指定不同的值。

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
createOrUpdate(string, string, ApplicationInsightsComponent, ServiceCallback<ApplicationInsightsComponent>)
deleteMethod(string, string, RequestOptionsBase)

刪除 Application Insights 元件。

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, ServiceCallback<void>)
get(string, string, RequestOptionsBase)

傳回 Application Insights 元件。

get(string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
get(string, string, ServiceCallback<ApplicationInsightsComponent>)
getPurgeStatus(string, string, string, RequestOptionsBase)

取得進行中清除作業的狀態。

getPurgeStatus(string, string, string, RequestOptionsBase, ServiceCallback<ComponentPurgeStatusResponse>)
getPurgeStatus(string, string, string, ServiceCallback<ComponentPurgeStatusResponse>)
list(RequestOptionsBase)

取得訂用帳戶內所有 Application Insights 元件的清單。

list(RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
list(ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroup(string, RequestOptionsBase)

取得資源群組內的Application Insights元件清單。

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroup(string, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroupNext(string, RequestOptionsBase)

取得資源群組內的Application Insights元件清單。

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroupNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)
listNext(string, RequestOptionsBase)

取得訂用帳戶內所有 Application Insights 元件的清單。

listNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)
purge(string, string, ComponentPurgeBody, RequestOptionsBase)

藉由一組使用者定義的篩選,清除 Application Insights 元件中的數據。

為了管理系統資源,清除要求會以每小時 50 個要求進行節流。 您應該藉由傳送述詞包含需要清除的所有使用者身分識別的單一命令,來批次執行清除要求。 使用 in 運算子來指定多個身分識別。 您應該先執行查詢,再使用 清除要求來確認結果是否預期。

purge(string, string, ComponentPurgeBody, RequestOptionsBase, ServiceCallback<ComponentPurgeResponse>)
purge(string, string, ComponentPurgeBody, ServiceCallback<ComponentPurgeResponse>)
updateTags(string, string, TagsResource, RequestOptionsBase)

更新現有元件的標記。 若要更新其他欄位,請使用 CreateOrUpdate 方法。

updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
updateTags(string, string, TagsResource, ServiceCallback<ApplicationInsightsComponent>)

建構函式詳細資料

Components(ApplicationInsightsManagementClientContext)

建立元件。

new Components(client: ApplicationInsightsManagementClientContext)

參數

client
ApplicationInsightsManagementClientContext

服務客戶端的參考。

方法詳細資料

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)

建立 Application Insights 元件(或更新)。 注意:您無法在 Put 作業中為 InstrumentationKey 或 AppId 指定不同的值。

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options?: RequestOptionsBase): Promise<ComponentsCreateOrUpdateResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

insightProperties
ApplicationInsightsComponent

需要指定才能建立Application Insights元件的屬性。

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsCreateOrUpdateResponse>

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

insightProperties
ApplicationInsightsComponent

需要指定才能建立Application Insights元件的屬性。

options
RequestOptionsBase

選擇性參數

createOrUpdate(string, string, ApplicationInsightsComponent, ServiceCallback<ApplicationInsightsComponent>)

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, callback: ServiceCallback<ApplicationInsightsComponent>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

insightProperties
ApplicationInsightsComponent

需要指定才能建立Application Insights元件的屬性。

deleteMethod(string, string, RequestOptionsBase)

刪除 Application Insights 元件。

function deleteMethod(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deleteMethod(string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback<void>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

callback

ServiceCallback<void>

回呼

get(string, string, RequestOptionsBase)

傳回 Application Insights 元件。

function get(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<ComponentsGetResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)

function get(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

options
RequestOptionsBase

選擇性參數

get(string, string, ServiceCallback<ApplicationInsightsComponent>)

function get(resourceGroupName: string, resourceName: string, callback: ServiceCallback<ApplicationInsightsComponent>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

getPurgeStatus(string, string, string, RequestOptionsBase)

取得進行中清除作業的狀態。

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: RequestOptionsBase): Promise<ComponentsGetPurgeStatusResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

purgeId

string

在清除狀態要求中,這是傳回其狀態之作業的標識碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsGetPurgeStatusResponse>

getPurgeStatus(string, string, string, RequestOptionsBase, ServiceCallback<ComponentPurgeStatusResponse>)

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options: RequestOptionsBase, callback: ServiceCallback<ComponentPurgeStatusResponse>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

purgeId

string

在清除狀態要求中,這是傳回其狀態之作業的標識碼。

options
RequestOptionsBase

選擇性參數

getPurgeStatus(string, string, string, ServiceCallback<ComponentPurgeStatusResponse>)

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, callback: ServiceCallback<ComponentPurgeStatusResponse>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

purgeId

string

在清除狀態要求中,這是傳回其狀態之作業的標識碼。

list(RequestOptionsBase)

取得訂用帳戶內所有 Application Insights 元件的清單。

function list(options?: RequestOptionsBase): Promise<ComponentsListResponse>

參數

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsListResponse>

list(RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function list(options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

參數

options
RequestOptionsBase

選擇性參數

list(ServiceCallback<ApplicationInsightsComponentListResult>)

function list(callback: ServiceCallback<ApplicationInsightsComponentListResult>)

參數

listByResourceGroup(string, RequestOptionsBase)

取得資源群組內的Application Insights元件清單。

function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<ComponentsListByResourceGroupResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

options
RequestOptionsBase

選擇性參數

listByResourceGroup(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

listByResourceGroupNext(string, RequestOptionsBase)

取得資源群組內的Application Insights元件清單。

function listByResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComponentsListByResourceGroupNextResponse>

參數

nextPageLink

string

上一次成功呼叫 List 作業的 NextLink。

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsListByResourceGroupNextResponse>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

參數

nextPageLink

string

上一次成功呼叫 List 作業的 NextLink。

options
RequestOptionsBase

選擇性參數

listByResourceGroupNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

參數

nextPageLink

string

上一次成功呼叫 List 作業的 NextLink。

listNext(string, RequestOptionsBase)

取得訂用帳戶內所有 Application Insights 元件的清單。

function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComponentsListNextResponse>

參數

nextPageLink

string

上一次成功呼叫 List 作業的 NextLink。

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

參數

nextPageLink

string

上一次成功呼叫 List 作業的 NextLink。

options
RequestOptionsBase

選擇性參數

listNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listNext(nextPageLink: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

參數

nextPageLink

string

上一次成功呼叫 List 作業的 NextLink。

purge(string, string, ComponentPurgeBody, RequestOptionsBase)

藉由一組使用者定義的篩選,清除 Application Insights 元件中的數據。

為了管理系統資源,清除要求會以每小時 50 個要求進行節流。 您應該藉由傳送述詞包含需要清除的所有使用者身分識別的單一命令,來批次執行清除要求。 使用 in 運算子來指定多個身分識別。 您應該先執行查詢,再使用 清除要求來確認結果是否預期。

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options?: RequestOptionsBase): Promise<ComponentsPurgeResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

body
ComponentPurgeBody

描述在 Application Insights 元件之單一數據表中清除數據的要求主體

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsPurgeResponse>

purge(string, string, ComponentPurgeBody, RequestOptionsBase, ServiceCallback<ComponentPurgeResponse>)

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options: RequestOptionsBase, callback: ServiceCallback<ComponentPurgeResponse>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

body
ComponentPurgeBody

描述在 Application Insights 元件之單一數據表中清除數據的要求主體

options
RequestOptionsBase

選擇性參數

purge(string, string, ComponentPurgeBody, ServiceCallback<ComponentPurgeResponse>)

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, callback: ServiceCallback<ComponentPurgeResponse>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

body
ComponentPurgeBody

描述在 Application Insights 元件之單一數據表中清除數據的要求主體

updateTags(string, string, TagsResource, RequestOptionsBase)

更新現有元件的標記。 若要更新其他欄位,請使用 CreateOrUpdate 方法。

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options?: RequestOptionsBase): Promise<ComponentsUpdateTagsResponse>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

componentTags
TagsResource

已更新要設定為元件實例的標記資訊。

options
RequestOptionsBase

選擇性參數

傳回

Promise<Models.ComponentsUpdateTagsResponse>

updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

componentTags
TagsResource

已更新要設定為元件實例的標記資訊。

options
RequestOptionsBase

選擇性參數

updateTags(string, string, TagsResource, ServiceCallback<ApplicationInsightsComponent>)

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, callback: ServiceCallback<ApplicationInsightsComponent>)

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

Application Insights 元件資源的名稱。

componentTags
TagsResource

已更新要設定為元件實例的標記資訊。