Documentation ¶
Index ¶
- type Event
- func (event *Event) AddContext(elements map[string]any)
- func (event *Event) ExportEnvVars()
- func (event *Event) GetHostname() string
- func (event *Event) GetNamespaceName() string
- func (event *Event) GetPodName() string
- func (event *Event) GetRemoteIP() string
- func (event *Event) GetRemotePort() string
- func (event *Event) GetRemoteProtocol() string
- func (event *Event) GetTargetName() string
- func (event *Event) GetTargetNamespace() string
- func (event *Event) GetTargetResource() string
- func (event *Event) String() string
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 (*Event) AddContext ¶
func (*Event) ExportEnvVars ¶
func (event *Event) ExportEnvVars()
func (*Event) GetHostname ¶
func (*Event) GetNamespaceName ¶
func (*Event) GetPodName ¶
func (*Event) GetRemoteIP ¶
func (*Event) GetRemotePort ¶
func (*Event) GetRemoteProtocol ¶
func (*Event) GetTargetName ¶
func (*Event) GetTargetNamespace ¶
func (*Event) GetTargetResource ¶
Click to show internal directories.
Click to hide internal directories.