NodeEvents struct

This commit is contained in:
Chelsea Holland Komlo
2018-02-28 15:07:07 -05:00
committed by Alex Dadgar
parent 89845b3b51
commit 365d47c5f2

18
nomad/structs/events.go Normal file
View File

@@ -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 nodes state change
type NodeEvent struct {
Message string
Subsystem
Details map[string]string
Timestamp int64
}