status

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CfgFile point to struct who contain all options from puma-helper.yml file
	CfgFile PumaHelperCfg
	// Filter CLI status command option
	Filter string
	// JSONOutput CLI status command option
	JSONOutput bool
	// ExpandDetails CLI status command option
	ExpandDetails bool
)

Functions

func RunStatus

func RunStatus() error

RunStatus run all status logical command

Types

type PumaHelperCfg

type PumaHelperCfg struct {
	Applications map[string]PumaHelperCfgData `mapstructure:"applications"`
}

PumaHelperCfg point to struct who contain all options from puma-helper.yml file

type PumaHelperCfgData

type PumaHelperCfgData struct {
	Path           string   `mapstructure:"path"`
	Description    string   `mapstructure:"description"`
	PumastatePaths []string `mapstructure:"pumastatepaths"`
	ThreadWarn     int      `mapstructure:"thread_warn"`
	ThreadCritical int      `mapstructure:"thread_critical"`
	CPUWarn        int      `mapstructure:"cpu_warn"`
	CPUCritical    int      `mapstructure:"cpu_critical"`
	MemoryWarn     int      `mapstructure:"memory_warn"`
	MemoryCritical int      `mapstructure:"memory_critical"`
}

PumaHelperCfgData contain all options per app from puma-helper.yml file

Jump to

Keyboard shortcuts

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