webex

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: BSD-3-Clause Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWebexNotifier

func InitWebexNotifier(configBody []byte) (notifiers.Notifier, error)

InitWebexNotifier initializes the webex notifier

Types

type Notifier

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

Notifier is the notifier for webex

func (*Notifier) Close

func (w *Notifier) Close() error

Close closes the notifier

func (*Notifier) Configure

func (w *Notifier) Configure(webexConfig NotifierConfig) error

Configure configures the notifier

func (*Notifier) GetName

func (w *Notifier) GetName() notifiers.NotifierName

GetName returns the name of the notifier

func (*Notifier) Notify

func (w *Notifier) Notify(nBody *monitors.NotificationBody, params ...interface{}) error

Notify sends the message to webex params[0] is the message params[1] is the room id

type NotifierConfig

type NotifierConfig struct {
	Enabled     bool   `json:"enabled"`
	AccessToken string `json:"accessToken"`
}

NotifierConfig is the config for the Webex notifier

func (*NotifierConfig) Validate

func (w *NotifierConfig) Validate() error

Validate validates the config

type SendConfig

type SendConfig struct {
	RoomID string `json:"roomId"`
}

SendConfig is the config for the Webex notifier

Jump to

Keyboard shortcuts

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