pagerduty

package
v0.0.0-...-9c5270f Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIncidents

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

GetIncidents returns a list of unresolved incidents

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 {
	*cfg.Common
	// contains filtered or unexported fields
}

Settings defines the configuration properties for this module

func NewSettingsFromYAML

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

NewSettingsFromYAML creates a new settings instance from a YAML config block

type Widget

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

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, settings *Settings) *Widget

NewWidget creates and returns an instance of PagerDuty 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