pagerduty

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func New

func New(key string, org string) (*Api, error)

Pagerduty API doesn't provide a sane way of checking for auth so we just get the schedules at setup time

func (*Api) Schedules

func (a *Api) Schedules() (Schedules, error)

Fetch the main schedule list then the details about specific schedules

func (*Api) Users

func (a *Api) Users() (Users, error)

type CallPeriod

type CallPeriod struct {
	Start time.Time
	User  string
}

type Schedule

type Schedule struct {
	Id            string
	Name          string
	Timezone      string `json:"time_zone"`
	CurrentPeriod *CallPeriod
	NextPeriod    *CallPeriod
}

type Schedules

type Schedules []Schedule

type User

type User struct {
	Id    string
	Name  string
	Email string
}

type Users

type Users []User

Jump to

Keyboard shortcuts

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