filenotifier

package
v0.0.0-...-8ca999e Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STDOUT_NODE_NAME = "stdout"
	STDERR_NODE_NAME = "stderr"
	FILE_NODE_NAME   = "file"
	DEFAULT_ENCODING = "json"
)

Variables

This section is empty.

Functions

func New

func New(name string, globals *config.Globals, attrs map[string]string) (config.Node, error)

Types

type FileNotifier

type FileNotifier struct {
	// contains filtered or unexported fields
}

FileNotifier represents a node that can output alerts to a Writer.

func (*FileNotifier) Name

func (f *FileNotifier) Name() config.NotifierName

func (*FileNotifier) Notify

func (f *FileNotifier) Notify(ctx context.Context, alerts ...model.Alert) *config.NotificationError

func (*FileNotifier) Type

func (f *FileNotifier) Type() string

Jump to

Keyboard shortcuts

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