다음을 통해 공유


MetricTelemetry Class

Definition

Telemetry type used to track metrics.

public ref class MetricTelemetry sealed : Microsoft::VisualStudio::ApplicationInsights::Channel::ITelemetry, Microsoft::VisualStudio::ApplicationInsights::DataContracts::ISupportProperties
public sealed class MetricTelemetry : Microsoft.VisualStudio.ApplicationInsights.Channel.ITelemetry, Microsoft.VisualStudio.ApplicationInsights.DataContracts.ISupportProperties
type MetricTelemetry = class
    interface ITelemetry
    interface ISupportProperties
Public NotInheritable Class MetricTelemetry
Implements ISupportProperties, ITelemetry
Inheritance
MetricTelemetry
Implements

Constructors

MetricTelemetry()

Initializes a new instance of the MetricTelemetry class with empty properties.

MetricTelemetry(String, Double)

Initializes a new instance of the MetricTelemetry class with the specified metricName and metricValue.

Properties

Context

Gets the context associated with the current telemetry item.

Count

Gets or sets the number of samples for this metric.

Max

Gets or sets the max value of this metric.

Min

Gets or sets the min value of this metric.

Name

Gets or sets the name of the metric.

Properties

Gets a dictionary of application-defined property names and values providing additional information about this metric.

Sequence

Gets or sets the value that defines absolute order of the telemetry item.

StandardDeviation

Gets or sets the standard deviation of this metric.

Timestamp

Gets or sets date and time when event was recorded.

Value

Gets or sets the value of this metric.

Explicit Interface Implementations

ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

Applies to