event_convert

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Convert

type Convert struct {
	Values []string `mapstructure:"value-names,omitempty" json:"value-names,omitempty"`
	Type   string   `mapstructure:"type,omitempty" json:"type,omitempty"`
	Debug  bool     `mapstructure:"debug,omitempty" json:"debug,omitempty"`
	// contains filtered or unexported fields
}

Convert converts the value with key matching one of regexes, to the specified Type

func (*Convert) Apply

func (c *Convert) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg

func (*Convert) Init

func (c *Convert) Init(cfg interface{}, opts ...formatters.Option) error

func (*Convert) WithActions added in v0.21.0

func (c *Convert) WithActions(act map[string]map[string]interface{})

func (*Convert) WithLogger added in v0.9.1

func (c *Convert) WithLogger(l *log.Logger)

func (*Convert) WithTargets added in v0.12.2

func (c *Convert) WithTargets(tcs map[string]*types.TargetConfig)

Jump to

Keyboard shortcuts

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