Documentation ¶
Index ¶
Constants ¶
View Source
const PolicyType = "POLICY"
PolicyType identifies the Alert to be for a Policy
View Source
const RuleType = "RULE"
RuleType identifies the Alert to be for a Policy
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { // CreatedAt is the creation timestamp (seconds since epoch). CreatedAt *time.Time `json:"createdAt" validate:"required"` // OutputIDs is the set of outputs for this alert. OutputIDs []*string `json:"outputIds,omitempty"` // PolicyDescription is the description of the rule that triggered the alert. PolicyDescription *string `json:"policyDescription,omitempty"` // PolicyID is the rule that triggered the alert. PolicyID *string `json:"policyId" validate:"required"` // PolicyName is the name of the policy at the time the alert was triggered. PolicyName *string `json:"policyName,omitempty"` // PolicyVersionID is the S3 object version for the policy. PolicyVersionID *string `json:"policyVersionId,omitempty"` // Runbook is the user-provided triage information. Runbook *string `json:"runbook,omitempty"` // Severity is the alert severity at the time of creation. Severity *string `json:"severity" validate:"required,oneof=INFO LOW MEDIUM HIGH CRITICAL"` // Tags is the set of policy tags. Tags []*string `json:"tags,omitempty"` // AlertID specifies the alertId that this Alert is associated with. AlertID *string `json:"alertId,omitempty"` // Type specifies if an alert is for a policy or a rule Type *string `json:"type,omitempty" validate:"omitempty,oneof=RULE POLICY"` // Title is the optional title for the alert Title *string `json:"title,omitempty"` }
Alert is the schema for each row in the Dynamo alerts table.
Click to show internal directories.
Click to hide internal directories.