Class 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 corresponding ITelemetryProvider
    • 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 number
        data - The event data. Depends on the implementation of the recorder. May not be null
        externalizer - The domain-specific function being used to create external representation of the recorded event. May not be null
    • 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