Share via


EventTelemetry Class

Definition

Telemetry type used to track events.

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

Constructors

EventTelemetry()

Initializes a new instance of the EventTelemetry class.

EventTelemetry(String)

Initializes a new instance of the EventTelemetry class with the given name.

Properties

CommonSchemaVersion

Gets or sets the Common Schema version for this event which is used for determining data shape and tranmission endpoint

Context

Gets the context associated with the current telemetry item.

Metrics

Gets a dictionary of application-defined event metrics.

Name

Gets or sets the name of the event.

Properties

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

Sequence

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

Timestamp

Gets or sets date and time when event was recorded.

Explicit Interface Implementations

ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

Applies to