sinks

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidEndpoint  = errors.New("invalid Alertmanager config: endpoint scheme and host are required")
	EndpointRequired = errors.New("invalid Alertmanager config: endpoint required")
)
View Source
var SinkEmissionFailed = errors.New("sink emission failed")

Functions

This section is empty.

Types

type Alert

type Alert struct {
	Annotations map[string]string `json:"annotations"`
	Labels      map[string]string `json:"labels"`
}

type AlertmanagerSink

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

func (*AlertmanagerSink) Configure

func (s *AlertmanagerSink) Configure(c Client, config map[string][]byte) error

func (*AlertmanagerSink) Emit

type Client

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

func NewClient

func NewClient(timeout time.Duration) *Client

type Sink

type Sink interface {
	Configure(c Client, config map[string][]byte) error
	Emit(result v1alpha1.ValidationResult) error
}

func NewSink

func NewSink(sinkType types.SinkType, log logr.Logger) Sink

type SlackSink

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

func (*SlackSink) Configure

func (s *SlackSink) Configure(c Client, config map[string][]byte) error

func (*SlackSink) Emit

Jump to

Keyboard shortcuts

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