Delen via


Alerts interface

Interface die een waarschuwing vertegenwoordigt.

Methoden

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

De opgegeven waarschuwing sluiten

get(string, string, AlertsGetOptionalParams)

Hiermee wordt de waarschuwing voor het bereik opgehaald op basis van de waarschuwings-id.

list(string, AlertsListOptionalParams)

Een lijst met de waarschuwingen voor het gedefinieerde bereik.

listExternal(string, string, AlertsListExternalOptionalParams)

Geeft het gedefinieerde type Waarschuwingen voor externe cloudprovider weer.

Methodedetails

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

De opgegeven waarschuwing sluiten

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

Parameters

scope

string

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

alertId

string

Waarschuwings-id

parameters
DismissAlertPayload

Parameters die zijn opgegeven voor de bewerking Waarschuwing sluiten.

options
AlertsDismissOptionalParams

De optiesparameters.

Retouren

Promise<Alert>

get(string, string, AlertsGetOptionalParams)

Hiermee wordt de waarschuwing voor het bereik opgehaald op basis van de waarschuwings-id.

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

Parameters

scope

string

Het bereik dat is gekoppeld aan waarschuwingsbewerkingen. Dit omvat '/subscriptions/{subscriptionId}/' voor het abonnementsbereik, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' voor resourceGroup-bereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' voor factureringsaccountbereik en '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' voor Afdelingsbereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId} voor enrollmentAccount-bereik, /providers/Microsoft.Management/managementGroups/{managementGroupId} voor het bereik van de beheergroep, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' voor billingProfile-bereik, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' voor invoiceSection-bereik 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)

Een lijst met de waarschuwingen voor het gedefinieerde bereik.

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

Parameters

scope

string

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

options
AlertsListOptionalParams

De optiesparameters.

Retouren

Promise<AlertsResult>

listExternal(string, string, AlertsListExternalOptionalParams)

Geeft het gedefinieerde type Waarschuwingen voor externe cloudprovider weer.

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 een gekoppeld account en 'externalBillingAccounts' voor een geconsolideerde rekening.

externalCloudProviderId

string

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

options
AlertsListExternalOptionalParams

De optiesparameters.

Retouren

Promise<AlertsResult>