alertmanager

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package alertmanager is the Alertmanager/VMAlert webhook source adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct{}

Source is the Alertmanager/VMAlert webhook source adapter. It implements source.WebhookSource by parsing the Alertmanager webhook payload into investigation requests (firing alerts) and resolutions (resolved alerts).

func (Source) Decode

func (Source) Decode(body []byte, _ http.Header) (source.DecodeResult, error)

Decode parses an Alertmanager webhook body into investigation requests (firing alerts) and resolutions (resolved alerts). "environment" is taken from the label of the same name, falling back to "env". Resolved alerts carry the receipt time.

Jump to

Keyboard shortcuts

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