Class EventTelemetry
- java.lang.Object
-
- com.microsoft.applicationinsights.telemetry.BaseTelemetry
-
- com.microsoft.applicationinsights.telemetry.EventTelemetry
-
- All Implemented Interfaces:
Telemetry
public final class EventTelemetry extends BaseTelemetry
Telemetry type used to track custom events in Azure Application Insights.
-
-
Constructor Summary
Constructors Constructor Description EventTelemetry()
Creates a new instance.EventTelemetry(java.lang.String name)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EventData
getData()
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 event.void
setName(java.lang.String name)
Sets the name of the event.-
Methods inherited from class com.microsoft.applicationinsights.telemetry.BaseTelemetry
getContext, getProperties, getTimestamp, initialize, setTimestamp
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the event.
-
setName
public void setName(java.lang.String name)
Sets the name of the event. Max length 150.
-
getMetrics
public java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Double> getMetrics()
Gets a dictionary of custom defined metrics.
-
getData
protected EventData getData()
- Specified by:
getData
in classBaseTelemetry
-
-