Documentation
¶
Index ¶
- type ApiClient
- func (c *ApiClient) CreateIncident(Options *pagerduty.CreateIncidentOptions) error
- func (c *ApiClient) Get() *pagerduty.ListServiceResponse
- func (c *ApiClient) IncidentAlerts(id string) *pagerduty.ListAlertsResponse
- func (c *ApiClient) ListIncidents(Options pagerduty.ListIncidentsOptions) *pagerduty.ListIncidentsResponse
- type EventClient
- type IncidentClient
- type Manager
- type ServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
func NewApiClient(client *pagerduty.Client) *ApiClient
func (*ApiClient) CreateIncident ¶
CreateIncident create new PagerDuty incident
func (*ApiClient) Get ¶
func (c *ApiClient) Get() *pagerduty.ListServiceResponse
Get all available serices from PagerDuty
func (*ApiClient) IncidentAlerts ¶
IncidentAlerts List of the PagerDuty alerts for specific incient
func (*ApiClient) ListIncidents ¶
func (c *ApiClient) ListIncidents(Options pagerduty.ListIncidentsOptions) *pagerduty.ListIncidentsResponse
ListIncidents list of the PagerDuty incidents for specific service
type EventClient ¶
type EventClient struct {
// contains filtered or unexported fields
}
func NewEventClient ¶
func NewEventClient(client *pagerduty.V2Event) *EventClient
func (*EventClient) ManageEvent ¶
func (c *EventClient) ManageEvent() (*pagerduty.V2EventResponse, error)
ManageEvent create or resolve event using PagerDuty API
type IncidentClient ¶
type IncidentClient interface { ListIncidents(Options pagerduty.ListIncidentsOptions) *pagerduty.ListIncidentsResponse IncidentAlerts(id string) *pagerduty.ListAlertsResponse CreateIncident(Options *pagerduty.CreateIncidentOptions) error }
IncidentClient interface for managing PagerDuty client library
type ServiceClient ¶
type ServiceClient interface {
Get() *pagerduty.ListServiceResponse
}
Click to show internal directories.
Click to hide internal directories.