output

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorOutput

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

func NewCollectorOutput

func NewCollectorOutput(wg *sync.WaitGroup, options CollectorOutputOptions, templateOptions render.TextTemplateOptions,
	logger sreCommon.Logger, tracer sreCommon.Tracer, metricer sreCommon.Metricer) *CollectorOutput

func (*CollectorOutput) Send

func (c *CollectorOutput) Send(event *common.Event)

type CollectorOutputOptions

type CollectorOutputOptions struct {
	Address  string
	Template string
}

type KafkaOutput

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

func NewKafkaOutput

func NewKafkaOutput(wg *sync.WaitGroup, options KafkaOutputOptions, templateOptions render.TextTemplateOptions,
	logger sreCommon.Logger, tracer sreCommon.Tracer, metricer sreCommon.Metricer) *KafkaOutput

func (*KafkaOutput) Send

func (k *KafkaOutput) Send(event *common.Event)

type KafkaOutputOptions

type KafkaOutputOptions struct {
	ClientID           string
	Template           string
	Brokers            string
	Topic              string
	FlushFrequency     int
	FlushMaxMessages   int
	NetMaxOpenRequests int
	NetDialTimeout     int
	NetReadTimeout     int
	NetWriteTimeout    int
}

type SlackOutput

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

func NewSlackOutput

func NewSlackOutput(wg *sync.WaitGroup,
	options SlackOutputOptions,
	templateOptions render.TextTemplateOptions,
	grafanaOptions render.GrafanaOptions,
	logger sreCommon.Logger,
	tracer sreCommon.Tracer,
	metricer sreCommon.Metricer) *SlackOutput

func (*SlackOutput) Send

func (s *SlackOutput) Send(event *common.Event)

type SlackOutputOptions

type SlackOutputOptions struct {
	MessageTemplate  string
	SelectorTemplate string
	URL              string
	Timeout          int
	AlertExpression  string
}

type TelegramOutput

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

func NewTelegramOutput

func NewTelegramOutput(wg *sync.WaitGroup,
	options TelegramOutputOptions,
	templateOptions render.TextTemplateOptions,
	grafanaOptions render.GrafanaOptions,
	logger sreCommon.Logger,
	tracer sreCommon.Tracer,
	metricer sreCommon.Metricer) *TelegramOutput

func (*TelegramOutput) Send

func (t *TelegramOutput) Send(event *common.Event)

type TelegramOutputOptions

type TelegramOutputOptions struct {
	MessageTemplate     string
	SelectorTemplate    string
	URL                 string
	Timeout             int
	AlertExpression     string
	DisableNotification string
}

type WorkchatOutput

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

func NewWorkchatOutput

func NewWorkchatOutput(wg *sync.WaitGroup,
	options WorkchatOutputOptions,
	templateOptions render.TextTemplateOptions,
	grafanaOptions render.GrafanaOptions,
	logger sreCommon.Logger,
	tracer sreCommon.Tracer,
	metricer sreCommon.Metricer) *WorkchatOutput

func (*WorkchatOutput) Send

func (w *WorkchatOutput) Send(event *common.Event)

type WorkchatOutputOptions

type WorkchatOutputOptions struct {
	MessageTemplate  string
	SelectorTemplate string
	URL              string
	Timeout          int
	AlertExpression  string
	NotificationType string
}

Jump to

Keyboard shortcuts

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