Constructors

Properties

Constructors

Properties

create: (<T>(item: T, baseType: string, envelopeName: string, logger: IDiagnosticLogger, customProperties?: {
    [key: string]: any;
}, systemProperties?: {
    [key: string]: any;
}) => ITelemetryItem) = createTelemetryItem

Create a telemetry item that the 1DS channel understands

Type declaration

    • <T>(item, baseType, envelopeName, logger, customProperties?, systemProperties?): ITelemetryItem
    • Create a telemetry item that the 1DS channel understands

      Type Parameters

      • T

      Parameters

      • item: T

        domain specific properties; part B

      • baseType: string

        telemetry item type. ie PageViewData

      • envelopeName: string

        Name of the envelope, e.g., Microsoft.ApplicationInsights.\<instrumentation key\>.PageView.

      • logger: IDiagnosticLogger
      • OptionalcustomProperties: {
            [key: string]: any;
        }

        user defined custom properties; part C

        • [key: string]: any
      • OptionalsystemProperties: {
            [key: string]: any;
        }

        system properties that are added to the context; part A

        • [key: string]: any

      Returns ITelemetryItem

      ITelemetryItem that is sent to channel

domain specific properties; part B

telemetry item type. ie PageViewData

Name of the envelope (e.g., Microsoft.ApplicationInsights.[instrumentationKey].PageView).

user defined custom properties; part C

system properties that are added to the context; part A

ITelemetryItem that is sent to channel