Class PageViewTelemetry

java.lang.Object
com.microsoft.applicationinsights.telemetry.BaseTelemetry
com.microsoft.applicationinsights.telemetry.PageViewTelemetry
All Implemented Interfaces:
Telemetry

public final class PageViewTelemetry extends BaseTelemetry
Telemetry type used to track page views.

You can send information about pages viewed by your application to Application Insights by passing an instance of this class to the 'trackPageView' method of the TelemetryClient

  • Constructor Details

    • PageViewTelemetry

      public PageViewTelemetry(String pageName)
      Initializes a new instance of the class with the specified pageName.
    • PageViewTelemetry

      public PageViewTelemetry()
  • Method Details

    • setName

      public void setName(String name)
      Sets the name of the page view.
    • getName

      public String getName()
      Gets the name of the page view.
    • getUri

      public URI getUri()
      Gets the page view Uri.
    • setUrl

      public void setUrl(URI uri)
      Sets the page view Uri.
    • getDuration

      public long getDuration()
      Gets the page view duration.
    • setDuration

      public void setDuration(long duration)
      Sets the page view duration.
    • getMetrics

      public ConcurrentMap<String,Double> getMetrics()
      Gets a dictionary of custom defined metrics.
    • getData

      protected PageViewData getData()
      Specified by:
      getData in class BaseTelemetry