api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialisePagerDutyAPIClient

func InitialisePagerDutyAPIClient(authToken string)

Types

type PagerDutyClient

type PagerDutyClient struct {
	// contains filtered or unexported fields
}
var Client *PagerDutyClient

func (*PagerDutyClient) GetSchedule

func (p *PagerDutyClient) GetSchedule(scheduleID, startDate, endDate string) (*pagerduty.Schedule, error)

func (*PagerDutyClient) ListSchedules

func (p *PagerDutyClient) ListSchedules() ([]pagerduty.Schedule, error)

func (*PagerDutyClient) ListServices

func (p *PagerDutyClient) ListServices(teamID string) ([]pagerduty.Service, error)

func (*PagerDutyClient) ListTeams

func (p *PagerDutyClient) ListTeams() ([]pagerduty.Team, error)

func (*PagerDutyClient) ListUsers

func (p *PagerDutyClient) ListUsers() ([]pagerduty.User, error)

type ScheduleInfo

type ScheduleInfo struct {
	ID            string
	Name          string
	Location      *time.Location
	Start         time.Time
	End           time.Time
	FinalSchedule pagerduty.ScheduleLayer
}

type ScheduleUserRotationData

type ScheduleUserRotationData map[string]*UserRotaInfo

type UserRotaInfo

type UserRotaInfo struct {
	ID      string
	Name    string
	Periods []*UserRotaPeriod
}

type UserRotaPeriod

type UserRotaPeriod struct {
	Start time.Time
	End   time.Time
}

Jump to

Keyboard shortcuts

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