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 ¶
Click to show internal directories.
Click to hide internal directories.