integrator

package
v0.0.0-...-09dd828 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEV = "dev"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	Rule     Rule   `json:"rule,omitempty"`
	Location string `json:"location,omitempty"`
}

type Integrator

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

func New

func New(cfg *config.Config) *Integrator

New creates integrator instance

func (*Integrator) MonitorWaitingQueue

func (i *Integrator) MonitorWaitingQueue()

MonitorWaitingQueue Get waiting queue size every 10 seconds Warning if waiting queue size > maxWorkers configured

func (*Integrator) Run

func (i *Integrator) Run()

Run parsing alerts.json file. if an alert is match with conditions then execute integration command

func (*Integrator) RunIntegratorSocketServer

func (i *Integrator) RunIntegratorSocketServer()

RunIntegratorSocketServer start a unix socket server

type Rule

type Rule struct {
	Level  *int     `json:"level,omitempty"`
	ID     string   `json:"id"`
	Groups []string `json:"groups,omitempty"`
}

Jump to

Keyboard shortcuts

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