Freigeben über


ApplicationInsightsComponentResource.GetAnnotationsAsync Methode

Definition

Überlädt

GetAnnotationsAsync(String, String, CancellationToken)

Ruft die Liste der Anmerkungen für eine Komponente für den angegebenen Zeitbereich ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations
  • Vorgangs-IdAnnotations_List
GetAnnotationsAsync(String, CancellationToken)

Rufen Sie die Anmerkung für die angegebene ID ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}
  • Vorgangs-IdAnnotations_Get

GetAnnotationsAsync(String, String, CancellationToken)

Ruft die Liste der Anmerkungen für eine Komponente für den angegebenen Zeitbereich ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations
  • Vorgangs-IdAnnotations_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation> GetAnnotationsAsync (string start, string end, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAnnotationsAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation>
override this.GetAnnotationsAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation>
Public Overridable Function GetAnnotationsAsync (start As String, end As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of Annotation)

Parameter

start
String

Die Startzeit für die Abfrage nach Anmerkungen darf nicht älter als 90 Tage ab dem aktuellen Datum sein.

end
String

Die Endzeit für die Abfrage von Anmerkungen.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Eine asynchrone Auflistung von Annotation , die mehrere Dienstanforderungen durchlaufen kann.

Ausnahmen

start oder end ist NULL.

Gilt für:

GetAnnotationsAsync(String, CancellationToken)

Rufen Sie die Anmerkung für die angegebene ID ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}
  • Vorgangs-IdAnnotations_Get
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation> GetAnnotationsAsync (string annotationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAnnotationsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation>
override this.GetAnnotationsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation>
Public Overridable Function GetAnnotationsAsync (annotationId As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of Annotation)

Parameter

annotationId
String

Die eindeutige Anmerkungs-ID. Dies ist innerhalb einer Application Insights-Komponente eindeutig.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Eine asynchrone Auflistung von Annotation , die mehrere Dienstanforderungen durchlaufen kann.

Ausnahmen

annotationId ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

annotationId ist NULL.

Gilt für: