Partager via


AlertIncidents interface

Interface représentant un AlertIncidents.

Méthodes

get(string, string, string, AlertIncidentsGetOptionalParams)

Obtenez l’incident d’alerte spécifié.

listForScope(string, string, AlertIncidentsListForScopeOptionalParams)

Obtient des incidents d’alerte pour une étendue de ressource.

remediate(string, string, string, AlertIncidentsRemediateOptionalParams)

Corrigez un incident d’alerte.

Détails de la méthode

get(string, string, string, AlertIncidentsGetOptionalParams)

Obtenez l’incident d’alerte spécifié.

function get(scope: string, alertId: string, alertIncidentId: string, options?: AlertIncidentsGetOptionalParams): Promise<AlertIncident>

Paramètres

scope

string

Étendue de l’incident d’alerte. L’étendue peut être n’importe quelle instance de ressource REST. Par exemple, utilisez « /providers/Microsoft.Subscription/subscriptions/{subscription-id} / » pour un abonnement, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' pour un groupe de ressources, et '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' pour une ressource.

alertId

string

Nom de l’alerte.

alertIncidentId

string

Nom de l’incident d’alerte à obtenir.

options
AlertIncidentsGetOptionalParams

Paramètres d’options.

Retours

Promise<AlertIncident>

listForScope(string, string, AlertIncidentsListForScopeOptionalParams)

Obtient des incidents d’alerte pour une étendue de ressource.

function listForScope(scope: string, alertId: string, options?: AlertIncidentsListForScopeOptionalParams): PagedAsyncIterableIterator<AlertIncident, AlertIncident[], PageSettings>

Paramètres

scope

string

Étendue de l’incident d’alerte.

alertId

string

Nom de l’alerte.

options
AlertIncidentsListForScopeOptionalParams

Paramètres d’options.

Retours

remediate(string, string, string, AlertIncidentsRemediateOptionalParams)

Corrigez un incident d’alerte.

function remediate(scope: string, alertId: string, alertIncidentId: string, options?: AlertIncidentsRemediateOptionalParams): Promise<void>

Paramètres

scope

string

Étendue de l’incident d’alerte.

alertId

string

Nom de l’alerte.

alertIncidentId

string

Nom de l’incident d’alerte à corriger.

options
AlertIncidentsRemediateOptionalParams

Paramètres d’options.

Retours

Promise<void>