Help us shape the future of Go! Take the 2026 Go Developer Survey

cloudwatch

package
v0.1.61 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFieldMappingConfig

func DefaultFieldMappingConfig() logs.FieldMappingConfig

Types

type Event

type Event struct {
	ID      string            `json:"id,omitempty"`
	Time    string            `json:"timestamp,omitempty"`
	Message string            `json:"message,omitempty"`
	Labels  map[string]string `json:"labels,omitempty"`
}

type Request

type Request struct {
	logs.LogsRequestBase `json:",inline" template:"true"`

	// The log group on which to perform the query.
	LogGroup string `json:"logGroup" template:"true"`

	// The query to perform on the log group.
	Query string `json:"query" template:"true"`
}

+kubebuilder:object:generate=true

func (*Request) DeepCopy

func (in *Request) DeepCopy() *Request

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Request.

func (*Request) DeepCopyInto

func (in *Request) DeepCopyInto(out *Request)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Searcher

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

func New

func New(client *cloudwatchlogs.Client, mappingConfig *logs.FieldMappingConfig) *Searcher

func (*Searcher) Search

func (t *Searcher) Search(ctx context.Context, request Request) (*logs.LogResult, error)

Jump to

Keyboard shortcuts

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