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) 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
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
Click to show internal directories.
Click to hide internal directories.