pagerduty

package
v0.0.0-...-fb28246 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps the pagerduty client.

func NewClient

func NewClient(cfg *config.PagerdutyConfig) (*Client, error)

NewClient returns a new PagerdutyClient or an error.

func (*Client) ListOnCallUsers

func (c *Client) ListOnCallUsers(scheduleIDs []string, since, until offsetInHours, layerSyncStyle config.SyncStyle) ([]pd.User, []pd.APIObject, error)

ListOnCallUsers returns the OnCall users being on shift now

func (*Client) TeamMembers

func (c *Client) TeamMembers(teamIDs []string) ([]pd.User, []pd.APIObject, error)

TeamMembers returns a pagerduty schedule for the given name or an error.

func (*Client) WithoutPhone

func (c *Client) WithoutPhone(users []pd.User) []pd.User

WithoutPhone returns all users without phone number set

Jump to

Keyboard shortcuts

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