Delen via


Alerts interface

Interface die een waarschuwing vertegenwoordigt.

Methoden

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

Hiermee wordt de opgegeven waarschuwing gesloten

get(string, string, AlertsGetOptionalParams)

Hiermee haalt u de waarschuwing voor het bereik op op waarschuwings-id.

list(string, AlertsListOptionalParams)

Geeft een lijst weer van de waarschuwingen voor het gedefinieerde bereik.

listExternal(string, string, AlertsListExternalOptionalParams)

Hier ziet u de waarschuwingen voor het type externe cloudprovider dat is gedefinieerd.

Methodedetails

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

Hiermee wordt de opgegeven waarschuwing gesloten

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

Parameters

scope

string

Het bereik dat is gekoppeld aan waarschuwingenbewerkingen. Dit omvat '/subscriptions/{subscriptionId}/' voor het abonnementsbereik, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' voor resourceGroup-bereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' voor het bereik van de factureringsrekening en /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/afdelingen/{departmentId} voor afdelingsbereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId} voor het bereik EnrollmentAccount, '/providers/Microsoft.Management/managementGroups/{managementGroupId} voor het bereik van de beheergroep, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' voor het bereik billingProfile, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' voor het bereik van invoiceSection en /providers/Microsoft. Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specifiek voor partners.

alertId

string

Waarschuwings-id

parameters
DismissAlertPayload

Parameters die worden geleverd aan de bewerking Waarschuwing negeren.

options
AlertsDismissOptionalParams

De optiesparameters.

Retouren

Promise<Alert>

get(string, string, AlertsGetOptionalParams)

Hiermee haalt u de waarschuwing voor het bereik op op waarschuwings-id.

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

Parameters

scope

string

Het bereik dat is gekoppeld aan waarschuwingenbewerkingen. Dit omvat '/subscriptions/{subscriptionId}/' voor het abonnementsbereik, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' voor resourceGroup-bereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' voor het bereik van de factureringsrekening en /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/afdelingen/{departmentId} voor afdelingsbereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId} voor het bereik EnrollmentAccount, '/providers/Microsoft.Management/managementGroups/{managementGroupId} voor het bereik van de beheergroep, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' voor het bereik billingProfile, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' voor het bereik van invoiceSection en /providers/Microsoft. Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specifiek voor partners.

alertId

string

Waarschuwings-id

options
AlertsGetOptionalParams

De optiesparameters.

Retouren

Promise<Alert>

list(string, AlertsListOptionalParams)

Geeft een lijst weer van de waarschuwingen voor het gedefinieerde bereik.

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

Parameters

scope

string

Het bereik dat is gekoppeld aan waarschuwingenbewerkingen. Dit omvat '/subscriptions/{subscriptionId}/' voor het abonnementsbereik, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' voor resourceGroup-bereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' voor het bereik van de factureringsrekening en /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/afdelingen/{departmentId} voor afdelingsbereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId} voor het bereik EnrollmentAccount, '/providers/Microsoft.Management/managementGroups/{managementGroupId} voor het bereik van de beheergroep, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' voor het bereik billingProfile, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' voor het bereik van invoiceSection en /providers/Microsoft. Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specifiek voor partners.

options
AlertsListOptionalParams

De optiesparameters.

Retouren

Promise<AlertsResult>

listExternal(string, string, AlertsListExternalOptionalParams)

Hier ziet u de waarschuwingen voor het type externe cloudprovider dat is gedefinieerd.

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

Parameters

externalCloudProviderType

string

Het type externe cloudprovider dat is gekoppeld aan dimensie-/querybewerkingen. Dit omvat 'externalSubscriptions' voor gekoppelde accounts en 'externalBillingAccounts' voor een geconsolideerd account.

externalCloudProviderId

string

Dit kan {externalSubscriptionId} zijn voor een gekoppeld account of {externalBillingAccountId} voor een geconsolideerd account dat wordt gebruikt met dimensie-/querybewerkingen.

options
AlertsListExternalOptionalParams

De optiesparameters.

Retouren

Promise<AlertsResult>