Documentation
¶
Index ¶
- func ColorLabel(colorStore models.LabelsColorMap, key string, val string)
- func DetectJIRAs(silence *models.Silence) (jiraID, jiraLink string)
- func ParseRules(rules []models.JiraRule)
- func StripAnnotations(keptAnnotations, ignoredAnnotations []string, ...) models.Annotations
- func StripLables(keptLabels, ignoredLabels []string, sourceLabels map[string]string) map[string]string
- func StripReceivers(keptReceivers, ignoredReceivers []string, alertReceiver string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorLabel ¶
func ColorLabel(colorStore models.LabelsColorMap, key string, val string)
ColorLabel update karmaColorMap object with a color object generated from label key and value passed here It's used to generate unique colors for configured labels
func DetectJIRAs ¶
DetectJIRAs will try to find JIRA links in Alertmanager silence objects using regexp rules from configuration that were parsed and populated by ParseRules call
func ParseRules ¶
ParseRules will parse and validate list of JIRA detection rules provided from config, valid rules will be stored for future use in DetectJIRAs() calls
func StripAnnotations ¶ added in v0.48.1
func StripAnnotations(keptAnnotations, ignoredAnnotations []string, sourceAnnotations models.Annotations) models.Annotations
StripAnnotations allows to ignore some annotations when pulling data Alertmanager, it will return true if passed annotation name should be stripped
func StripLables ¶
func StripLables(keptLabels, ignoredLabels []string, sourceLabels map[string]string) map[string]string
StripLables allows filtering out some labels from alerts it takes the list of label keys to ignore and alert label map it will return label map without labels found on the ignore list
func StripReceivers ¶ added in v0.9.0
StripReceivers allows filtering all alerts for specified receiver(s) it will return true if alert uses receiver that should be stripped
Types ¶
This section is empty.