analyze

package
v0.0.0-...-02f112a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllHostsInLog

func AllHostsInLog(parsedLog parser.ParsedLines) mapset.Set

func CountsAsDown

func CountsAsDown(parsed parser.ParsedLine, criticals []string, tries int) bool

func FindDownHosts

func FindDownHosts(parsedLog parser.ParsedLines, criticals []string, tries int) parser.ParsedLines

func FindHostIsUp

func FindHostIsUp(parsedLog parser.ParsedLines, critical parser.ParsedLine) parser.ParsedLine

func FindOkCounterPart

func FindOkCounterPart(parsedLog parser.ParsedLines, critical parser.ParsedLine) parser.ParsedLine

func FindServiceIsOk

func FindServiceIsOk(parsedLog parser.ParsedLines, critical parser.ParsedLine) parser.ParsedLine

func HostIsDown

func HostIsDown(parsed parser.ParsedLine) bool

func ServiceIsDown

func ServiceIsDown(parsed parser.ParsedLine, criticals []string) bool

Types

type DownTime

type DownTime struct {
	Hostname          string
	CriticalTimestamp int64
	FirstOkTimestamp  int64
}

func FindDowntimeForHost

func FindDowntimeForHost(parsedLog parser.ParsedLines, critical parser.ParsedLine) DownTime

func FindDowntimeForHosts

func FindDowntimeForHosts(parsedLog parser.ParsedLines, criticals []string, tries int) []DownTime

type Uptime

type Uptime map[string]int

func FindUptime

func FindUptime(parsedLog parser.ParsedLines, criticals []string, tries int) Uptime

Jump to

Keyboard shortcuts

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