models

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComplianceNotification

type ComplianceNotification struct {

	// OutputIds contains a list of destinations to send an alert to
	OutputIds []string `json:"outputIds"`

	// PolicyID is the id of the policy that triggered
	PolicyID string `json:"policyId" validate:"required,min=1"`

	// PolicyVersionID is the version of policy when the alert triggered
	PolicyVersionID string `json:"policyVersionId"`

	// PolicySourceID is the id of the source integration
	PolicySourceID string `json:"policySourceId" validate:"required,min=1"`

	// ResourceID is the ID specific to the resource
	ResourceID string `json:"resourceId" validate:"required,min=1"`

	// ShouldAlert indicates whether this notification should cause an alert to be send to the customer
	ShouldAlert bool `json:"shouldAlert"`

	// Timestamp indicates when the policy was actually evaluated
	Timestamp time.Time `json:"timestamp"`
}

ComplianceNotification represents the event sent to the AlertProcessor by the compliance engine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL