Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name.

Implements

Constructors

  • Constructs a new instance of the EventTelemetry object

    Parameters

    • logger: IDiagnosticLogger
    • name: string
    • Optionalproperties: any
    • Optionalmeasurements: any

    Returns Event

Properties

aiDataContract: {
    measurements: FieldType;
    name: FieldType;
    properties: FieldType;
    ver: FieldType;
} = ...

The set of fields for a serializable object. This defines the serialization order and a value of true/false for each field defines whether the field is required or not.

dataType: string = EventDataType

Use the constant EventDataType instead.

envelopeType: string = EventEnvelopeType

Use the constant EventEnvelopeType instead.

measurements: any

Collection of custom measurements.

name: string

Event name. Keep it low cardinality to allow proper grouping and useful metrics.

properties: any

Collection of custom properties.

ver: number

Schema version