notify

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package notify contains the notify implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log         []log.NotifyConfig         `yaml:"log,omitempty" json:"log,omitempty" jsonschema:"title=Log Notification,description=Log Notification Configuration"`
	Email       []email.NotifyConfig       `` /* 128-byte string literal not displayed */
	Slack       []slack.NotifyConfig       `` /* 128-byte string literal not displayed */
	Discord     []discord.NotifyConfig     `` /* 136-byte string literal not displayed */
	Telegram    []telegram.NotifyConfig    `` /* 140-byte string literal not displayed */
	AwsSNS      []aws.NotifyConfig         `` /* 136-byte string literal not displayed */
	Wecom       []wecom.NotifyConfig       `` /* 128-byte string literal not displayed */
	Dingtalk    []dingtalk.NotifyConfig    `` /* 140-byte string literal not displayed */
	Lark        []lark.NotifyConfig        `yaml:"lark,omitempty" json:"lark,omitempty" jsonschema:"title=Lark Notification,description=Lark Notification Configuration"`
	Sms         []sms.NotifyConfig         `yaml:"sms,omitempty" json:"sms,omitempty" jsonschema:"title=SMS Notification,description=SMS Notification Configuration"`
	Teams       []teams.NotifyConfig       `` /* 128-byte string literal not displayed */
	Shell       []shell.NotifyConfig       `` /* 128-byte string literal not displayed */
	RingCentral []ringcentral.NotifyConfig `` /* 152-byte string literal not displayed */
}

Config is the notify configuration

type Notify

type Notify interface {
	Kind() string
	Name() string
	Channels() []string
	Config(global.NotifySettings) error
	Notify(probe.Result)
	NotifyStat([]probe.Prober)

	DryNotify(probe.Result)
	DryNotifyStat([]probe.Prober)
}

Notify is the configuration of the Notify

Directories

Path Synopsis
Package aws is the AWS notification package
Package aws is the AWS notification package
Package base is the base implementation of the notification.
Package base is the base implementation of the notification.
Package dingtalk is the notification package for dingtalk.
Package dingtalk is the notification package for dingtalk.
Package discord is the notification for Discord
Package discord is the notification for Discord
Package email is the email notification package
Package email is the email notification package
Package lark is the lark notification package.
Package lark is the lark notification package.
Package log is the log package for easeprobe.
Package log is the log package for easeprobe.
Package ringcentral is the ringcentral notification package.
Package ringcentral is the ringcentral notification package.
Package shell is the shell probe package
Package shell is the shell probe package
Package slack is the slack notification package.
Package slack is the slack notification package.
sms
Package sms contains the sms implementation.
Package sms contains the sms implementation.
conf
Package conf is the configuration package for SMS notification
Package conf is the configuration package for SMS notification
nexmo
Package nexmo is the nexmo sms notification package
Package nexmo is the nexmo sms notification package
twilio
Package twilio is the twilio sms notification
Package twilio is the twilio sms notification
yunpian
Package yunpian is the yunpian sms notification.
Package yunpian is the yunpian sms notification.
Package teams is the teams notification
Package teams is the teams notification
Package telegram is the telegram notification package.
Package telegram is the telegram notification package.
Package wecom is the wecom notification package.
Package wecom is the wecom notification package.

Jump to

Keyboard shortcuts

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