다음을 통해 공유


Alerts interface

경고를 나타내는 인터페이스입니다.

메서드

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

지정된 경고를 해제합니다.

get(string, string, AlertsGetOptionalParams)

경고 ID를 사용하여 범위에 대한 경고를 가져옵니다.

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}/', resourceGroup 범위에 대한 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'이 포함됩니다. '/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 범위에 대한 enrollmentAccountId}', 관리 그룹 범위의 경우 '/providers/Microsoft.Management/managementGroups/{managementGroupId}, billingProfile 범위의 경우 '/providers/Microsoft.Billing/billingAccountId}/{billingAccountId}/{billingProfileId}' invoiceSection 범위에 대한 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' 및 '/providers/Microsoft. 파트너에 대한 청구/billingAccounts/{billingAccountId}/customers/{customerId}'

alertId

string

경고 ID

parameters
DismissAlertPayload

경고 해제 작업에 제공된 매개 변수입니다.

options
AlertsDismissOptionalParams

옵션 매개 변수입니다.

반환

Promise<Alert>

get(string, string, AlertsGetOptionalParams)

경고 ID를 사용하여 범위에 대한 경고를 가져옵니다.

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

매개 변수

scope

string

경고 작업과 연결된 범위입니다. 여기에는 구독 범위에 대한 '/subscriptions/{subscriptionId}/', resourceGroup 범위에 대한 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'이 포함됩니다. '/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 범위에 대한 enrollmentAccountId}', 관리 그룹 범위의 경우 '/providers/Microsoft.Management/managementGroups/{managementGroupId}, billingProfile 범위의 경우 '/providers/Microsoft.Billing/billingAccountId}/{billingAccountId}/{billingProfileId}' invoiceSection 범위에 대한 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' 및 '/providers/Microsoft. 파트너에 대한 청구/billingAccounts/{billingAccountId}/customers/{customerId}'

alertId

string

경고 ID

options
AlertsGetOptionalParams

옵션 매개 변수입니다.

반환

Promise<Alert>

list(string, AlertsListOptionalParams)

정의된 범위에 대한 경고를 나열합니다.

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

매개 변수

scope

string

경고 작업과 연결된 범위입니다. 여기에는 구독 범위에 대한 '/subscriptions/{subscriptionId}/', resourceGroup 범위에 대한 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'이 포함됩니다. '/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 범위에 대한 enrollmentAccountId}', 관리 그룹 범위의 경우 '/providers/Microsoft.Management/managementGroups/{managementGroupId}, billingProfile 범위의 경우 '/providers/Microsoft.Billing/billingAccountId}/{billingAccountId}/{billingProfileId}' invoiceSection 범위에 대한 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' 및 '/providers/Microsoft. 파트너에 대한 청구/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>