cwlog

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeStr = "cwlogs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Unmarshaler

type Unmarshaler struct {
	// contains filtered or unexported fields
}

Unmarshaler for the CloudWatch Log JSON record format.

func NewUnmarshaler

func NewUnmarshaler(logger *zap.Logger) *Unmarshaler

NewUnmarshaler creates a new instance of the Unmarshaler.

func (Unmarshaler) Type

func (u Unmarshaler) Type() string

Type of the serialized messages.

func (Unmarshaler) Unmarshal

func (u Unmarshaler) Unmarshal(records [][]byte) (plog.Logs, error)

Unmarshal deserializes the records into cWLogs and uses the resourceLogsBuilder to group them into a single plog.Logs. Skips invalid cWLogs received in the record and

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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