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)
Click to show internal directories.
Click to hide internal directories.