cloudwatchlogsinsights

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const TypeName = "cloudwatch_logs_insights"

Variables

This section is empty.

Functions

func BuildQueryRunner

func BuildQueryRunner(name string, body hcl.Body, ctx *hcl.EvalContext) (queryrunner.QueryRunner, hcl.Diagnostics)

Types

type PreparedQuery

type PreparedQuery struct {
	*queryrunner.QueryBase

	StartTime hcl.Expression `hcl:"start_time"`
	EndTime   hcl.Expression `hcl:"end_time"`
	Query     hcl.Expression `hcl:"query"`
	Limit     *int32         `hcl:"limit"`

	LogGroupNames hcl.Expression `hcl:"log_group_names,optional"`
	IgnoreFields  []string       `hcl:"ignore_fields,optional"`
	// contains filtered or unexported fields
}

func (*PreparedQuery) Run

func (q *PreparedQuery) Run(ctx context.Context, variables map[string]cty.Value, functions map[string]function.Function) (*queryrunner.QueryResult, error)

type QueryRunner

type QueryRunner struct {
	Region *string `hcl:"region"`
	// contains filtered or unexported fields
}

func (*QueryRunner) Name

func (r *QueryRunner) Name() string

func (*QueryRunner) Prepare

func (r *QueryRunner) Prepare(base *queryrunner.QueryBase) (queryrunner.PreparedQuery, hcl.Diagnostics)

func (*QueryRunner) RunQuery

func (r *QueryRunner) RunQuery(ctx context.Context, name string, params *cloudwatchlogs.StartQueryInput, ignoreFields []string) (*queryrunner.QueryResult, error)

func (*QueryRunner) Type

func (r *QueryRunner) Type() string

Jump to

Keyboard shortcuts

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