alertmanager

package
v0.0.0-...-a88e0ec Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAmToAlarmEventRecordModels

func ConvertAmToAlarmEventRecordModels(am *api.AlertmanagerNotification, infrastructureClient infrastructure.Client) []models.AlarmEventRecord

ConvertAmToAlarmEventRecordModels get alarmEventRecords based on the alertmanager notification and AlarmDefinition

func GetAlertName

func GetAlertName(labels map[string]string) string

GetAlertName extract name from alert label

func GetClusterID

func GetClusterID(labels map[string]string) *uuid.UUID

func GetPerceivedSeverity

func GetPerceivedSeverity(labels map[string]string) (api.PerceivedSeverity, string)

GetPerceivedSeverity am's `severity` to oran's PerceivedSeverity

func Setup

func Setup(ctx context.Context) error

Setup updates the alertmanager config secret with the new configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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