alertparser

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertParser

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

AlertParser parses alerts from the Prometheus Alert Manager

func New

func New(configuration Configuration) AlertParser

New creates an AlertParser instance

func (AlertParser) Parse

func (alertParser AlertParser) Parse(alertsData types.AlertsData) (*types.AlertBucket, error)

Parse parses alerts coming from the Prometheus Alert Manager

type Configuration added in v0.2.0

type Configuration struct {
	DefaultOID      string
	OIDLabel        string
	DefaultSeverity string
	Severities      []string
	SeverityLabel   string
}

Configuration stores configuration of an AlertParser

Jump to

Keyboard shortcuts

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