records

package
v0.0.0-...-f1e0df7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogBatch

type LogBatch struct {
	MessageType         string      `json:"messageType,omitempty"`
	Owner               string      `json:"owner,omitempty"`
	LogGroup            string      `json:"logGroup,omitempty"`
	LogStream           string      `json:"logStream,omitempty"`
	SubscriptionFilters []string    `json:"subscriptionFilters,omitempty"`
	LogEvents           []*LogEntry `json:"logEvents,omitempty"`
}

LogBatch matches the cloudwatch logs batch structure

type LogEntry

type LogEntry struct {
	ID        string `json:"id,omitempty"`
	Timestamp int64  `json:"timestamp,omitempty"`
	Message   string `json:"message,omitempty"`
}

LogEntry matches the cloudwatch log entry structure

type LogMessage

type LogMessage struct {
	LogGroup  string // optional log group
	Message   string
	Timestamp string
}

LogMessage log message after decompression and parsing

func UncompressLogs

func UncompressLogs(ts *time.Time, data []byte) ([]*LogMessage, error)

UncompressLogs takes gziped CloudWatch Log batch data and returns LogMessage(s)

Jump to

Keyboard shortcuts

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