forwarders

package
v0.0.0-...-e8cbd8a Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Forwards = prometheus_client.NewSummary(
		prometheus_client.SummaryOpts{
			Name: "forward_operation_duration_microseconds",
			Help: "Total duration and counts of forwarder methods",
		})
	ForwardErrors = prometheus_client.NewCounter(
		prometheus_client.CounterOpts{
			Name: "forward_operation_errors",
			Help: "Errors encountered while forwarding",
		})
)

Functions

This section is empty.

Types

type Forwarder

type Forwarder interface {
	Send([]prometheus.Alert)
}

type SimpleForwarder

type SimpleForwarder struct{}

func NewSimpleForwarder

func NewSimpleForwarder() *SimpleForwarder

func (*SimpleForwarder) Send

func (forwarder *SimpleForwarder) Send(alerts []prometheus.Alert)

Jump to

Keyboard shortcuts

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