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 CloudWatchService ¶
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)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.