Freigeben über


ApplicationInsightsComponentResource.GetAnnotations Methode

Definition

Überlädt

GetAnnotations(String, CancellationToken)

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

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}
  • Vorgang IdAnnotations_Get
GetAnnotations(String, String, CancellationToken)

Ruft die Liste der Anmerkungen für eine Komponente für einen bestimmten Zeitraum ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations
  • Vorgang IdAnnotations_List

GetAnnotations(String, CancellationToken)

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

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}
  • Vorgang IdAnnotations_Get
public virtual Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation> GetAnnotations (string annotationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAnnotations : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation>
override this.GetAnnotations : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.Annotation>
Public Overridable Function GetAnnotations (annotationId As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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 Sammlung von, bei der Annotation möglicherweise mehrere Dienstanforderungen zum Durchlaufen verwendet werden.

Ausnahmen

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

annotationId ist NULL.

Gilt für:

GetAnnotations(String, String, CancellationToken)

Ruft die Liste der Anmerkungen für eine Komponente für einen bestimmten Zeitraum ab.

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

Parameter

start
String

Die Startzeit für die Abfrage für 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 Sammlung von, bei der Annotation möglicherweise mehrere Dienstanforderungen zum Durchlaufen verwendet werden.

Ausnahmen

start oder end ist NULL.

Gilt für: