trapsender

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrapSender

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

TrapSender sends traps according to given alerts

func New

func New(configuration TrapSenderConfiguration) TrapSender

New creates a new TrapSender

func (TrapSender) SendAlertTraps

func (trapSender TrapSender) SendAlertTraps(alertBucket types.AlertBucket) error

SendAlertTraps sends a bucket of alerts to the given SNMP connection

type TrapSenderConfiguration

type TrapSenderConfiguration struct {
	SNMPDestination     string
	SNMPRetries         uint
	SNMPCommunity       string
	DescriptionTemplate template.Template
}

TrapSenderConfiguration describes the configuration for sending traps

Jump to

Keyboard shortcuts

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