Documentation
¶
Index ¶
- Constants
- Variables
- func OutputMetrics(w io.Writer, metrics map[string]interface{}, query string) error
- func ParseOption(o interface{}) error
- func PrintVersion(appVersion string)
- func SacloudAPICaller(productName, version string) (iaas.APICaller, error)
- type MonitorValue
- type Option
- type Resource
- type Resources
Constants ¶
View Source
const ( ExitOk = 0 ExitWarning = 1 ExitCritical = 2 ExitUnknown = 3 )
Variables ¶
View Source
var Version = "0.1.0"
Version app version
Functions ¶
func OutputMetrics ¶
func ParseOption ¶
func ParseOption(o interface{}) error
func PrintVersion ¶
func PrintVersion(appVersion string)
Types ¶
type MonitorValue ¶
type Option ¶
type Option struct {
Time uint `long:"time" description:"Get average traffic for a specified amount of time" default:"3"`
Prefix []string `long:"prefix" description:"prefix for router names. prefix accepts more than one." required:"true"`
Zones []string `long:"zone" description:"zone name" required:"true"`
PercentileSet string `long:"percentile-set" default:"99,95,90,75" description:"percentiles to dispaly"`
Version bool `short:"v" long:"version" description:"Show version"`
Query string `long:"query" description:"jq style query to result and display"`
EnvFrom string `long:"env-from" description:"load environment values from this file"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.