pipelines

package
v1.57.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TransformationFieldTypes = struct {
	Boolean   TransformationFieldType
	Double    TransformationFieldType
	Duration  TransformationFieldType
	Int       TransformationFieldType
	Ipaddr    TransformationFieldType
	Long      TransformationFieldType
	String    TransformationFieldType
	Timestamp TransformationFieldType
}{
	"BOOLEAN",
	"DOUBLE",
	"DURATION",
	"INT",
	"IPADDR",
	"LONG",
	"STRING",
	"TIMESTAMP",
}

Functions

This section is empty.

Types

type RuleTesting

type RuleTesting struct {
	SampleEvent string `json:"sampleEvent"` // Sample event to use for the test run. Only JSON format is supported.
}

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`)
	Matcher              string               `json:"matcher"`                        // [See our documentation](https://dt-url.net/bp234rv)
	RuleName             string               `json:"ruleName"`                       // Rule name
	RuleTesting          *RuleTesting         `json:"RuleTesting"`                    // ## Rule testing\n### 1. Paste an event sample
	Script               string               `json:"script"`                         // [See our documentation](https://dt-url.net/pz030w5)
	TransformationFields TransformationFields `json:"transformationFields,omitempty"` // Transformation fields
	InsertAfter          string               `json:"-"`
}

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

type TransformationField

type TransformationField struct {
	Array    bool                    `json:"array"` // Is Array
	Name     string                  `json:"name"`
	Optional bool                    `json:"optional"`
	Readonly bool                    `json:"readonly"` // Read-only
	Type     TransformationFieldType `json:"type"`     // Possible Values: `BOOLEAN`, `DOUBLE`, `DURATION`, `INT`, `IPADDR`, `LONG`, `STRING`, `TIMESTAMP`
}

func (*TransformationField) MarshalHCL

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

func (*TransformationField) Schema

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

func (*TransformationField) UnmarshalHCL

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

type TransformationFieldType

type TransformationFieldType string

type TransformationFields

type TransformationFields []*TransformationField

func (TransformationFields) MarshalHCL

func (me TransformationFields) MarshalHCL(properties hcl.Properties) error

func (*TransformationFields) Schema

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

func (*TransformationFields) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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