Documentation ¶
Index ¶
Constants ¶
View Source
const (
// NotificationEventCategory category for notification events.
NotificationEventCategory = "notifications"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Timestamp int64 `json:"timestamp"` Summary string `json:"summary"` Category string `json:"category,omitempty"` // Attributes are optional, they represent additional information that // can be attached to an event. Attributes map[string]interface{} `json:"attributes,omitempty"` }
Event defines the structure of an event
func NewNotification ¶
NewNotification creates a new notification event.
func (*Event) AddAttribute ¶
AddAttribute adds an attribute to the Event
Click to show internal directories.
Click to hide internal directories.