metrics

package
v0.49.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

View Source
var ProviderFactories = map[ProviderType]ProviderFactory{
	AWSProvider:        func() (Provider, error) { return aws.NewAwsCloudWatchProvider() },
	GCPProvider:        func() (Provider, error) { return gcp.NewGCP() },
	DatadogProvider:    func() (Provider, error) { return datadog.NewDatadog() },
	PrometheusProvider: func() (Provider, error) { return prometheus.NewPrometheus() },
	GithubProvider:     func() (Provider, error) { return github.NewGithubProvider() },
	DynatraceProvider:  func() (Provider, error) { return dynatrace.New() },
	CustomProvider:     func() (Provider, error) { return custom.New() },
}

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// CanHandleSelector indicates whether the provider can handle the objective from its indicator selectors
	CanHandleSelector(entities.Selector) bool
	// ComputeObjective fetches or compute the objective indicator from the external provider
	ComputeObjective(*entities.Objective, time.Time, time.Time) (*entities.Indicator, error)
}

type ProviderFactory

type ProviderFactory func() (Provider, error)

type ProviderType added in v0.18.0

type ProviderType string
const (
	AWSProvider        ProviderType = "aws"
	GCPProvider        ProviderType = "gcp"
	DatadogProvider    ProviderType = "datadog"
	PrometheusProvider ProviderType = "prometheus"
	GithubProvider     ProviderType = "github"
	DynatraceProvider  ProviderType = "dynatrace"
	CustomProvider     ProviderType = "custom"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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