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
Superclass for all telemetry data classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the context associated with the current telemetry item.protected abstract Object
getData()
Gets a dictionary of application-defined property names and values providing additional information about this event.Gets date and time when event was recorded.protected void
initialize
(ConcurrentMap<String, String> properties) Initializes the instance with the context propertiesvoid
setTimestamp
(Date timestamp) Sets date and time when event was recorded.
-
Constructor Details
-
BaseTelemetry
protected BaseTelemetry()
-
-
Method Details
-
initialize
Initializes the instance with the context properties -
getTimestamp
Gets date and time when event was recorded.- Specified by:
getTimestamp
in interfaceTelemetry
-
setTimestamp
Sets date and time when event was recorded.- Specified by:
setTimestamp
in interfaceTelemetry
-
getContext
Gets the context associated with the current telemetry item.- Specified by:
getContext
in interfaceTelemetry
-
getProperties
Gets a dictionary of application-defined property names and values providing additional information about this event.- Specified by:
getProperties
in interfaceTelemetry
-
getData
-