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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the context associated with the current telemetry item.protected abstract ObjectgetData()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 voidinitialize(ConcurrentMap<String, String> properties) Initializes the instance with the context propertiesvoidsetTimestamp(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:
getTimestampin interfaceTelemetry
-
setTimestamp
Sets date and time when event was recorded.- Specified by:
setTimestampin interfaceTelemetry
-
getContext
Gets the context associated with the current telemetry item.- Specified by:
getContextin interfaceTelemetry
-
getProperties
Gets a dictionary of application-defined property names and values providing additional information about this event.- Specified by:
getPropertiesin interfaceTelemetry
-
getData
-