Freigeben über


MetricsExtensions.GetMetadataAsync Methode

Definition

Abrufen von Metrikmetadaten

public static System.Threading.Tasks.Task<object> GetMetadataAsync (this Microsoft.Azure.ApplicationInsights.Query.IMetrics operations, string appId, System.Threading.CancellationToken cancellationToken = default);
static member GetMetadataAsync : Microsoft.Azure.ApplicationInsights.Query.IMetrics * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetMetadataAsync (operations As IMetrics, appId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameter

operations
IMetrics

Die Vorgangsgruppe für diese Erweiterungsmethode.

appId
String

ID der Anwendung. Dies ist die Anwendungs-ID auf dem Blatt API-Zugriffseinstellungen im Azure-Portal.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Ruft Metadaten ab, die die verfügbaren Metriken beschreiben.

Gilt für: