events

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 6 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
	Output       string                 `json:"output"`
	Priority     string                 `json:"priority"`
	Rule         string                 `json:"rule"`
	Time         time.Time              `json:"time"`
	Source       string                 `json:"source"`
	OutputFields map[string]interface{} `json:"output_fields"`
	Tags         []interface{}          `json:"tags"`
}

func DecodeEvent

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

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