Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAlertID ¶ added in v1.15.0
func GenerateAlertID(event *models.ComplianceNotification) *string
generates an ID from the policyID (policy name) and the current timestamp.
func Handle ¶
func Handle(event *models.ComplianceNotification) error
Handle method checks if a resource is compliant for a rule or not. If the resource is compliant, it will do nothing If the resource is not compliant, it will trigger an auto-remediation action and an alert - if alerting is not suppressed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.