status

package
v0.0.0-...-7dd2d7d Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fmap

func Fmap() template.FuncMap

Fmap return a fresh copy of a map of utility functions for templating

func FormatDCAStatus

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

FormatDCAStatus takes a json bytestring and prints out the formatted statuspage

func FormatHPAStatus

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

FormatHPAStatus takes a json bytestring and prints out the formatted statuspage

func FormatMetadataMapCLI

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

FormatMetadataMapCLI builds the rendering in the metadataMapper template.

func FormatStatus

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

FormatStatus takes a json bytestring and prints out the formatted statuspage

func GetAndFormatDCAStatus

func GetAndFormatDCAStatus() ([]byte, error)

GetAndFormatDCAStatus gets and formats the DCA status all in one go.

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 as human-readable text

func GetCheckStatusJSON

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

GetCheckStatusJSON gets the status of a single check as JSON

func GetDCAStatus

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

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

func GetStatus

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

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

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