remed

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: 14 Imported by: 0

Documentation

Overview

2018-12-25 (cc) <paul4hough@gmail.com>

process alert ansible remediation - create inventory file w/ node - create playbook with variables from labels - run ansible role - return output

2019-01-07 (cc) <paul4hough@gmail.com>
  create remed instance

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

2018-12-25 (cc) <paul4hough@gmail.com>
  process alert script remediation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

type Remed

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

func New

func New(c config.Remed, n *notify.Notify, dbg bool) *Remed

func (*Remed) AGroupHasRemed added in v0.9.3

func (r *Remed) AGroupHasRemed(ag alert.AlertGroup) bool

func (*Remed) AlertHasRemed added in v0.9.3

func (r *Remed) AlertHasRemed(a alert.Alert) bool

func (*Remed) Ansible

func (r *Remed) Ansible(node string, labels alert.LabelSet) (string, error)

func (*Remed) AnsibleAvail

func (r *Remed) AnsibleAvail(labels alert.LabelSet) bool

func (*Remed) Del added in v0.9.3

func (r *Remed) Del()

func (*Remed) Remed added in v0.9.3

func (r *Remed) Remed(a alert.Alert, nid nid.Nid)

func (*Remed) Script

func (r *Remed) Script(node string, labels alert.LabelSet) (string, error)

func (*Remed) ScriptAvail

func (r *Remed) ScriptAvail(labels alert.LabelSet) bool

Jump to

Keyboard shortcuts

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