Edit

Share via


ITelemetryProducer.TrackMetric Method

Definition

Overloads

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

Send a metric value to the registered telemetry consumers.

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

Send a metric value to the registered telemetry consumers.

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

Source:
ITelemetryProducer.cs

Send a metric value to the registered telemetry consumers.

public void TrackMetric (string name, double value, System.Collections.Generic.IDictionary<string,string> properties = default);
abstract member 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

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

Source:
ITelemetryProducer.cs

Send a metric value to the registered telemetry consumers.

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

Parameters

name
String

Metric name.

value
TimeSpan

Metric value.

properties
IDictionary<String,String>

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

Applies to