cloudwatch

package
v0.0.0-kmdagger3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: AGPL-3.0 Imports: 47 Imported by: 106

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 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 {
	Cfg      *setting.Cfg
	Executor *cloudWatchExecutor
}

func ProvideService

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

type DataQueryJson

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

type DataSource

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

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