webhook

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(url string, opts ...Option) alertmanager.ContactPointOption

Call creates a "webhook" contact point type.

Types

type Option

type Option func(contactType *contactType)

Option represents an option that can be used to configure a "webhook" contact point type.

func Credentials

func Credentials(username string, password string) Option

Credentials sets the credentials used to call the webhook.

func MaxAlerts

func MaxAlerts(max int) Option

MaxAlerts sets the maximum number of alerts to include in a single call. Remaining alerts in the same batch will be ignored above this number. 0 means no limit.

func Method

func Method(method string) Option

Method defines the HTTP method used to call the webhook. Should be POST or PUT.

Jump to

Keyboard shortcuts

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