Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RuleVersion is the version of Rule RuleVersion string = "v1" )
Variables ¶
View Source
var RuleGvr = schema.GroupVersionResource{ Group: types.RuleGroup, Version: RuleVersion, Resource: types.RulePlural, }
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
Enabled bool `json:"enabled" yaml:"enabled"`
ID string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
Description string `json:"description" yaml:"description"`
Expressions RuleExpressions `json:"expressions" yaml:"expressions"`
ProfileDependency apitypes.ProfileDependency `json:"profileDependency" yaml:"profileDependency"`
Severity int `json:"severity" yaml:"severity"`
SupportPolicy bool `json:"supportPolicy" yaml:"supportPolicy"`
Tags []string `json:"tags" yaml:"tags"`
State map[string]any `json:"state,omitempty" yaml:"state,omitempty"`
AgentVersionRequirement string `json:"agentVersionRequirement" yaml:"agentVersionRequirement"`
IsTriggerAlert bool `json:"isTriggerAlert" yaml:"isTriggerAlert"`
MitreTactic string `json:"mitreTactic" yaml:"mitreTactic"`
MitreTechnique string `json:"mitreTechnique" yaml:"mitreTechnique"`
}
type RuleExpression ¶
type RuleExpressions ¶
type RuleExpressions struct {
Message string `json:"message" yaml:"message"`
UniqueID string `json:"uniqueId" yaml:"uniqueId"`
RuleExpression []RuleExpression `json:"ruleExpression" yaml:"ruleExpression"`
}
Click to show internal directories.
Click to hide internal directories.