Freigeben über


TelemetryClient.TrackMetric Method

Definition

Overloads

TrackMetric(MetricTelemetry)

Send a MetricTelemetry for aggregation in Metric Explorer.

TrackMetric(String, Double, IDictionary<String,String>)

Send a MetricTelemetry for aggregation in Metric Explorer.

TrackMetric(MetricTelemetry)

Send a MetricTelemetry for aggregation in Metric Explorer.

public:
 void TrackMetric(Microsoft::VisualStudio::ApplicationInsights::DataContracts::MetricTelemetry ^ telemetry);
public void TrackMetric (Microsoft.VisualStudio.ApplicationInsights.DataContracts.MetricTelemetry telemetry);
member this.TrackMetric : Microsoft.VisualStudio.ApplicationInsights.DataContracts.MetricTelemetry -> unit
Public Sub TrackMetric (telemetry As MetricTelemetry)

Parameters

telemetry
MetricTelemetry

Applies to

TrackMetric(String, Double, IDictionary<String,String>)

Send a MetricTelemetry for aggregation in Metric Explorer.

public void TrackMetric (string name, double value, System.Collections.Generic.IDictionary<string,string> properties = default);
member this.TrackMetric : string * double * System.Collections.Generic.IDictionary<string, string> -> unit
Public Sub TrackMetric (name As String, value As Double, Optional properties As IDictionary(Of String, String) = Nothing)

Parameters

name
String

Metric name.

value
Double

Metric value.

properties
IDictionary<String,String>

Named string values you can use to classify and filter metrics.

Applies to