alertwebhook

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package alertwebhook implements an Alertmanager-compatible webhook receiver. It receives alert payloads, deduplicates them with an LRU cache, resolves matching hosts from honey's inventory, runs investigation commands via SSH, and notifies configured channels with the findings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() config.AlertWebhookConfig

DefaultConfig returns an AlertWebhookConfig with sensible defaults.

Types

type Server

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

Server is the Alertmanager webhook receiver.

func New

func New(cfg config.AlertWebhookConfig, fileCfg *config.File, cfgPath string) (*Server, error)

New creates a new webhook server from the honey config.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context) error

ListenAndServe starts the HTTP server and blocks until ctx is cancelled.

Jump to

Keyboard shortcuts

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