notify

package
v0.0.0-...-8ca999e Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRenotifyInterval = 3 * time.Hour
View Source
const NotifyInterval = 100 * time.Millisecond

NotifyInterval is the interval at which we should check for alerts to notify. This is pretty arbitrary - increasing it will increase the batching we can do, but it also represents the minimum group inteval we can use. Any group intervals less than this will be treated as this because this is how often we'll check for groups to notify.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyService

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

NotifyService is a background service that scans the db for alerts to send notifications for.

func NewNotifyService

func NewNotifyService(conf config.Config, bus services.Bus) *NotifyService

func (*NotifyService) Name

func (n *NotifyService) Name() string

func (*NotifyService) Run

func (n *NotifyService) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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