alerting

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEndsAtDurationForSeverityInfo     = time.Minute * 5
	DefaultEndsAtDurationForSeverityCritical = time.Minute * 60
)

Variables

This section is empty.

Functions

func AlertBeaconClientSyncComplete

func AlertBeaconClientSyncComplete(cfg *config.RocketPoolConfig) error

func AlertExecutionClientSyncComplete

func AlertExecutionClientSyncComplete(cfg *config.RocketPoolConfig) error

func AlertFeeRecipientChanged

func AlertFeeRecipientChanged(cfg *config.RocketPoolConfig, newFeeRecipient common.Address, succeeded bool) error

Sends an alert when the node automatically changed a node's fee recipient or attempted to (success or failure). If alerting/metrics are disabled, this function does nothing.

func AlertMinipoolBalanceDistributed

func AlertMinipoolBalanceDistributed(cfg *config.RocketPoolConfig, minipoolAddress common.Address, succeeded bool) error

Sends an alert when the node automatically distributes a minipool's balance (success or failure). If alerting/metrics are disabled, this function does nothing.

func AlertMinipoolBondReduced

func AlertMinipoolBondReduced(cfg *config.RocketPoolConfig, minipoolAddress common.Address, succeeded bool) error

Sends an alert when the node automatically reduced a minipool's bond or attempted to (success or failure). If alerting/metrics are disabled, this function does nothing.

func AlertMinipoolPromoted

func AlertMinipoolPromoted(cfg *config.RocketPoolConfig, minipoolAddress common.Address, succeeded bool) error

Sends an alert when the node automatically prompted a minipool or attempted to (success or failure). If alerting/metrics are disabled, this function does nothing.

func AlertMinipoolStaked

func AlertMinipoolStaked(cfg *config.RocketPoolConfig, minipoolAddress common.Address, succeeded bool) error

Sends an alert when the node automatically staked a minipool or attempted to (success or failure). If alerting/metrics are disabled, this function does nothing.

func FetchAlerts

func FetchAlerts(cfg *config.RocketPoolConfig) ([]*models.GettableAlert, error)

fetches the current alerts directly the alertmanager container/application's API. If alerting/metrics are disabled, this function returns an empty array.

Types

type ClientKind

type ClientKind string
const (
	ClientKindExecution ClientKind = "Execution"
	ClientKindBeacon    ClientKind = "Beacon"
)

type Severity

type Severity string
const (
	SeverityInfo     Severity = "info"
	SeverityWarning  Severity = "warning"
	SeverityCritical Severity = "critical"
)

Directories

Path Synopsis
alertmanager

Jump to

Keyboard shortcuts

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