cloudwatch

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

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.

View Source
var NewEC2Client = func(provider client.ConfigProvider) models.EC2APIProvider {
	return ec2.New(provider)
}

NewEC2Client is a client factory.

Stubbable by tests.

View Source
var NewLogsAPI = func(sess *session.Session) models.CloudWatchLogsAPIProvider {
	return cloudwatchlogs.New(sess)
}

NewLogsAPI is a CloudWatch logs api factory.

Stubbable by tests.

View Source
var NewMetricsAPI = func(sess *session.Session) models.CloudWatchMetricsAPIProvider {
	return cloudwatch.New(sess)
}

NewMetricsAPI is a CloudWatch metrics api factory.

Stubbable by tests.

View Source
var NewOAMAPI = func(sess *session.Session) models.OAMAPIProvider {
	return oam.New(sess)
}

NewOAMAPI is a CloudWatch OAM api 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 {
	Executor *cloudWatchExecutor
}

func ProvideService

func ProvideService(httpClientProvider *httpclient.Provider) *CloudWatchService

type DataQueryJson

type DataQueryJson struct {
	dataquery.CloudWatchAnnotationQuery
	Type string `json:"type,omitempty"`
}

type DataSource

type DataSource struct {
	Settings   models.CloudWatchSettings
	HTTPClient *http.Client

	ProxyOpts *proxy.Options
	// contains filtered or unexported fields
}

type SessionCache

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

Directories

Path Synopsis
kinds

Jump to

Keyboard shortcuts

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