EventTelemetry Class

Definition

Telemetry type used to track events.

public sealed class EventTelemetry : Microsoft.ApplicationInsights.Channel.ITelemetry, Microsoft.ApplicationInsights.DataContracts.ISupportMetrics, Microsoft.ApplicationInsights.DataContracts.ISupportProperties, Microsoft.ApplicationInsights.DataContracts.ISupportSampling
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

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.

ISupportSampling.SamplingPercentage

Gets or sets data sampling percentage (between 0 and 100).

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)