Metadata

sealed class Metadata(source)

Sealed class representing different types of metadata. This class has several subclasses: PublicMetadata, PrivateMetadata, PrivateMetadataByLevel, MaskedMetadata, and MaskedMetadataByLevel.

Inheritors

Types

Link copied to clipboard
data class MaskedMetadata(val key: String, val value: String) : Metadata

Represents metadata with masked value.

Link copied to clipboard
data class MaskedMetadataByLevel(val key: String, val value: String, val level: LogLevel) : Metadata

Represents masked metadata with a specific level of confidentiality.

Link copied to clipboard
data class PrivateMetadata(val key: String, val value: String) : Metadata

Data class representing private metadata. It extends the Metadata class.

Link copied to clipboard
data class PrivateMetadataByLevel(val category: LogComponent, val key: String, val value: String, val level: LogLevel) : Metadata

Represents private metadata with a specific level.

Link copied to clipboard
data class PublicMetadata(val key: String, val value: String) : Metadata

Represents public metadata with a key-value pair.

Functions

Link copied to clipboard
fun getValue(level: LogLevel): String

Returns the value associated with the given LogLevel.