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