Add Check to Event
@@ -12,12 +12,12 @@ type Event struct {
// Timestamp is the time in seconds since the Epoch.
Timestamp int64 `json:"timestamp"`
- // Entity is the Entity supplying the event. The default Entity for any
- // Event is the running Agent process--if the Event is sent by an Agent.
- Entity *Entity `json:"entity,omitempty"`
+ Entity *Entity `json:"entity"`
+ Check *Check `json:"check,omitempty"`
}
-// Entity provides Event context and/or an Agent identifier.
+// Entity is the Entity supplying the event. The default Entity for any
+// Event is the running Agent process--if the Event is sent by an Agent.
type Entity struct {
ID string `json:"id"`
Class string `json:"class"`
