Package com._1c.g5.v8.dt.telemetry
Class TelemetryRecord
- java.lang.Object
-
- com._1c.g5.v8.dt.telemetry.TelemetryRecord
-
public final class TelemetryRecord extends Object
Standard telemetry record. Contains a data and a timestamp to restore the proper order of operation records being gathered from several independent sources.
The recorded data are provided by the correspondingITelemetryProvider
-
-
Constructor Summary
Constructors Constructor Description TelemetryRecord(long timestamp, Object data, Function<Object,String> externalizer)
Constructs the telemetry record
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
externalize()
Gets the externalized representation of the recordObject
getData()
Gets the raw data of the recordlong
getTimestamp()
Gets the timestamp of the record
-
-
-
Constructor Detail
-
TelemetryRecord
public TelemetryRecord(long timestamp, Object data, Function<Object,String> externalizer)
Constructs the telemetry record- Parameters:
timestamp
- The timestamp of the event being recorded. Should be a positive numberdata
- The event data. Depends on the implementation of the recorder. May not benull
externalizer
- The domain-specific function being used to create external representation of the recorded event. May not benull
-
-
Method Detail
-
externalize
public String externalize()
Gets the externalized representation of the record- Returns:
- The externalized representation of the record. May not be
null
-
getData
public Object getData()
Gets the raw data of the record- Returns:
- The data. May not be
null
-
getTimestamp
public long getTimestamp()
Gets the timestamp of the record- Returns:
- The record timestamp. May not be
null
-
-