cloudwatch

package
v0.0.85-test Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 41 Imported by: 101

Documentation

Index

Constants

View Source
const (
	MetricQueryTypeSearch metricQueryType = iota
	MetricQueryTypeQuery
)
View Source
const (
	MetricEditorModeBuilder metricEditorMode = iota
	MetricEditorModeRaw
)
View Source
const (
	GMDApiModeMetricStat gmdApiMode = iota
	GMDApiModeInferredSearchExpression
	GMDApiModeMathExpression
	GMDApiModeSQLExpression
)
View Source
const (
	LimitExceededException = "LimitExceededException"
)

Variables

View Source
var NewCWClient = func(sess *session.Session) cloudwatchiface.CloudWatchAPI {
	return cloudwatch.New(sess)
}

NewCWClient is a CloudWatch client factory.

Stubbable by tests.

View Source
var NewCWLogsClient = func(sess *session.Session) cloudwatchlogsiface.CloudWatchLogsAPI {
	return cloudwatchlogs.New(sess)
}

NewCWLogsClient is a CloudWatch logs client factory.

Stubbable by tests.

Functions

func NewInstanceSettings

func NewInstanceSettings(httpClientProvider httpclient.Provider) datasource.InstanceFactoryFunc

Types

type AWSError

type AWSError struct {
	Code    string
	Message string
	Payload map[string]string
}

func (*AWSError) Error

func (e *AWSError) Error() string

type ByTime

type ByTime data.Frame

ByTime implements sort.Interface for data.Frame based on the frame's time field

func (ByTime) Len

func (a ByTime) Len() int

func (ByTime) Less

func (a ByTime) Less(i, j int) bool

func (ByTime) Swap

func (a ByTime) Swap(i, j int)

type CloudWatchService

type CloudWatchService struct {
	Cfg      *setting.Cfg
	Executor *cloudWatchExecutor
}

func ProvideService

func ProvideService(cfg *setting.Cfg, httpClientProvider httpclient.Provider) *CloudWatchService

type SessionCache

type SessionCache interface {
	GetSession(c awsds.SessionConfig) (*session.Session, error)
}

Jump to

Keyboard shortcuts

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