client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

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
}

Jump to

Keyboard shortcuts

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