Class PageViewTelemetry
java.lang.Object
com.microsoft.applicationinsights.telemetry.BaseTelemetry
com.microsoft.applicationinsights.telemetry.PageViewTelemetry
- All Implemented Interfaces:
Telemetry
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
ConstructorDescriptionPageViewTelemetry
(String pageName) Initializes a new instance of the class with the specifiedpageName
. -
Method Summary
Modifier and TypeMethodDescriptionprotected PageViewData
getData()
long
Gets the page view duration.Gets a dictionary of custom defined metrics.getName()
Gets the name of the page view.getUri()
Gets the page view Uri.void
setDuration
(long duration) Sets the page view duration.void
Sets the name of the page view.void
Sets the page view Uri.Methods inherited from class com.microsoft.applicationinsights.telemetry.BaseTelemetry
getContext, getProperties, getTimestamp, initialize, setTimestamp
-
Constructor Details
-
PageViewTelemetry
Initializes a new instance of the class with the specifiedpageName
. -
PageViewTelemetry
public PageViewTelemetry()
-
-
Method Details
-
setName
Sets the name of the page view. -
getName
Gets the name of the page view. -
getUri
Gets the page view Uri. -
setUrl
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
Gets a dictionary of custom defined metrics. -
getData
- Specified by:
getData
in classBaseTelemetry
-