metrics

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides higher level CloudWatch metrics operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

Metrics helper.

func New

func New() *Metrics

New metrics.

func (*Metrics) Dimension

func (m *Metrics) Dimension(name, value string) *Metrics

Dimension adds a dimension.

func (*Metrics) Metric

func (m *Metrics) Metric(name string) *Metrics

Metric sets the metric name.

func (*Metrics) Namespace

func (m *Metrics) Namespace(name string) *Metrics

Namespace sets the namespace.

func (*Metrics) Params

Params returns the API input.

func (*Metrics) Period

func (m *Metrics) Period(seconds int) *Metrics

Period sets the period in seconds.

func (*Metrics) Stat

func (m *Metrics) Stat(name string) *Metrics

Stat adds the stat.

func (*Metrics) Stats

func (m *Metrics) Stats(names []string) *Metrics

Stats sets the stats.

func (*Metrics) TimeRange

func (m *Metrics) TimeRange(start, end time.Time) *Metrics

TimeRange sets the start and time times.

Jump to

Keyboard shortcuts

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