Delen via


PageViewTelemetry Class

Definition

Telemetry type used to track page views.

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

Remarks

You can send information about pages viewed by your application to Application Insights by passing an instance of the PageViewTelemetry class to the TrackPageView(PageViewTelemetry) method. Learn more

Constructors

PageViewTelemetry()

Initializes a new instance of the PageViewTelemetry class.

PageViewTelemetry(String)

Initializes a new instance of the PageViewTelemetry class with the specified pageName.

Properties

Context

Gets the context associated with the current telemetry item.

Duration

Gets or sets the page view duration.

Extension

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

Id

Gets or sets page view ID.

ItemTypeFlag

Gets item type for sampling evaluation.

Metrics

Gets a dictionary of custom defined metrics. Learn more

Name

Gets or sets the name of the page.

ProactiveSamplingDecision

Gets or sets a value indicating whether item sampling decision was made pro-actively and result of this decision.

Properties

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

Sequence

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

Timestamp

Gets or sets date and time when event was recorded.

Url

Gets or sets the page view Uri.

Methods

DeepClone()

Deeply clones a PageViewTelemetry object.

SerializeData(ISerializationWriter)

Writes serialization info about the data class of the implementing type using the given ISerializationWriter.

Explicit Interface Implementations

ISupportSampling.SamplingPercentage

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

ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

Extension Methods

GetEnvelopeName(ITelemetry)

Gets envelope name for ITelemetry object.

TrySetEnvelopeName(ITelemetry, String)

Sets envelope name for ITelemetry object.

Applies to