diff --git a/nomad/structs/events.go b/nomad/structs/events.go new file mode 100644 index 000000000..769a79ee6 --- /dev/null +++ b/nomad/structs/events.go @@ -0,0 +1,18 @@ +package structs + +// Subsystem denotes the subsystem where a node event took place. +type Subsystem string + +const ( + Drain Subsystem = "Drain" + Driver Subsystem = "Driver" + Heartbeating Subsystem = "Heartbeating" +) + +// NodeEvent is a single unit representing a node’s state change +type NodeEvent struct { + Message string + Subsystem + Details map[string]string + Timestamp int64 +}