metrics

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package metrics fetches CloudWatch metrics for a function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedMetrics added in v0.6.0

type AggregatedMetrics struct {
	Duration    int
	Errors      int
	Invocations int
	Throttles   int
}

AggregatedMetrics represents aggregated metrics.

type Config added in v0.6.0

type Config struct {
	MetricNames []string
	Service     cloudwatchiface.CloudWatchAPI
	StartDate   time.Time
	EndDate     time.Time
}

Config is used to configure Metrics.

type Metric

type Metric struct {
	Config
	FunctionName string
}

Metric collects metrics for single function.

func (*Metric) Collect added in v0.6.0

func (m *Metric) Collect() (a AggregatedMetrics)

Collect and aggregate metrics for on function.

type Metrics added in v0.6.0

type Metrics struct {
	Config
	FunctionNames []string
}

Metrics collects CloudWatch metrics for multiple functions

func (*Metrics) Collect added in v0.6.0

func (m *Metrics) Collect() (a map[string]AggregatedMetrics)

Collect and aggregate metrics for multiple functions.

Jump to

Keyboard shortcuts

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