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 ¶
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
Click to show internal directories.
Click to hide internal directories.