event_merge

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Merge

type Merge struct {
	Always bool `mapstructure:"always,omitempty" json:"always,omitempty"`
	Debug  bool `mapstructure:"debug,omitempty" json:"debug,omitempty"`
	// contains filtered or unexported fields
}

Merge merges a list of event messages into one or multiple messages based on some criteria

func (*Merge) Apply

func (p *Merge) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg

func (*Merge) Init

func (p *Merge) Init(cfg interface{}, opts ...formatters.Option) error

func (*Merge) WithActions added in v0.21.0

func (p *Merge) WithActions(act map[string]map[string]interface{})

func (*Merge) WithLogger added in v0.9.1

func (p *Merge) WithLogger(l *log.Logger)

func (*Merge) WithTargets added in v0.12.2

func (p *Merge) WithTargets(tcs map[string]*types.TargetConfig)

Jump to

Keyboard shortcuts

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