severity

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeverityParserConfig

type SeverityParserConfig struct {
	helper.TransformerConfig    `mapstructure:",squash" yaml:",inline"`
	helper.SeverityParserConfig `mapstructure:",omitempty,squash" yaml:",omitempty,inline"`
}

SeverityParserConfig is the configuration of a severity parser operator.

func NewSeverityParserConfig

func NewSeverityParserConfig(operatorID string) *SeverityParserConfig

NewSeverityParserConfig creates a new severity parser config with default values

func (SeverityParserConfig) Build

Build will build a severity parser operator.

type SeverityParserOperator

type SeverityParserOperator struct {
	helper.TransformerOperator
	helper.SeverityParser
}

SeverityParserOperator is an operator that parses severity from a field to an entry.

func (*SeverityParserOperator) Process

func (p *SeverityParserOperator) Process(ctx context.Context, entry *entry.Entry) error

Process will parse severity from an entry.

Jump to

Keyboard shortcuts

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