Freigeben über


Alerts interface

Schnittstelle, die eine Warnung darstellt.

Methoden

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

Schließt die angegebene Warnung

get(string, string, AlertsGetOptionalParams)

Ruft die Warnung für den Bereich nach Warnungs-ID ab.

list(string, AlertsListOptionalParams)

Listet die Warnungen für den definierten Bereich auf.

listExternal(string, string, AlertsListExternalOptionalParams)

Listet die Benachrichtigungen für den definierten externen Cloudanbietertyp auf.

Details zur Methode

dismiss(string, string, DismissAlertPayload, AlertsDismissOptionalParams)

Schließt die angegebene Warnung

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

Parameter

scope

string

Der Bereich, der Warnungsvorgängen zugeordnet ist. Dies schließt "/subscriptions/{subscriptionId}/" für den Abonnementbereich ein, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' für resourceGroup-Bereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' für Abrechnungskontobereich und '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' für Abteilungsbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId}' für enrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}, for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' für billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' für invoiceSection scope, and '/providers/Microsoft. Billing/billingAccounts/{billingAccountId}/customers/{customerId}' speziell für Partner.

alertId

string

Warnungs-ID

parameters
DismissAlertPayload

Parameter, die für den Vorgang Warnung verwerfen bereitgestellt werden.

options
AlertsDismissOptionalParams

Die Optionsparameter.

Gibt zurück

Promise<Alert>

get(string, string, AlertsGetOptionalParams)

Ruft die Warnung für den Bereich nach Warnungs-ID ab.

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

Parameter

scope

string

Der Bereich, der Warnungsvorgängen zugeordnet ist. Dies schließt "/subscriptions/{subscriptionId}/" für den Abonnementbereich ein, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' für resourceGroup-Bereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' für Abrechnungskontobereich und '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' für Abteilungsbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId}' für enrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}, for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' für billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' für invoiceSection scope, and '/providers/Microsoft. Billing/billingAccounts/{billingAccountId}/customers/{customerId}' speziell für Partner.

alertId

string

Warnungs-ID

options
AlertsGetOptionalParams

Die Optionsparameter.

Gibt zurück

Promise<Alert>

list(string, AlertsListOptionalParams)

Listet die Warnungen für den definierten Bereich auf.

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

Parameter

scope

string

Der Bereich, der Warnungsvorgängen zugeordnet ist. Dies schließt "/subscriptions/{subscriptionId}/" für den Abonnementbereich ein, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' für resourceGroup-Bereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' für Abrechnungskontobereich und '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' für Abteilungsbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId}' für enrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}, for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' für billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' für invoiceSection scope, and '/providers/Microsoft. Billing/billingAccounts/{billingAccountId}/customers/{customerId}' speziell für Partner.

options
AlertsListOptionalParams

Die Optionsparameter.

Gibt zurück

Promise<AlertsResult>

listExternal(string, string, AlertsListExternalOptionalParams)

Listet die Benachrichtigungen für den definierten externen Cloudanbietertyp auf.

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

Parameter

externalCloudProviderType

string

Der externe Cloudanbietertyp, der Dimensions-/Abfragevorgängen zugeordnet ist. Dies schließt "externalSubscriptions" für verknüpftes Konto und "externalBillingAccounts" für konsolidierte Konten ein.

externalCloudProviderId

string

Dies kann '{externalSubscriptionId}' für verknüpftes Konto oder '{externalBillingAccountId}' für konsolidiertes Konto sein, das mit Dimensions-/Abfragevorgängen verwendet wird.

options
AlertsListExternalOptionalParams

Die Optionsparameter.

Gibt zurück

Promise<AlertsResult>