cloudwatch

package
v0.0.0-...-17479f9 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudWatch

type CloudWatch interface {
	GetMetricStatistics(*cloudwatch.GetMetricStatisticsInput) (*cloudwatch.GetMetricStatisticsOutput, error)
}

type CloudWatchClient

type CloudWatchClient struct {
	Client CloudWatch
	Queue  string
}

func NewCloudWatchClient

func NewCloudWatchClient(queue string, region string) *CloudWatchClient

func (*CloudWatchClient) Age

func (s *CloudWatchClient) Age() (float64, error)

func (*CloudWatchClient) GetQueueMetric

func (s *CloudWatchClient) GetQueueMetric(metric string, statistic string) (*cloudwatch.Datapoint, error)

func (*CloudWatchClient) NumDeleted

func (s *CloudWatchClient) NumDeleted() (float64, error)

func (*CloudWatchClient) NumEmpty

func (s *CloudWatchClient) NumEmpty() (float64, error)

func (*CloudWatchClient) NumSent

func (s *CloudWatchClient) NumSent() (float64, error)

Jump to

Keyboard shortcuts

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