public final class EventTelemetry extends BaseSampleSourceTelemetry<EventData>
Constructor and Description |
---|
EventTelemetry()
Default initialization for a new instance.
|
EventTelemetry(java.lang.String name)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
additionalSanitize()
Deprecated.
Sanitize name and metrics.
|
java.lang.String |
getBaseTypeName() |
protected EventData |
getData()
Fetches the data structure the instance works with
|
java.lang.String |
getEnvelopName() |
java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Double> |
getMetrics()
Gets a map of application-defined event metrics.
|
java.lang.String |
getName()
Gets the name of the event.
|
java.lang.Double |
getSamplingPercentage() |
void |
setName(java.lang.String name)
Sets the name of the event.
|
void |
setSamplingPercentage(java.lang.Double samplingPercentage) |
reset, setSampleRate
getContext, getProperties, getSequence, getTimestamp, initialize, sanitize, serialize, setSequence, setTimestamp
public EventTelemetry()
public EventTelemetry(java.lang.String name)
name
- The event's name. Max length 150.public java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Double> getMetrics()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Name of the event. Max length 150.@Deprecated protected void additionalSanitize()
BaseTelemetry
additionalSanitize
in class BaseTelemetry<EventData>
protected EventData getData()
getData
in class BaseTelemetry<EventData>
public java.lang.Double getSamplingPercentage()
public void setSamplingPercentage(java.lang.Double samplingPercentage)
public java.lang.String getEnvelopName()
getEnvelopName
in class BaseTelemetry<EventData>
public java.lang.String getBaseTypeName()
getBaseTypeName
in class BaseTelemetry<EventData>