log

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PluginKind = "OpenSearchLogQuery"

Variables

This section is empty.

Functions

func OpenSearchLogQuery

func OpenSearchLogQuery(expr string, options ...Option) query.Option

Types

type Builder

type Builder struct {
	PluginSpec `json:",inline" yaml:",inline"`
}

type Option

type Option func(plugin *Builder) error

func Datasource

func Datasource(datasourceName string) Option

func DisableTimeFilter

func DisableTimeFilter(disable bool) Option

func Index

func Index(index string) Option

func MessageField

func MessageField(field string) Option

func Query

func Query(expr string) Option

func TimestampField

func TimestampField(field string) Option

type PluginSpec

type PluginSpec struct {
	Datasource        *datasource.Selector `json:"datasource,omitempty" yaml:"datasource,omitempty"`
	Query             string               `json:"query" yaml:"query"`
	Index             string               `json:"index,omitempty" yaml:"index,omitempty"`
	TimestampField    string               `json:"timestampField,omitempty" yaml:"timestampField,omitempty"`
	MessageField      string               `json:"messageField,omitempty" yaml:"messageField,omitempty"`
	DisableTimeFilter bool                 `json:"disableTimeFilter,omitempty" yaml:"disableTimeFilter,omitempty"`
}

func (*PluginSpec) UnmarshalJSON

func (s *PluginSpec) UnmarshalJSON(data []byte) error

func (*PluginSpec) UnmarshalYAML

func (s *PluginSpec) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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