providers

package
v0.0.0-...-8987cd1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

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(providerType string, 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(providerType string, log logr.Logger, k8sClient client.Client) (KeptnSLIProvider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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