pagerduty

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertProvider

type AlertProvider struct {
	IntegrationKey string `yaml:"integration-key"`
}

AlertProvider is the configuration necessary for sending an alert using PagerDuty

func (*AlertProvider) IsValid

func (provider *AlertProvider) IsValid() bool

IsValid returns whether the provider's configuration is valid

func (*AlertProvider) ToCustomAlertProvider

func (provider *AlertProvider) ToCustomAlertProvider(service *core.Service, alert *core.Alert, _ *core.Result, resolved bool) *custom.AlertProvider

ToCustomAlertProvider converts the provider into a custom.AlertProvider

relevant: https://developer.pagerduty.com/docs/events-api-v2/trigger-events/

Jump to

Keyboard shortcuts

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