enrichers

package
v0.0.0-...-f75f0dd Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandEnricher

func NewCommandEnricher(alertinfo AlertInfo, config map[string]string) *commandEnricher

func NewGrafanaEnricher

func NewGrafanaEnricher(alertinfo AlertInfo, config map[string]string) *grafanaEnricher

func NewPrometheusEnricher

func NewPrometheusEnricher(alertinfo AlertInfo, config map[string]string) *prometheusEnricher

func NewStaticEnricher

func NewStaticEnricher(alertinfo AlertInfo, config map[string]string) *staticEnricher

func NewYamlEnricher

func NewYamlEnricher(alertinfo AlertInfo, config map[string]string) *yamlEnricher

Types

type AlertInfo

type AlertInfo struct {
	Labels      map[string]string
	Annotations map[string]string
	StartsAt    string
}

type CommandEnricherInterface

type CommandEnricherInterface interface {
	Enrich() (map[string]string, error)
}

type Enricher

type Enricher struct {
	// contains filtered or unexported fields
}

func (*Enricher) StartEnrichmentFlow

func (e *Enricher) StartEnrichmentFlow(alert sharedtools.Alert) []error

type EnricherInterface

type EnricherInterface interface {
	Enrich() (map[string]string, error)
}

type EnrichmentInterface

type EnrichmentInterface interface {
	StartEnrichmentFlow(alert sharedtools.Alert) []error
}

func NewEnrichment

func NewEnrichment(config *config.RunbooksConfig) EnrichmentInterface

Jump to

Keyboard shortcuts

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