hostmetadata

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 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 HostMetadata

type HostMetadata struct {
	helper.TransformerOperator
	helper.HostIdentifier
}

HostMetadata is an operator that can add host metadata to incoming entries

func (*HostMetadata) Process

func (h *HostMetadata) Process(ctx context.Context, entry *entry.Entry) error

Process will process an incoming entry using the metadata transform.

func (*HostMetadata) Transform

func (h *HostMetadata) Transform(entry *entry.Entry) error

Transform will transform an entry, adding the configured host metadata.

type HostMetadataConfig

type HostMetadataConfig struct {
	helper.TransformerConfig    `yaml:",inline"`
	helper.HostIdentifierConfig `yaml:",inline"`
}

HostMetadataConfig is the configuration of a host metadata operator

func NewHostMetadataConfig

func NewHostMetadataConfig(operatorID string) *HostMetadataConfig

NewHostMetadataConfig returns a HostMetadataConfig with default values

func (HostMetadataConfig) Build

Build will build an operator from the supplied configuration

Jump to

Keyboard shortcuts

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