azalertslacknotif

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 10 Imported by: 0

README

caddy-az-alert-slack-notif

Caddy module transforming azure generic alert to specific slack notification

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzAlertSlackNotif

type AzAlertSlackNotif struct {
	Prefix string `json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

of the URI matches a given prefix.

func (AzAlertSlackNotif) CaddyModule

func (AzAlertSlackNotif) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*AzAlertSlackNotif) Provision

func (p *AzAlertSlackNotif) Provision(ctx caddy.Context) error

Provision a Zap logger to AzAlertSlackNotif.

func (AzAlertSlackNotif) ServeHTTP

ServeHTTP implements the caddyhttp.MiddlewareHandler interface.

func (*AzAlertSlackNotif) UnmarshalCaddyfile added in v0.1.3

func (m *AzAlertSlackNotif) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

func (*AzAlertSlackNotif) Validate

func (p *AzAlertSlackNotif) Validate() error

Validate the prefix from the module's configuration, setting the default prefix "." if necessary.

Jump to

Keyboard shortcuts

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