metrics

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderFactories = map[string]ProviderFactory{
	"aws": func() (Provider, error) { return aws.NewAwsCloudWatch() },
	"gcp": func() (Provider, error) { return gcp.NewGCP() },
}

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Get99PercentLatencyMetricForResource(resourceID string, from, to time.Time) (float64, error)
	GetErrorPercentageMetricForResource(resourceID string, from, to time.Time) (float64, error)
}

type ProviderFactory

type ProviderFactory func() (Provider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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