opsgenie

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *config.Config

Config is a pointer to the global config object

Functions

This section is empty.

Types

type OnCallData

type OnCallData struct {
	Recipients []string `json:"onCallRecipients"`
	Parent     Parent   `json:"_parent"`
}

type OnCallResponse

type OnCallResponse struct {
	OnCallData []OnCallData `json:"data"`
	Message    string       `json:"message"`
	RequestID  string       `json:"requestId"`
	Took       float32      `json:"took"`
}

func Fetch

func Fetch() (*OnCallResponse, error)

type Parent

type Parent struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Enabled bool   `json:"enabled"`
}

type Widget

type Widget struct {
	wtf.TextWidget
}

func NewWidget

func NewWidget() *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