metrics

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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)

	GetLatencyAboveThresholdPercentage(resourceID string, from, to time.Time, threshold int) (float64, error)
	GetAvailabilityPercentage(resourceID string, from, to time.Time) (float64, error)

	Close() error // providers must explicitely be closed once not needed anymore
}

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