Versions in this module Expand all Collapse all v0 v0.16.0 Apr 4, 2026 Changes in this version type PrometheusSLOGenerator + func (p PrometheusSLOGenerator) WriteResultAsK8sObjects(ctx context.Context, k8sTransformerPluginID string, k8sMeta model.K8sMeta, ...) error v0.15.0 Oct 31, 2025 Changes in this version + type CallerAgent string + const CallerAgentAPI + const CallerAgentCLI + type PrometheusSLOGenerator struct + func NewPrometheusSLOGenerator(config PrometheusSLOGeneratorConfig) (*PrometheusSLOGenerator, error) + func (p PrometheusSLOGenerator) GenerateFromK8sV1(ctx context.Context, spec kubernetesv1.PrometheusServiceLevel) (*model.PromSLOGroupResult, error) + func (p PrometheusSLOGenerator) GenerateFromOpenSLOV1Alpha(ctx context.Context, spec openslov1alpha.SLO) (*model.PromSLOGroupResult, error) + func (p PrometheusSLOGenerator) GenerateFromRaw(ctx context.Context, data []byte) (*model.PromSLOGroupResult, error) + func (p PrometheusSLOGenerator) GenerateFromSlothV1(ctx context.Context, spec prometheusv1.Spec) (*model.PromSLOGroupResult, error) + func (p PrometheusSLOGenerator) WriteResultAsK8sPrometheusOperator(ctx context.Context, k8sMeta model.K8sMeta, slo model.PromSLOGroupResult, ...) error + func (p PrometheusSLOGenerator) WriteResultAsPrometheusStd(ctx context.Context, slo model.PromSLOGroupResult, w io.Writer) error + type PrometheusSLOGeneratorConfig struct + CMDSLOPlugins []model.PromSLOPluginMetadata + CallerAgent CallerAgent + DefaultSLOPeriod time.Duration + DisableDefaultPlugins bool + ExtraLabels map[string]string + Logger log.Logger + PluginsFS []fs.FS + StrictPlugins bool + WindowsFS fs.FS