metrics

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2016 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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