Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorDefinition ¶
type ProcessorDefinition struct {
Rule string `json:"rule"` // Processor definition
}
func (*ProcessorDefinition) MarshalHCL ¶
func (me *ProcessorDefinition) MarshalHCL(properties hcl.Properties) error
func (*ProcessorDefinition) Schema ¶
func (me *ProcessorDefinition) Schema() map[string]*schema.Schema
func (*ProcessorDefinition) UnmarshalHCL ¶
func (me *ProcessorDefinition) UnmarshalHCL(decoder hcl.Decoder) error
type RuleTesting ¶
type RuleTesting struct {
SampleLog string `json:"sampleLog"` // Sample log in JSON format.
}
func (*RuleTesting) MarshalHCL ¶
func (me *RuleTesting) MarshalHCL(properties hcl.Properties) error
func (*RuleTesting) UnmarshalHCL ¶
func (me *RuleTesting) UnmarshalHCL(decoder hcl.Decoder) error
type Settings ¶
type Settings struct { Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`) ProcessorDefinition *ProcessorDefinition `json:"ProcessorDefinition"` // ## Processor definition\nAdd a rule definition using our syntax. [In our documentation](https://dt-url.net/8k03xm2) you will find instructions and application [examples](https://dt-url.net/m24305t). Query string `json:"query"` // Matcher RuleName string `json:"ruleName"` // Rule name RuleTesting *RuleTesting `json:"RuleTesting"` // ## Rule testing\n### 1. Paste a log / JSON sample InsertAfter string `json:"-"` }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
Click to show internal directories.
Click to hide internal directories.