events

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 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 Event

type Event struct {
	TraceID      string         `json:"trace_id"`
	Output       string         `json:"output"`
	Priority     string         `json:"priority"`
	Rule         string         `json:"rule"`
	Hostname     string         `json:"hostname"`
	Time         time.Time      `json:"time"`
	Source       string         `json:"source"`
	OutputFields map[string]any `json:"output_fields"`
	Context      map[string]any `json:"context"`
	Tags         []any          `json:"tags"`
}

func DecodeEvent

func DecodeEvent(payload io.Reader) (*Event, error)

func (*Event) AddContext

func (event *Event) AddContext(elements map[string]any)

func (*Event) ExportEnvVars

func (event *Event) ExportEnvVars()

func (*Event) GetHostname

func (event *Event) GetHostname() string

func (*Event) GetNamespaceName

func (event *Event) GetNamespaceName() string

func (*Event) GetPodName

func (event *Event) GetPodName() string

func (*Event) GetRemoteIP

func (event *Event) GetRemoteIP() string

func (*Event) GetRemotePort

func (event *Event) GetRemotePort() string

func (*Event) GetRemoteProtocol

func (event *Event) GetRemoteProtocol() string

func (*Event) GetTargetName

func (event *Event) GetTargetName() string

func (*Event) GetTargetNamespace

func (event *Event) GetTargetNamespace() string

func (*Event) GetTargetResource

func (event *Event) GetTargetResource() string

func (*Event) String

func (event *Event) String() string

Jump to

Keyboard shortcuts

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