cloudwatch

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudWatch

type CloudWatch struct {
	// contains filtered or unexported fields
}

CloudWatch has CloudWatch client.

func New

func New(conf config.Config) (*CloudWatch, error)

New returns initialized *CloudWatch.

func (*CloudWatch) DoGetMetricStatistics

func (svc *CloudWatch) DoGetMetricStatistics(in *SDK.GetMetricStatisticsInput) (*SDK.GetMetricStatisticsOutput, error)

DoGetMetricStatistics executes GetMetricStatistics operation.

func (*CloudWatch) Errorf

func (svc *CloudWatch) Errorf(format string, v ...interface{})

Errorf logging error information.

func (*CloudWatch) GetMetricStatistics

func (svc *CloudWatch) GetMetricStatistics(in MetricStatisticsInput) (*MetricStatisticsResponse, error)

GetMetricStatistics executes GetMetricStatistics operation.

func (*CloudWatch) Infof

func (svc *CloudWatch) Infof(format string, v ...interface{})

Infof logging information.

func (*CloudWatch) SetLogger

func (svc *CloudWatch) SetLogger(logger log.Logger)

SetLogger sets logger.

type Datapoint

type Datapoint struct {
	Average            float64
	ExtendedStatistics map[string]float64
	Maximum            float64
	Minimum            float64
	SampleCount        float64
	Sum                float64
	Unit               string
	Timestamp          time.Time
}

func NewDatapoint

func NewDatapoint(d *SDK.Datapoint) Datapoint

type Dimension

type Dimension struct {
	Name  string
	Value string
}

type MetricStatisticsInput

type MetricStatisticsInput struct {
	StartTime          time.Time
	EndTime            time.Time
	Period             int64
	MetricName         string
	Namespace          string
	Unit               string
	Statistics         []string
	ExtendedStatistics []string

	Dimensions []Dimension
	// Key: Dimension.Name, Value: Dimension.Value.
	// If you use same key and differenct values, then use Dimensions.
	DimensionsMap map[string]string
}

func (MetricStatisticsInput) ToInput

type MetricStatisticsResponse

type MetricStatisticsResponse struct {
	Datapoints []Datapoint
	Label      string
}

Jump to

Keyboard shortcuts

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