alert

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExecution

func GetExecution(os model.OpenStack, execID string) (*executions.Execution, error)

func SendHTTP

func SendHTTP(cli *http.Client, a *model.ActionHTTP) error

SendHTTP constructs and sends a HTTP request.

func SendMail

func SendMail(a *model.ActionMail) error

Types

type Alert

type Alert struct {
	State model.Alert
	// contains filtered or unexported fields
}

func (*Alert) Fire

func (a *Alert) Fire(firedAt time.Time)

func (*Alert) IsActive

func (a *Alert) IsActive() bool

func (*Alert) IsCoolingDown

func (a *Alert) IsCoolingDown(cooldown time.Duration) bool

func (*Alert) Reset

func (a *Alert) Reset()

func (*Alert) ShouldFire

func (a *Alert) ShouldFire(duration time.Duration) bool

func (*Alert) Start

func (a *Alert) Start()

Jump to

Keyboard shortcuts

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