cloudwatch

package
v0.1.90 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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