public final class EventTelemetry extends BaseSampleSourceTelemetry<EventData>
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 |
---|
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() |
int |
getVer() |
void |
setName(java.lang.String name)
Sets the name of the event.
|
void |
setSamplingPercentage(java.lang.Double samplingPercentage) |
reset, setSampleRate
getContext, getProperties, getSequence, getTelemetryName, getTimestamp, initialize, normalizeInstrumentationKey, sanitize, serialize, setSequence, setTimestamp, toString
public static final java.lang.String ENVELOPE_NAME
public static final java.lang.String BASE_TYPE
public EventTelemetry()
public EventTelemetry(java.lang.String name)
name
- The event's name. Max length 150.public int getVer()
getVer
in class BaseTelemetry<EventData>
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>