Freigeben über


AlertsOperationsExtensions.GetHistoryAsync Methode

Definition

Rufen Sie den Verlauf einer Warnung ab, die alle Änderungen der Überwachungsbedingung (ausgelöst/aufgelöst) und Änderungen des Warnungsstatus (Neu/Bestätigt/Geschlossen) erfasst.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.AlertModification> GetHistoryAsync(this Microsoft.Azure.Management.AlertsManagement.IAlertsOperations operations, string alertId, System.Threading.CancellationToken cancellationToken = default);
static member GetHistoryAsync : Microsoft.Azure.Management.AlertsManagement.IAlertsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.AlertModification>
<Extension()>
Public Function GetHistoryAsync (operations As IAlertsOperations, alertId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AlertModification)

Parameter

operations
IAlertsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

alertId
String

Eindeutige ID einer Warnung instance.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: