defaultrules

package
v1.69.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (*Action) Schema

func (me *Action) Schema() map[string]*schema.Schema

func (*Action) UnmarshalHCL

func (me *Action) UnmarshalHCL(decoder hcl.Decoder) error

type ActionParameter

type ActionParameter struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*ActionParameter) MarshalHCL

func (me *ActionParameter) MarshalHCL(properties hcl.Properties) error

func (*ActionParameter) Schema

func (me *ActionParameter) Schema() map[string]*schema.Schema

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) Schema

func (me *ActionParameters) Schema() map[string]*schema.Schema

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

func (*Actions) Schema

func (me *Actions) Schema() map[string]*schema.Schema

func (*Actions) UnmarshalHCL

func (me *Actions) UnmarshalHCL(decoder hcl.Decoder) 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

func (*Rule) Schema

func (me *Rule) Schema() map[string]*schema.Schema

func (*Rule) UnmarshalHCL

func (me *Rule) UnmarshalHCL(decoder hcl.Decoder) error

type RuleSettings

type RuleSettings struct {
	Muted bool `json:"muted"`
}

func (*RuleSettings) MarshalHCL

func (me *RuleSettings) MarshalHCL(properties hcl.Properties) error

func (*RuleSettings) Schema

func (me *RuleSettings) Schema() map[string]*schema.Schema

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

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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