amgr

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

2019-02-14 (cc) <paul4hough@gmail.com>
  alertmanager alert handler
  add body to data store and notify manager

2019-02-14 (cc) <paul4hough@gmail.com>

Single AlertGroup Queue Manager Thread

2019-02-19 (cc) <paul4hough@gmail.com>

Index

Constants

View Source
const (
	LBL_NSYS = "notify_sys"
	LBL_NGRP = "notify_grp"

	Url = "/api/v4/alerts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Amgr added in v0.3.1

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

func New

func New(c *config.Config, dataDir string, dbg bool) *Amgr

func (*Amgr) Del added in v0.9.3

func (am *Amgr) Del()

func (*Amgr) Manage added in v0.3.1

func (am *Amgr) Manage()

func (*Amgr) NewNSys added in v0.9.3

func (am *Amgr) NewNSys(
	defsys notify.NSys,
	pnsys, pgrp string,
	ag alert.AlertGroup,
	resolve bool,
) *db.NSys

func (*Amgr) Notify added in v0.9.3

func (am *Amgr) Notify(nsysid notify.NSys, qid uint64) bool

func (*Amgr) ServeHTTP added in v0.3.1

func (am *Amgr) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Manager added in v0.3.1

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

func NewManager added in v0.3.1

func NewManager() *Manager

func (*Manager) Notify added in v0.3.1

func (m *Manager) Notify(nsys uint)

func (*Manager) Quit added in v0.3.1

func (m *Manager) Quit()

type Metrics added in v0.3.1

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

type NSysChan added in v0.9.3

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

Directories

Path Synopsis
2019-01-19 (cc) <paul.houghton.ywi9@statefarm.com> agate models
2019-01-19 (cc) <paul.houghton.ywi9@statefarm.com> agate models

Jump to

Keyboard shortcuts

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