Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventCollector ¶
type EventCollector struct {
// contains filtered or unexported fields
}
EventCollector aggregates and groups CloudTrail events for alerting
func NewEventCollector ¶
func NewEventCollector(alertFunc func(*GroupedRecord, handler.Record)) *EventCollector
NewEventCollector creates a new EventCollector instance
func (*EventCollector) AddRecord ¶
func (ec *EventCollector) AddRecord(record map[string]interface{}, userName, eventName, errorCode string, eventTime time.Time, eventRecord handler.Record)
AddRecord adds a CloudTrail record to the collector, grouping similar events
func (*EventCollector) SendAllAlerts ¶
func (ec *EventCollector) SendAllAlerts()
SendAllAlerts sends alerts for all collected event groups
Click to show internal directories.
Click to hide internal directories.