feishu

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "feishu"

Type should match the package name

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	Cfg struct {
		// From contains the e-mail address notifications are sent from
		WebHook string `json:"webhook"`

		// Alert Base Times
		BaseTimes int `json:"basetimes"` // 连续出错次数

		// Slient Time
		SlientTime string `json:"slienttime"` // 静默时间

		// Title
		Title string `json:"title"` // 消息的 title
	}
	// contains filtered or unexported fields
}

Notifier consist of all the sub components required to send E-mail notifications

func New

func New(config json.RawMessage) (Notifier, error)

New creates a new Notifier instance based on json config

func (Notifier) Notify

func (m Notifier) Notify(results []types.Result) error

Notify implements notifier interface

func (Notifier) Type

func (Notifier) Type() string

Type returns the notifier package name

Jump to

Keyboard shortcuts

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