Components interface
表示元件的介面。
方法
create |
建立 Application Insights 元件(或更新)。 注意:您無法在 Put 作業中為 InstrumentationKey 或 AppId 指定不同的值。 |
delete(string, string, Components |
刪除 Application Insights 元件。 |
get(string, string, Components |
傳回 Application Insights 元件。 |
get |
取得進行中清除作業的狀態。 |
list(Components |
取得訂用帳戶內所有 Application Insights 元件的清單。 |
list |
取得資源群組內的Application Insights元件清單。 |
purge(string, string, Component |
藉由一組使用者定義的篩選,清除 Application Insights 元件中的數據。 為了管理系統資源,清除要求會以每小時 50 個要求進行節流。 您應該藉由傳送述詞包含需要清除的所有使用者身分識別的單一命令,來批次執行清除要求。 使用 in 運算子來指定多個身分識別。 您應該先執行查詢,再使用 清除要求來確認結果是否預期。 |
update |
更新現有元件的標記。 若要更新其他欄位,請使用 CreateOrUpdate 方法。 |
方法詳細資料
createOrUpdate(string, string, ApplicationInsightsComponent, ComponentsCreateOrUpdateOptionalParams)
建立 Application Insights 元件(或更新)。 注意:您無法在 Put 作業中為 InstrumentationKey 或 AppId 指定不同的值。
function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options?: ComponentsCreateOrUpdateOptionalParams): Promise<ApplicationInsightsComponent>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- resourceName
-
string
Application Insights 元件資源的名稱。
- insightProperties
- ApplicationInsightsComponent
需要指定才能建立Application Insights元件的屬性。
選項參數。
傳回
Promise<ApplicationInsightsComponent>
delete(string, string, ComponentsDeleteOptionalParams)
刪除 Application Insights 元件。
function delete(resourceGroupName: string, resourceName: string, options?: ComponentsDeleteOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- resourceName
-
string
Application Insights 元件資源的名稱。
- options
- ComponentsDeleteOptionalParams
選項參數。
傳回
Promise<void>
get(string, string, ComponentsGetOptionalParams)
傳回 Application Insights 元件。
function get(resourceGroupName: string, resourceName: string, options?: ComponentsGetOptionalParams): Promise<ApplicationInsightsComponent>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- resourceName
-
string
Application Insights 元件資源的名稱。
- options
- ComponentsGetOptionalParams
選項參數。
傳回
Promise<ApplicationInsightsComponent>
getPurgeStatus(string, string, string, ComponentsGetPurgeStatusOptionalParams)
取得進行中清除作業的狀態。
function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: ComponentsGetPurgeStatusOptionalParams): Promise<ComponentPurgeStatusResponse>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- resourceName
-
string
Application Insights 元件資源的名稱。
- purgeId
-
string
在清除狀態要求中,這是傳回其狀態之作業的標識碼。
選項參數。
傳回
Promise<ComponentPurgeStatusResponse>
list(ComponentsListOptionalParams)
取得訂用帳戶內所有 Application Insights 元件的清單。
function list(options?: ComponentsListOptionalParams): PagedAsyncIterableIterator<ApplicationInsightsComponent, ApplicationInsightsComponent[], PageSettings>
參數
- options
- ComponentsListOptionalParams
選項參數。
傳回
listByResourceGroup(string, ComponentsListByResourceGroupOptionalParams)
取得資源群組內的Application Insights元件清單。
function listByResourceGroup(resourceGroupName: string, options?: ComponentsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ApplicationInsightsComponent, ApplicationInsightsComponent[], PageSettings>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
選項參數。
傳回
purge(string, string, ComponentPurgeBody, ComponentsPurgeOptionalParams)
藉由一組使用者定義的篩選,清除 Application Insights 元件中的數據。
為了管理系統資源,清除要求會以每小時 50 個要求進行節流。 您應該藉由傳送述詞包含需要清除的所有使用者身分識別的單一命令,來批次執行清除要求。 使用 in 運算子來指定多個身分識別。 您應該先執行查詢,再使用 清除要求來確認結果是否預期。
function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options?: ComponentsPurgeOptionalParams): Promise<ComponentPurgeResponse>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- resourceName
-
string
Application Insights 元件資源的名稱。
- body
- ComponentPurgeBody
描述在 Application Insights 元件之單一數據表中清除數據的要求主體
- options
- ComponentsPurgeOptionalParams
選項參數。
傳回
Promise<ComponentPurgeResponse>
updateTags(string, string, TagsResource, ComponentsUpdateTagsOptionalParams)
更新現有元件的標記。 若要更新其他欄位,請使用 CreateOrUpdate 方法。
function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options?: ComponentsUpdateTagsOptionalParams): Promise<ApplicationInsightsComponent>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- resourceName
-
string
Application Insights 元件資源的名稱。
- componentTags
- TagsResource
已更新要設定為元件實例的標記資訊。
選項參數。
傳回
Promise<ApplicationInsightsComponent>