cloudwatch

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 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