pagerduty

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceSearchURL

func GetServiceSearchURL(serviceName voyager.ServiceName) (string, error)

func KeyToCloudWatchURL

func KeyToCloudWatchURL(key string) (string, error)

KeyToCloudWatchURL creates a URL for sending CloudWatch events to PagerDuty

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, client pagerdutyRestClient, uuidGenerator uuid.Generator) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(serviceName voyager.ServiceName) error

func (*Client) FindOrCreate

func (c *Client) FindOrCreate(serviceName voyager.ServiceName, user auth.User, email string) (creator_v1.PagerDutyMetadata, error)

type ClientConfig

type ClientConfig struct {
	AuthToken string
}

func NewPagerDutyClientConfigFromEnv

func NewPagerDutyClientConfigFromEnv() (ClientConfig, error)

type EscalationPolicy

type EscalationPolicy string

type IntegrationName

type IntegrationName string
const (
	Generic    IntegrationName = "generic"
	CloudWatch IntegrationName = "cloudwatch"
	// Deprecated: the "pingdom" integration is deprecated, but kept for backward compatibility with Micros
	Pingdom IntegrationName = "pingdom"
)

type ServiceName

type ServiceName string

Jump to

Keyboard shortcuts

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