Message

@Serializable
data class Message(val data: MessageData, val eventName: Message.EventName, val sessionId: String, val timestamp: Long = System.currentTimeMillis(), val version: Int = 1)

Represents a monitoring message.

Constructors

Link copied to clipboard
constructor(data: MessageData, eventName: Message.EventName, sessionId: String, timestamp: Long = System.currentTimeMillis(), version: Int = 1)

Types

Link copied to clipboard

The name of the event that triggered this monitoring message.

Properties

Link copied to clipboard

The data associated with the message.

Link copied to clipboard
@SerialName(value = "event_name")
val eventName: Message.EventName

The name of the event.

Link copied to clipboard
@SerialName(value = "session_id")
val sessionId: String

The session id.

Link copied to clipboard

The current timestamp.

Link copied to clipboard
val version: Int = 1

The version of the schema used in data.