TelemetryClient.TrackMetric Method (String, Double)

Send a MetricTelemetry for aggregation in Metric Explorer.

Namespace: Microsoft.ApplicationInsights
Assembly: Microsoft.ApplicationInsights (in Microsoft.ApplicationInsights.dll)

Usage

'Usage
Dim instance As TelemetryClient
Dim name As String
Dim value As Double

instance.TrackMetric(name, value)

Syntax

'Declaration
Public Sub TrackMetric ( _
    name As String, _
    value As Double _
)
public void TrackMetric (
    string name,
    double value
)
public:
void TrackMetric (
    String^ name, 
    double value
)
public void TrackMetric (
    String name, 
    double value
)
public function TrackMetric (
    name : String, 
    value : double
)

Parameters

  • name
    Metric name.
  • value
    Metric value.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8, Windows Server 2012

See Also

Reference

TelemetryClient Class
TelemetryClient Members
Microsoft.ApplicationInsights Namespace