public final class PageViewTelemetry extends BaseTelemetry<PageViewData>
TelemetryClient| Constructor and Description |
|---|
PageViewTelemetry()
Default Ctor
|
PageViewTelemetry(java.lang.String pageName)
Initializes a new instance of the class with the specified 'pageName'
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
additionalSanitize()
Concrete classes should implement this method
|
protected PageViewData |
getData()
Concrete classes should implement this method which supplies the
data structure that this instance works with, which needs to implement
SendableData |
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 url)
Sets the page view Uri.
|
getContext, getProperties, getSequence, getTimestamp, initialize, sanitize, serialize, setSequence, setTimestamppublic PageViewTelemetry()
public PageViewTelemetry(java.lang.String pageName)
pageName - The name of page to track.public void setName(java.lang.String name)
name - The page view name.public java.lang.String getName()
public java.net.URI getUri()
public void setUrl(java.net.URI url)
url - The page view Uri.public long getDuration()
public void setDuration(long duration)
duration - The page view duration.public java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Double> getMetrics()
protected void additionalSanitize()
BaseTelemetryadditionalSanitize in class BaseTelemetry<PageViewData>protected PageViewData getData()
BaseTelemetrySendableDatagetData in class BaseTelemetry<PageViewData>