logdpprules

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 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 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) Schema

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

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
}

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