pagerduty

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIncidents

func GetIncidents(apiKey string) ([]pagerduty.Incident, error)

GetIncidents returns a list of people currently on call

func GetOnCalls

func GetOnCalls(apiKey string, scheduleIDs []string) ([]pagerduty.OnCall, error)

GetOnCalls returns a list of people currently on call

Types

type ByEscalationLevel

type ByEscalationLevel []pagerduty.OnCall

func (ByEscalationLevel) Len

func (s ByEscalationLevel) Len() int

func (ByEscalationLevel) Less

func (s ByEscalationLevel) Less(i, j int) bool

func (ByEscalationLevel) Swap

func (s ByEscalationLevel) Swap(i, j int)

type Settings

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

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	wtf.TextWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(app *tview.Application, settings *Settings) *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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