mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 20:05:42 +03:00
NodeEvents struct
This commit is contained in:
committed by
Alex Dadgar
parent
89845b3b51
commit
365d47c5f2
18
nomad/structs/events.go
Normal file
18
nomad/structs/events.go
Normal 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 node’s state change
|
||||
type NodeEvent struct {
|
||||
Message string
|
||||
Subsystem
|
||||
Details map[string]string
|
||||
Timestamp int64
|
||||
}
|
||||
Reference in New Issue
Block a user