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() }, }
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // Note that this function must return an empty // string if resource cannot be determined ResourceFromSelector(entities.Selector) string Close() error // providers must explicitly be closed once not needed anymore // 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 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" )
Click to show internal directories.
Click to hide internal directories.