status

package
v0.0.0-...-1d9613f Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatStatus

func FormatStatus(data []byte) (string, error)

FormatStatus takes a json bytestring and prints out the formatted statuspage

func FormatUnixTime

func FormatUnixTime(unixTime float64) string

FormatUnixTime formats the unix time to make it more readable

func GetAndFormatStatus

func GetAndFormatStatus() ([]byte, error)

GetAndFormatStatus gets and formats the status all in one go

func GetCheckStatus

func GetCheckStatus(c check.Check, cs *check.Stats) ([]byte, error)

GetCheckStatus gets the status of a single check

func GetStatus

func GetStatus() (map[string]interface{}, error)

GetStatus grabs the status from expvar and puts it into a map

func LastErrorMessage

func LastErrorMessage(value string) template.HTML

LastErrorMessage converts the last error message to html

func MkHuman

func MkHuman(f float64) string

MkHuman makes large numbers more readable

func SetJMXStatus

func SetJMXStatus(s JMXStatus)

SetJMXStatus sets the last JMX Status

Types

type JMXStatus

type JMXStatus struct {
	ChecksStatus jmxCheckStatus `json:"checks"`
	Timestamp    int64          `json:"timestamp"`
}

JMXStatus holds status for JMX checks

func GetJMXStatus

func GetJMXStatus() JMXStatus

GetJMXStatus retrieves latest JMX Status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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