logalerting

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AlertManagerAddress []string      `yaml:"alertManagerAddress,omitempty" validate:"required"`
	BufferSize          int           `yaml:"bufferSize,omitempty" default:"100"`
	BatchTimeout        time.Duration `yaml:"batchTimeout,omitempty" default:"10s"`
	BatchSize           int           `yaml:"batchSize,omitempty" default:"10"`
}

type Listener

type Listener struct {
	SendBatch []*eventbus.Event
	// contains filtered or unexported fields
}

func (*Listener) Config

func (l *Listener) Config() interface{}

func (*Listener) Init

func (l *Listener) Init(context api.Context) error

func (*Listener) Name

func (l *Listener) Name() string

func (*Listener) Start

func (l *Listener) Start() error

func (*Listener) Stop

func (l *Listener) Stop()

func (*Listener) Subscribe

func (l *Listener) Subscribe(event eventbus.Event)

Jump to

Keyboard shortcuts

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