jmx

package
v0.0.0-...-2588d20 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package jmx allows to set and collect information about JMX check

Package jmx allows to set and collect information about JMX check

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateStatus

func PopulateStatus(stats map[string]interface{})

PopulateStatus populate stats with JMX information

func SetStartupError

func SetStartupError(s StartupError)

SetStartupError sets the last JMX startup error

func SetStatus

func SetStatus(s Status)

SetStatus sets the last JMX Status

Types

type Provider

type Provider struct{}

Provider provides the functionality to populate the status output

func (Provider) HTML

func (p Provider) HTML(_ bool, buffer io.Writer) error

HTML renders the html output

func (Provider) JSON

func (p Provider) JSON(_ bool, stats map[string]interface{}) error

JSON populates the status map

func (Provider) Name

func (Provider) Name() string

Name returns the name

func (Provider) Section

func (Provider) Section() string

Section return the section

func (Provider) Text

func (p Provider) Text(verbose bool, buffer io.Writer) error

Text renders the text output

type StartupError

type StartupError struct {
	LastError string
	Timestamp int64
}

StartupError holds startup status and errors

func GetStartupError

func GetStartupError() StartupError

GetStartupError retrieves latest JMX startup error

type Status

type Status struct {
	Info         map[string]interface{} `json:"info"`
	ChecksStatus jmxCheckStatus         `json:"checks"`
	Timestamp    int64                  `json:"timestamp"`
	Errors       int64                  `json:"errors"`
}

Status holds status for JMX checks

Jump to

Keyboard shortcuts

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