ApplicationInsightsComponentResource.GetAnnotations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAnnotations(String, CancellationToken) |
Get the annotation for given id.
|
GetAnnotations(String, String, CancellationToken) |
Gets the list of annotations for a component for given time range
|
GetAnnotations(String, CancellationToken)
Get the annotation for given id.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}
- Operation Id: Annotations_Get
- Default Api Version: 2015-05-01
public virtual Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsAnnotation> GetAnnotations (string annotationId, System.Threading.CancellationToken cancellationToken = default);
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.ApplicationInsightsAnnotation>
override this.GetAnnotations : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsAnnotation>
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 ApplicationInsightsAnnotation)
Public Overridable Function GetAnnotations (annotationId As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of Annotation)
Parameters
- annotationId
- String
The unique annotation ID. This is unique within a Application Insights component.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ApplicationInsightsAnnotation that may take multiple service requests to iterate over.
Exceptions
annotationId
is an empty string, and was expected to be non-empty.
annotationId
is null.
Applies to
GetAnnotations(String, String, CancellationToken)
Gets the list of annotations for a component for given time range
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations
- Operation Id: Annotations_List
- Default Api Version: 2015-05-01
public virtual Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsAnnotation> GetAnnotations (string start, string end, System.Threading.CancellationToken cancellationToken = default);
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.ApplicationInsightsAnnotation>
override this.GetAnnotations : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsAnnotation>
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 ApplicationInsightsAnnotation)
Public Overridable Function GetAnnotations (start As String, end As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of Annotation)
Parameters
- start
- String
The start time to query from for annotations, cannot be older than 90 days from current date.
- end
- String
The end time to query for annotations.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ApplicationInsightsAnnotation that may take multiple service requests to iterate over.
Exceptions
start
or end
is null.
Applies to
Azure SDK for .NET
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro