Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Passed is used to report successful result of a rule check (condition passed) Passed = "passed" // Failed is used to report unsuccessful result of a rule check (condition failed) Failed = "failed" // Error is used to report result of a rule check that resulted in an error (unable to evaluate condition) Error = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data map[string]interface{}
Data defines a key value map for storing attributes of a reported rule event
type Event ¶
type Event struct { AgentRuleID string `json:"agent_rule_id,omitempty"` AgentRuleVersion int `json:"agent_rule_version,omitempty"` AgentFrameworkID string `json:"agent_framework_id,omitempty"` AgentVersion string `json:"agent_version,omitempty"` Result string `json:"result,omitempty"` ResourceType string `json:"resource_type,omitempty"` ResourceID string `json:"resource_id,omitempty"` Tags []string `json:"tags"` Data interface{} `json:"data,omitempty"` ExpireAt time.Time `json:"expire_at,omitempty"` Evaluator string `json:"evaluator,omitempty"` }
Event describes a log event sent for an evaluated compliance/security rule.
type Reporter ¶
type Reporter interface { Report(event *Event) ReportRaw(content []byte, service string, tags ...string) }
Reporter defines an interface for reporting rule events
Click to show internal directories.
Click to hide internal directories.