service

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostResponse

type PostResponse struct {
	WebhookURL string `json:"webhook_url"`
	Status     int    `json:"status"`
	Message    string `json:"message"`
}

PostResponse is the prometheus msteams service response.

type Service

type Service interface {
	Post(context.Context, webhook.Message) (resp []PostResponse, err error)
}

Service is the Alertmanager to Microsoft Teams webhook service.

func NewLoggingService

func NewLoggingService(logger log.Logger, next Service) Service

NewLoggingService creates a loggingService.

func NewSimpleService

func NewSimpleService(converter card.Converter, client *http.Client, webhookURL string) Service

NewSimpleService creates a simpleService.

Jump to

Keyboard shortcuts

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