alerting

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package alerting implements alerting functionality in Cloudprober.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusHTML

func StatusHTML() (string, error)

Types

type AlertHandler

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

AlertHandler is responsible for handling alerts. It keeps track of the health of targets and notifies the user if there is a failure.

func NewAlertHandler

func NewAlertHandler(conf *configpb.AlertConf, probeName string, l *logger.Logger) (*AlertHandler, error)

NewAlertHandler creates a new AlertHandler from the given config. If the config is invalid, an error is returned.

func (*AlertHandler) Record

func (ah *AlertHandler) Record(ep endpoint.Endpoint, em *metrics.EventMetrics)

Directories

Path Synopsis
Package alertinfo implements AlertInfo struct for sharing alert data across modules.
Package alertinfo implements AlertInfo struct for sharing alert data across modules.
Package notifier implements notifications related functionality.
Package notifier implements notifications related functionality.
opsgenie
Package opsgenie implements Opsgenie notifications for Cloudprober alert events.
Package opsgenie implements Opsgenie notifications for Cloudprober alert events.
pagerduty
Package pagerduty implements pagerduty notifications for Cloudprober alert events.
Package pagerduty implements pagerduty notifications for Cloudprober alert events.
slack
Package slack implements slack notifications for Cloudprober alert events.
Package slack implements slack notifications for Cloudprober alert events.

Jump to

Keyboard shortcuts

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