Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Type string `json:"type"`
Data map[string]interface{} `json:"data"`
Timestamp time.Time `json:"timestamp"`
Raw string `json:"raw,omitempty"`
}
Event represents a generic agent event
func NewEventFromMap ¶
NewEvent creates a new event with the current timestamp
func NewEventFromRaw ¶
NewEventFromRaw creates an event from a raw JSON string
Click to show internal directories.
Click to hide internal directories.