An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.

Implements

Constructors

  • Constructs a new instance of the PageEventTelemetry object

    Parameters

    • logger: IDiagnosticLogger
    • Optionalname: string
    • Optionalurl: string
    • OptionaldurationMs: number
    • Optionalproperties: {
          [key: string]: string;
      }
      • [key: string]: string
    • Optionalmeasurements: {
          [key: string]: number;
      }
      • [key: string]: number
    • Optionalid: string

    Returns PageView

Properties

aiDataContract: {
    duration: FieldType;
    id: FieldType;
    measurements: FieldType;
    name: FieldType;
    properties: FieldType;
    url: 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 = "PageviewData"
duration: string

Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.

envelopeType: string = "Microsoft.ApplicationInsights.{0}.Pageview"
id: string

Identifier of a page view instance. Used for correlation between page view and other telemetry items.

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.

url: string

Request URL with all query string parameters

ver: number

Schema version