共用方式為


Alerts interface

代表警示的介面。

方法

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

關閉指定的警示

get(string, string, AlertsGetOptionalParams)

依警示識別碼取得範圍警示。

list(string, AlertsListOptionalParams)

列出已定義範圍的警示。

listExternal(string, string, AlertsListExternalOptionalParams)

列出已定義的外部雲端提供者類型的警示。

方法詳細資料

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

關閉指定的警示

function dismiss(scope: string, alertId: string, parameters: DismissAlertPayload, options?: AlertsDismissOptionalParams): Promise<Alert>

參數

scope

string

與警示作業相關聯的範圍。 這包括訂用帳戶範圍的 '/subscriptions/{subscriptionId}/' '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍、'/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope 的 enrollmentAccountId}' '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfileId}/{invoiceSections/{invoiceSectionId}' 和 '/providers/Microsoft'。Billing/billingAccounts/{billingAccountId}/customers/{customerId}' 專屬的合作夥伴。

alertId

string

警示識別碼

parameters
DismissAlertPayload

提供給關閉警示作業的參數。

options
AlertsDismissOptionalParams

選項參數。

傳回

Promise<Alert>

get(string, string, AlertsGetOptionalParams)

依警示識別碼取得範圍警示。

function get(scope: string, alertId: string, options?: AlertsGetOptionalParams): Promise<Alert>

參數

scope

string

與警示作業相關聯的範圍。 這包括訂用帳戶範圍的 '/subscriptions/{subscriptionId}/' '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍、'/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope 的 enrollmentAccountId}' '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfileId}/{invoiceSections/{invoiceSectionId}' 和 '/providers/Microsoft'。Billing/billingAccounts/{billingAccountId}/customers/{customerId}' 專屬的合作夥伴。

alertId

string

警示識別碼

options
AlertsGetOptionalParams

選項參數。

傳回

Promise<Alert>

list(string, AlertsListOptionalParams)

列出已定義範圍的警示。

function list(scope: string, options?: AlertsListOptionalParams): Promise<AlertsResult>

參數

scope

string

與警示作業相關聯的範圍。 這包括訂用帳戶範圍的 '/subscriptions/{subscriptionId}/' '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍、'/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope 的 enrollmentAccountId}' '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfileId}/{invoiceSections/{invoiceSectionId}' 和 '/providers/Microsoft'。Billing/billingAccounts/{billingAccountId}/customers/{customerId}' 專屬的合作夥伴。

options
AlertsListOptionalParams

選項參數。

傳回

Promise<AlertsResult>

listExternal(string, string, AlertsListExternalOptionalParams)

列出已定義的外部雲端提供者類型的警示。

function listExternal(externalCloudProviderType: string, externalCloudProviderId: string, options?: AlertsListExternalOptionalParams): Promise<AlertsResult>

參數

externalCloudProviderType

string

與維度/查詢作業相關聯的外部雲端提供者類型。 這包括連結帳戶的 'externalSubscriptions',以及合併帳戶的 'externalBillingAccounts'。

externalCloudProviderId

string

這可以是連結帳戶的 '{externalSubscriptionId}',或 '{externalBillingAccountId}' 用於維度/查詢作業的合併帳戶。

options
AlertsListExternalOptionalParams

選項參數。

傳回

Promise<AlertsResult>