Class BaseTelemetry
- java.lang.Object
-
- com.microsoft.applicationinsights.telemetry.BaseTelemetry
-
- All Implemented Interfaces:
Telemetry
- Direct Known Subclasses:
AvailabilityTelemetry
,EventTelemetry
,ExceptionTelemetry
,MetricTelemetry
,PageViewTelemetry
,RemoteDependencyTelemetry
,RequestTelemetry
,TraceTelemetry
public abstract class BaseTelemetry extends java.lang.Object implements Telemetry
Superclass for all telemetry data classes.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseTelemetry()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TelemetryContext
getContext()
Gets the context associated with the current telemetry item.protected abstract java.lang.Object
getData()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
Gets a dictionary of application-defined property names and values providing additional information about this event.java.util.Date
getTimestamp()
Gets date and time when event was recorded.protected void
initialize(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> properties)
Initializes the instance with the context propertiesvoid
setTimestamp(java.util.Date timestamp)
Sets date and time when event was recorded.
-
-
-
Method Detail
-
initialize
protected void initialize(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> properties)
Initializes the instance with the context properties
-
getTimestamp
public java.util.Date getTimestamp()
Gets date and time when event was recorded.- Specified by:
getTimestamp
in interfaceTelemetry
-
setTimestamp
public void setTimestamp(java.util.Date timestamp)
Sets date and time when event was recorded.- Specified by:
setTimestamp
in interfaceTelemetry
-
getContext
public TelemetryContext getContext()
Gets the context associated with the current telemetry item.- Specified by:
getContext
in interfaceTelemetry
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
Gets a dictionary of application-defined property names and values providing additional information about this event.- Specified by:
getProperties
in interfaceTelemetry
-
getData
protected abstract java.lang.Object getData()
-
-