LogEntryDto

data class LogEntryDto(var deviceId: String, var message: String, var severity: LogSeverityEnumDto, var userId: String? = null, var timestamp: OffsetDateTime? = null, var stacktrace: String? = null, var resource: String? = null, var operation: String? = null, var labels: MutableList<String>? = null, var metadata: MutableMap<String, String>? = null)

Description of the log entry with all the details

Parameters

deviceId

A unique identifier for the device triggering the event.

message

Message from a log. Should describe the entry briefly and concisely.

severity
userId

A unique identifier for the user triggering the event.

timestamp

Timestamp for the log entry. If no entry is set, the server will set the current time.

stacktrace

Includes a stack trace if an error occurs.

resource

Describes the resource in which the error occurred.

operation

Indicates the operation currently being performed to determine more precisely in which part of the code the logging was triggered.

labels

Can contain a list of labels that can be used to tag the log entry for later search and thus also grouping.

metadata

Key/Value list for extended logging data / metadata.

Constructors

Link copied to clipboard
constructor(deviceId: String, message: String, severity: LogSeverityEnumDto, userId: String? = null, timestamp: OffsetDateTime? = null, stacktrace: String? = null, resource: String? = null, operation: String? = null, labels: MutableList<String>? = null, metadata: MutableMap<String, String>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:Size(max = 4096)
var message: String
Link copied to clipboard
Link copied to clipboard
@get:Size(max = 256)
var operation: String?
Link copied to clipboard
@get:Size(max = 512)
var resource: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard