interface IAppInsights {
    _onerror(exception: IAutoExceptionTelemetry): void;
    addTelemetryInitializer(telemetryInitializer: ((item: ITelemetryItem) => boolean | void)): void;
    getCookieMgr(): ICookieMgr;
    startTrackEvent(name: string): void;
    startTrackPage(name?: string): void;
    stopTrackEvent(name: string, properties?: {
        [key: string]: string;
    }, measurements?: {
        [key: string]: number;
    }): void;
    stopTrackPage(name?: string, url?: string, properties?: {
        [key: string]: string;
    }, measurements?: {
        [key: string]: number;
    }): void;
    trackEvent(event: IEventTelemetry, customProperties?: {
        [key: string]: any;
    }): void;
    trackException(exception: IExceptionTelemetry, customProperties?: {
        [key: string]: any;
    }): void;
    trackMetric(metric: IMetricTelemetry, customProperties?: {
        [key: string]: any;
    }): void;
    trackPageView(pageView: IPageViewTelemetry, customProperties?: {
        [key: string]: any;
    }): void;
    trackPageViewPerformance(pageViewPerformance: IPageViewPerformanceTelemetry, customProperties?: {
        [key: string]: any;
    }): void;
    trackTrace(trace: ITraceTelemetry, customProperties?: {
        [key: string]: any;
    }): void;
}

Hierarchy (view full)

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Get the current cookie manager for this instance

    Returns ICookieMgr

  • Parameters

    • name: string

    Returns void

  • Parameters

    • Optionalname: string

    Returns void

  • Parameters

    • name: string
    • Optionalproperties: {
          [key: string]: string;
      }
      • [key: string]: string
    • Optionalmeasurements: {
          [key: string]: number;
      }
      • [key: string]: number

    Returns void

  • Parameters

    • Optionalname: string
    • Optionalurl: string
    • Optionalproperties: {
          [key: string]: string;
      }
      • [key: string]: string
    • Optionalmeasurements: {
          [key: string]: number;
      }
      • [key: string]: number

    Returns void

  • Parameters

    • event: IEventTelemetry
    • OptionalcustomProperties: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

  • Parameters

    • exception: IExceptionTelemetry
    • OptionalcustomProperties: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

  • Parameters

    • metric: IMetricTelemetry
    • OptionalcustomProperties: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

  • Parameters

    • pageView: IPageViewTelemetry
    • OptionalcustomProperties: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    • trace: ITraceTelemetry
    • OptionalcustomProperties: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void