EventTelemetry EventTelemetry EventTelemetry Class


Telemetry type used to track custom events. Learn more

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


EventTelemetry() EventTelemetry() EventTelemetry()

Initializes a new instance of the EventTelemetry class.

EventTelemetry(String) EventTelemetry(String) EventTelemetry(String)

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


Context Context Context

Gets the context associated with the current telemetry item.

Extension Extension Extension

Gets or sets gets the extension used to extend this telemetry instance using new strong typed object.

Metrics Metrics Metrics

Gets a dictionary of application-defined event metrics. Learn more

Name Name Name

Gets or sets the name of the event.

Properties Properties Properties

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

Sequence Sequence Sequence

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

Timestamp Timestamp Timestamp

Gets or sets date and time when event was recorded.


DeepClone() DeepClone() DeepClone()

Deeply clones a EventTelemetry object.

SerializeData(ISerializationWriter) SerializeData(ISerializationWriter) SerializeData(ISerializationWriter)

Explicit Interface Implementations

ITelemetry.Sanitize() ITelemetry.Sanitize() ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

ISupportSampling.SamplingPercentage ISupportSampling.SamplingPercentage ISupportSampling.SamplingPercentage

Gets or sets data sampling percentage (between 0 and 100). Should be 100/n where n is an integer. Learn more

Applies to