Documentation ¶
Index ¶
Constants ¶
View Source
const CortexProviderType = "cortex"
View Source
const DataDogProviderType = "datadog"
View Source
const DynatraceDQLProviderType = "dql"
View Source
const DynatraceProviderType = "dynatrace"
View Source
const PrometheusProviderType = "prometheus"
View Source
const ThanosProviderType = "thanos"
Variables ¶
View Source
var SupportedProviders = []string{ DynatraceProviderType, DynatraceDQLProviderType, PrometheusProviderType, DataDogProviderType, CortexProviderType, ThanosProviderType, }
Functions ¶
This section is empty.
Types ¶
type KeptnSLIProvider ¶
type KeptnSLIProvider interface { EvaluateQuery(ctx context.Context, metric metricsapi.KeptnMetric, provider metricsapi.KeptnMetricsProvider) (string, []byte, error) EvaluateQueryForStep(ctx context.Context, metric metricsapi.KeptnMetric, provider metricsapi.KeptnMetricsProvider) ([]string, []byte, error) FetchAnalysisValue(ctx context.Context, query string, spec metricsapi.Analysis, provider *metricsapi.KeptnMetricsProvider) (string, error) }
KeptnSLIProvider is the interface that describes the operations that an SLI provider must implement
func NewProvider ¶
func NewProvider(provider *metricsapi.KeptnMetricsProvider, log logr.Logger, k8sClient client.Client) (KeptnSLIProvider, error)
NewProvider is a factory method that chooses the right implementation of KeptnSLIProvider
type ProviderFactory ¶
type ProviderFactory func(provider *metricsapi.KeptnMetricsProvider, log logr.Logger, k8sClient client.Client) (KeptnSLIProvider, error)
Click to show internal directories.
Click to hide internal directories.