EventMessage

@Serializable
data class EventMessage(val type: EventMessage.Type? = null, val action: String? = null, val actor: EventActor? = null, val scope: EventMessage.Scope? = null, val time: Long? = null, val timeNano: Long? = null)

EventMessage represents the information an event contains.

Parameters

type

The type of object emitting the event

action

The type of event

actor
scope

Scope of the event. Engine events are local scope. Cluster (Swarm) events are swarm scope.

time

Timestamp of event

timeNano

Timestamp of event, with nanosecond accuracy

Constructors

Link copied to clipboard
constructor(type: EventMessage.Type? = null, action: String? = null, actor: EventActor? = null, scope: EventMessage.Scope? = null, time: Long? = null, timeNano: Long? = null)

Types

Link copied to clipboard
@Serializable
enum Scope : Enum<EventMessage.Scope>

Scope of the event. Engine events are local scope. Cluster (Swarm) events are swarm scope.

Link copied to clipboard
@Serializable
enum Type : Enum<EventMessage.Type>

The type of object emitting the event

Properties

Link copied to clipboard
@SerialName(value = "Action")
val action: String?
Link copied to clipboard
@SerialName(value = "Actor")
val actor: EventActor?
Link copied to clipboard
@SerialName(value = "scope")
val scope: EventMessage.Scope?
Link copied to clipboard
@SerialName(value = "time")
val time: Long?
Link copied to clipboard
@SerialName(value = "timeNano")
val timeNano: Long?
Link copied to clipboard
@SerialName(value = "Type")
val type: EventMessage.Type?