-
public class TelemetryContext.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerBYTE_LOST_UNKNOWNprivate final StringTELEMETRY_DATA_LIMITprivate final StringTELEMETRY_FILE_PATHprivate final StringTELEMETRY_BATCH_OPERATIONprivate final StringTELEMETRY_BATCH_BYTES_EXPECTEDprivate final StringTELEMETRY_BATCH_BYTES_ACTUALprivate final StringTELEMETRY_BLOCK_TYPE_ACTUAL_IDENTIFIERprivate final StringTELEMETRY_BLOCK_TYPE_EXPECTEDprivate final StringTELEMETRY_BLOCK_TYPE_EXPECTED_IDENTIFIERprivate final StringTELEMETRY_TLV_TYPEprivate final StringTELEMETRY_TLV_SIZEprivate final StringTELEMETRY_TLV_SIZE_LIMITprivate final StringTELEMETRY_TLV_DATA_LENGTHprivate final StringTELEMETRY_TLV_DATA_LENGTH_LIMITprivate final StringTELEMETRY_TLV_HEADER_LENGTHprivate final StringTELEMETRY_TLV_HEADER_LENGTH_LIMITpublic final static TelemetryContext.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Map<String, Object>asAttributesMap(String featureName, Integer bytesLost, String eventType, Pair<String, Object> customFields)Builds a map of telemetry attributes from the provided feature name, optional dropped bytes, and optional event type. final IntegergetBYTE_LOST_UNKNOWN()Sentinel value used when the number of bytes lost for a dropped event is not known. final StringgetTELEMETRY_DATA_LIMIT()Configured limit, in bytes, that the persisted data exceeded. final StringgetTELEMETRY_FILE_PATH()Path of the file involved in the telemetry event. final StringgetTELEMETRY_BATCH_OPERATION()Batch operation being performed when the telemetry event was recorded. final StringgetTELEMETRY_BATCH_BYTES_EXPECTED()Number of bytes expected to be read or written for the batch operation. final StringgetTELEMETRY_BATCH_BYTES_ACTUAL()Number of bytes actually read or written for the batch operation. final StringgetTELEMETRY_BLOCK_TYPE_ACTUAL_IDENTIFIER()Identifier of the TLV block type that was actually read. final StringgetTELEMETRY_BLOCK_TYPE_EXPECTED()TLV block type that was expected to be read. final StringgetTELEMETRY_BLOCK_TYPE_EXPECTED_IDENTIFIER()Identifier of the TLV block type that was expected to be read. final StringgetTELEMETRY_TLV_TYPE()Type of TLV entry, whether captured while writing it or while reading it back. final StringgetTELEMETRY_TLV_SIZE()Size, in bytes, of the TLV entry involved in the telemetry event. final StringgetTELEMETRY_TLV_SIZE_LIMIT()Configured size limit, in bytes, that the TLV entry exceeded. final StringgetTELEMETRY_TLV_DATA_LENGTH()Length, in bytes, of the TLV entry's data block. final StringgetTELEMETRY_TLV_DATA_LENGTH_LIMIT()Configured length limit, in bytes, that the TLV entry's data block exceeded. final StringgetTELEMETRY_TLV_HEADER_LENGTH()Length, in bytes, of the TLV entry's header block. final StringgetTELEMETRY_TLV_HEADER_LENGTH_LIMIT()Configured length limit, in bytes, that the TLV entry's header block exceeded. -
-
Method Detail
-
asAttributesMap
final Map<String, Object> asAttributesMap(String featureName, Integer bytesLost, String eventType, Pair<String, Object> customFields)
Builds a map of telemetry attributes from the provided feature name, optional dropped bytes, and optional event type.
-
getBYTE_LOST_UNKNOWN
final Integer getBYTE_LOST_UNKNOWN()
Sentinel value used when the number of bytes lost for a dropped event is not known.
-
getTELEMETRY_DATA_LIMIT
final String getTELEMETRY_DATA_LIMIT()
Configured limit, in bytes, that the persisted data exceeded.
-
getTELEMETRY_FILE_PATH
final String getTELEMETRY_FILE_PATH()
Path of the file involved in the telemetry event.
-
getTELEMETRY_BATCH_OPERATION
final String getTELEMETRY_BATCH_OPERATION()
Batch operation being performed when the telemetry event was recorded.
-
getTELEMETRY_BATCH_BYTES_EXPECTED
final String getTELEMETRY_BATCH_BYTES_EXPECTED()
Number of bytes expected to be read or written for the batch operation.
-
getTELEMETRY_BATCH_BYTES_ACTUAL
final String getTELEMETRY_BATCH_BYTES_ACTUAL()
Number of bytes actually read or written for the batch operation.
-
getTELEMETRY_BLOCK_TYPE_ACTUAL_IDENTIFIER
final String getTELEMETRY_BLOCK_TYPE_ACTUAL_IDENTIFIER()
Identifier of the TLV block type that was actually read.
-
getTELEMETRY_BLOCK_TYPE_EXPECTED
final String getTELEMETRY_BLOCK_TYPE_EXPECTED()
TLV block type that was expected to be read.
-
getTELEMETRY_BLOCK_TYPE_EXPECTED_IDENTIFIER
final String getTELEMETRY_BLOCK_TYPE_EXPECTED_IDENTIFIER()
Identifier of the TLV block type that was expected to be read.
-
getTELEMETRY_TLV_TYPE
final String getTELEMETRY_TLV_TYPE()
Type of TLV entry, whether captured while writing it or while reading it back.
-
getTELEMETRY_TLV_SIZE
final String getTELEMETRY_TLV_SIZE()
Size, in bytes, of the TLV entry involved in the telemetry event.
-
getTELEMETRY_TLV_SIZE_LIMIT
final String getTELEMETRY_TLV_SIZE_LIMIT()
Configured size limit, in bytes, that the TLV entry exceeded.
-
getTELEMETRY_TLV_DATA_LENGTH
final String getTELEMETRY_TLV_DATA_LENGTH()
Length, in bytes, of the TLV entry's data block.
-
getTELEMETRY_TLV_DATA_LENGTH_LIMIT
final String getTELEMETRY_TLV_DATA_LENGTH_LIMIT()
Configured length limit, in bytes, that the TLV entry's data block exceeded.
-
getTELEMETRY_TLV_HEADER_LENGTH
final String getTELEMETRY_TLV_HEADER_LENGTH()
Length, in bytes, of the TLV entry's header block.
-
getTELEMETRY_TLV_HEADER_LENGTH_LIMIT
final String getTELEMETRY_TLV_HEADER_LENGTH_LIMIT()
Configured length limit, in bytes, that the TLV entry's header block exceeded.
-
-
-
-