Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Name string `json:"name"` Parameters ActionParameters `json:"parameters,omitempty"` }
func (*Action) MarshalHCL ¶
func (me *Action) MarshalHCL(properties hcl.Properties) error
type ActionParameter ¶
func (*ActionParameter) MarshalHCL ¶
func (me *ActionParameter) MarshalHCL(properties hcl.Properties) error
func (*ActionParameter) UnmarshalHCL ¶
func (me *ActionParameter) UnmarshalHCL(decoder hcl.Decoder) error
type ActionParameters ¶
type ActionParameters []*ActionParameter
func (ActionParameters) MarshalHCL ¶
func (me ActionParameters) MarshalHCL(properties hcl.Properties) error
func (*ActionParameters) UnmarshalHCL ¶
func (me *ActionParameters) UnmarshalHCL(decoder hcl.Decoder) error
type Actions ¶
type Actions []*Action
func (Actions) MarshalHCL ¶
func (me Actions) MarshalHCL(properties hcl.Properties) error
type Rule ¶
type Rule struct { Actions Actions `json:"actions,omitempty"` Category string `json:"category"` Description string `json:"description"` EnvironmentScope bool `json:"environmentScope"` // Environment scope ID string `json:"id"` Priority string `json:"priority"` Query string `json:"query"` // Rule query Title string `json:"title"` }
func (*Rule) MarshalHCL ¶
func (me *Rule) MarshalHCL(properties hcl.Properties) error
type RuleSettings ¶
type RuleSettings struct {
Muted bool `json:"muted"`
}
func (*RuleSettings) MarshalHCL ¶
func (me *RuleSettings) MarshalHCL(properties hcl.Properties) error
func (*RuleSettings) UnmarshalHCL ¶
func (me *RuleSettings) UnmarshalHCL(decoder hcl.Decoder) error
type Settings ¶
type Settings struct { Rule *Rule `json:"rule"` // Rule: Settings *RuleSettings `json:"settings"` // Settings: }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
Click to show internal directories.
Click to hide internal directories.