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 Summary
Constructors Constructor Description PageViewTelemetry()
PageViewTelemetry(java.lang.String pageName)
Initializes a new instance of the class with the specifiedpageName
.
-
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 com.microsoft.applicationinsights.telemetry.BaseTelemetry
getContext, getProperties, getTimestamp, initialize, setTimestamp
-
-
-
-
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.
-
getData
protected PageViewData getData()
- Specified by:
getData
in classBaseTelemetry
-
-