From 365d47c5f2cce34dba4deb79b7bd741ae29d827f Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Wed, 28 Feb 2018 15:07:07 -0500 Subject: [PATCH] NodeEvents struct --- nomad/structs/events.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nomad/structs/events.go 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 +}