Documentation ¶
Index ¶
- func InitialisePagerDutyAPIClient(authToken string)
- type PagerDutyClient
- func (p *PagerDutyClient) GetSchedule(scheduleID, startDate, endDate string) (*pagerduty.Schedule, error)
- func (p *PagerDutyClient) ListSchedules() ([]pagerduty.Schedule, error)
- func (p *PagerDutyClient) ListServices(teamID string) ([]pagerduty.Service, error)
- func (p *PagerDutyClient) ListTeams() ([]pagerduty.Team, error)
- func (p *PagerDutyClient) ListUsers() ([]pagerduty.User, error)
- type ScheduleInfo
- type ScheduleUserRotationData
- type UserRotaInfo
- type UserRotaPeriod
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 ScheduleUserRotationData ¶
type ScheduleUserRotationData map[string]*UserRotaInfo
type UserRotaInfo ¶
type UserRotaInfo struct { ID string Name string Periods []*UserRotaPeriod }
Click to show internal directories.
Click to hide internal directories.