Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandler ¶
func RegisterHandler(policyType string, handlerFunc HandlerFunc) error
Types ¶
type Event ¶
type Event struct { Time time.Time PolicyName string `bson:"policy_name"` AgentUID string `bson:"agent_uid"` Data interface{} // Data may include status, stats, etc. }
Event data that will be sent by policy handlers
type HandlerFunc ¶
HandlerFunc is the type of a policy handler function. Any policy handler function must be of this type.
type Policy ¶
type Policy struct { Name string // Name of the monitoring policy AgentUID string // Agent UID Type string // Type denotes the monitoring policy type. e.g. "tcp" M map[string]string // M is the map containing the rules of a particular monitoring policy. }
Policy represents a monitoring policy
Click to show internal directories.
Click to hide internal directories.