alert

package
v0.0.0-...-d7993bf Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*subscriber.Client
	*mail.Config
	// contains filtered or unexported fields
}

Client holds all the resources required to run alerting

func Setup

func Setup(db *mysql.DB, mc *mail.Config) (*Client, error)

Setup sets up the client required to run alerting workflow

func (*Client) Alert

func (c *Client) Alert(errorPattern string, s *config.SelectedConfig, db *mysql.DB) (bool, error)

Alert checks alert condition and alerts table and send alert mail conditionally

func (*Client) RunAlerting

func (c *Client) RunAlerting()

RunAlerting start the alerting workflow

Jump to

Keyboard shortcuts

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