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 ¶
TeamMembers returns a pagerduty schedule for the given name or an error.
Click to show internal directories.
Click to hide internal directories.