Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetIncidentsForTeam(teamID string, since time.Time) ([]Incident, error) GetOncallShiftsForUser(userID string, since time.Time) ([]OncallShift, error) WithBaseURL(url string) Client }
Client is the interface to interact with the PD API
type Incident ¶
type Incident struct { Number int Description string CreatedAt time.Time ResolvedAt time.Time BaseURL string }
Incident represents a PD incident
func ParseIncidentsCSV ¶
ParseIncidentsCSV returns incidents parsed from a given path to a csv export
Click to show internal directories.
Click to hide internal directories.