cloudwatchlogsinsights

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Type string
	Name string
	ProviderParameter
	DSN string
	*sqlprovider.Provider
}

func NewProvider

func NewProvider(pp *provider.ProviderParameter) (*Provider, error)

func (*Provider) NewQuery

func (p *Provider) NewQuery(name string, body hcl.Body, evalCtx *hcl.EvalContext) (provider.Query, error)

type ProviderParameter

type ProviderParameter struct {
	Timeout              int64    `json:"timeout,omitempty"`
	Polling              int64    `json:"polling_interval,omitempty"`
	DefaultLogGroupNames []string `json:"default_log_group_names,omitempty"`
	Region               string   `json:"region,omitempty"`
	Limit                *int32   `json:"limit,omitempty"`
}

type Query

type Query struct {
	Provder   *Provider
	Parameter QueryParamter
	*sqlprovider.Query
}

func (*Query) Run

func (q *Query) Run(ctx context.Context, evalCtx *hcl.EvalContext) (*provider.QueryResult, error)

type QueryParamter

type QueryParamter struct {
	StartTime     hcl.Expression `hcl:"start_time,optional"`
	EndTime       hcl.Expression `hcl:"end_time,optional"`
	Limit         *int32         `hcl:"limit,optional"`
	LogGroupNames hcl.Expression `hcl:"log_group_names,optional"`
	Remain        hcl.Body       `hcl:",remain"`
}

Jump to

Keyboard shortcuts

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