Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloudWatchBackend ¶
type CloudWatchBackend struct { Name string Config CloudWatchConfig Connection *cloudwatch.CloudWatch }
CloudWatchBackend is a metrics backend
func NewCloudWatchBackend ¶
func NewCloudWatchBackend(name string, config CloudWatchConfig) (*CloudWatchBackend, error)
NewCloudWatchBackend will create a new CloudWatch Client
func (*CloudWatchBackend) GetValue ¶
func (b *CloudWatchBackend) GetValue(rule structs.Rule) (float64, error)
GetValue gets a value
func (*CloudWatchBackend) Info ¶
func (b *CloudWatchBackend) Info() *structs.Backend
type CloudWatchConfig ¶
CloudWatchConfig is the configuration for a CloudWatch backend
type ConfiguredBackends ¶
ConfiguredBackends struct
func InitializeBackends ¶
func InitializeBackends(backends map[string]structs.Backend) (ConfiguredBackends, error)
InitializeBackends loads valid backends into a map
type GraphiteBackend ¶
type GraphiteBackend struct { Name string Config GraphiteConfig Connection *graphite.Client }
GraphiteBackend is a metrics backend
func NewGraphiteBackend ¶
func NewGraphiteBackend(name string, config GraphiteConfig) (*GraphiteBackend, error)
NewGraphiteBackend will create a new Graphite Client
func (*GraphiteBackend) GetValue ¶
func (b *GraphiteBackend) GetValue(rule structs.Rule) (float64, error)
GetValue gets a value
func (*GraphiteBackend) Info ¶
func (b *GraphiteBackend) Info() *structs.Backend
Click to show internal directories.
Click to hide internal directories.