Class 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 Summary

      Constructors 
      Constructor Description
      PageViewTelemetry()  
      PageViewTelemetry​(java.lang.String pageName)
      Initializes a new instance of the class with the specified pageName.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected PageViewData getData()  
      long getDuration()
      Gets the page view duration.
      java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Double> getMetrics()
      Gets a dictionary of custom defined metrics.
      java.lang.String getName()
      Gets the name of the page view.
      java.net.URI getUri()
      Gets the page view Uri.
      void setDuration​(long duration)
      Sets the page view duration.
      void setName​(java.lang.String name)
      Sets the name of the page view.
      void setUrl​(java.net.URI uri)
      Sets the page view Uri.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PageViewTelemetry

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

        public PageViewTelemetry()
    • Method Detail

      • setName

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

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

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

        public void setUrl​(java.net.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 java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Double> getMetrics()
        Gets a dictionary of custom defined metrics.