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 (*ApiClient) CreateIncident ¶
func (c *ApiClient) CreateIncident(Options *pagerduty.CreateIncidentOptions) error
CreateIncident create new PagerDuty incident
func (*ApiClient) Get ¶
func (c *ApiClient) Get() *pagerduty.ListServiceResponse
Get all available serices from PagerDuty
func (*ApiClient) IncidentAlerts ¶
func (c *ApiClient) IncidentAlerts(id string) *pagerduty.ListAlertsResponse
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 Manager ¶
type Manager interface {
ManageEvent() (*pagerduty.V2EventResponse, error)
}
type ServiceClient ¶
type ServiceClient interface {
Get() *pagerduty.ListServiceResponse
}
Click to show internal directories.
Click to hide internal directories.