script

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2016 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptNotification

type ScriptNotification struct {
	Events    []notifier.EventData `json:"events"`
	Trigger   notifier.TriggerData `json:"trigger"`
	Contact   notifier.ContactData `json:"contact"`
	Throttled bool                 `json:"throttled"`
	Timestamp int64                `json:"timestamp"`
}

type Sender

type Sender struct {
	Exec string
}

Sender implements moira sender interface via slack

func (*Sender) Init

func (sender *Sender) Init(senderSettings map[string]string, logger *logging.Logger) error

Init read yaml config

func (*Sender) SendEvents

func (sender *Sender) SendEvents(events []notifier.EventData, contact notifier.ContactData, trigger notifier.TriggerData, throttled bool) error

SendEvents implements Sender interface Send

Jump to

Keyboard shortcuts

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