slack

package
v0.21.5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Webhook

func Webhook(webhookURL string, opts ...Option) alertmanager.ContactPointOption

Webhook creates a Slack contact point type that sends alerts to a Slack webhook. See https://api.slack.com/messaging/webhooks

Types

type Option

type Option func(contactType *slackType)

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

func Body

func Body(body string) Option

Body defines the body that will be sent in Slack messages.

func Title

func Title(templatedTitle string) Option

Title defines a templated title that will be sent in Slack messages.

Jump to

Keyboard shortcuts

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