public interface Telemetry extends JsonSerializable
Modifier and Type | Method and Description |
---|---|
TelemetryContext |
getContext()
Gets the context associated with this telemetry instance.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Gets the map of application-defined property names and values.
|
java.lang.String |
getSequence()
Sequence field used to track absolute order of uploaded events.
|
java.util.Date |
getTimestamp()
Gets the time when telemetry was recorded
|
void |
reset() |
void |
sanitize()
Deprecated.
Sanitizes the properties of the telemetry item based on DP constraints.
|
void |
serialize(JsonTelemetryDataSerializer writer)
Serializes itself to Json using the
JsonTelemetryDataSerializer |
void |
setSequence(java.lang.String sequence)
Sets the sequence.
|
void |
setTimestamp(java.util.Date date)
Sets the time when telemetry was recorded
|
java.util.Date getTimestamp()
java.lang.String getSequence()
void setSequence(java.lang.String sequence)
sequence
- The sequence.void setTimestamp(java.util.Date date)
date
- Recorded time.TelemetryContext getContext()
java.util.Map<java.lang.String,java.lang.String> getProperties()
@Deprecated void sanitize()
void serialize(JsonTelemetryDataSerializer writer) throws java.io.IOException
JsonTelemetryDataSerializer
serialize
in interface JsonSerializable
writer
- The writer that helps with serializing into Json formatjava.io.IOException
- a possible exceptionvoid reset()