public final class PageViewTelemetry extends BaseSampleSourceTelemetry<PageViewData>
TelemetryClient| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_TYPE
Base Type for this telemetry.
|
static java.lang.String |
ENVELOPE_NAME
Envelope Name for this telemetry.
|
TELEMETRY_NAME_PREFIX| 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()
Deprecated.
|
java.lang.String |
getBaseTypeName() |
protected PageViewData |
getData()
Concrete classes should implement this method which supplies the
data structure that this instance works with, which needs to implement
JsonSerializable |
long |
getDuration()
Gets the page view duration.
|
Duration |
getDurationObject() |
java.lang.String |
getEnvelopName() |
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.lang.Double |
getSamplingPercentage() |
java.net.URI |
getUri()
Gets the page view Uri.
|
java.lang.String |
getUrlString() |
int |
getVer() |
void |
setDuration(long duration)
Sets the page view duration.
|
void |
setName(java.lang.String name)
Sets the name of the page view.
|
void |
setSamplingPercentage(java.lang.Double samplingPercentage) |
void |
setUrl(java.net.URI url)
Sets the page view Uri.
|
reset, setSampleRategetContext, getProperties, getSequence, getTelemetryName, getTimestamp, initialize, normalizeInstrumentationKey, sanitize, serialize, setSequence, setTimestamp, toStringpublic static final java.lang.String ENVELOPE_NAME
public static final java.lang.String BASE_TYPE
public PageViewTelemetry()
public PageViewTelemetry(java.lang.String pageName)
pageName - The name of page to track.public int getVer()
getVer in class BaseTelemetry<PageViewData>public void setName(java.lang.String name)
name - The page view name.public java.lang.String getName()
public java.net.URI getUri()
public java.lang.String getUrlString()
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()
public java.lang.Double getSamplingPercentage()
public void setSamplingPercentage(java.lang.Double samplingPercentage)
@Deprecated protected void additionalSanitize()
BaseTelemetryadditionalSanitize in class BaseTelemetry<PageViewData>protected PageViewData getData()
BaseTelemetryJsonSerializablegetData in class BaseTelemetry<PageViewData>public java.lang.String getEnvelopName()
getEnvelopName in class BaseTelemetry<PageViewData>public java.lang.String getBaseTypeName()
getBaseTypeName in class BaseTelemetry<PageViewData>public Duration getDurationObject()