Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{ Name: "hosts", Usage: "List hosts", ArgsUsage: "[--verbose | -v] [--name | -n <name>] [--service | -s <service>] [[--role | -r <role>]...] [[--status | --st <status>]...]", Description: ` List the information of the hosts refined by host name, service name, role name and/or status. Requests "GET /api/v0/hosts.json". See https://mackerel.io/api-docs/entry/hosts#list . `, Action: doHosts, Flags: []cli.Flag{ cli.StringFlag{Name: "name, n", Value: "", Usage: "List hosts only matched with <name>"}, cli.StringFlag{Name: "service, s", Value: "", Usage: "List hosts only belonging to <service>"}, cli.StringSliceFlag{ Name: "role, r", Value: &cli.StringSlice{}, Usage: "List hosts only belonging to <role>. Multiple choices are allowed. Required --service", }, cli.StringSliceFlag{ Name: "status, st", Value: &cli.StringSlice{}, Usage: "List hosts only matched <status>. Multiple choices are allowed.", }, cli.StringFlag{Name: "format, f", Value: "", Usage: "Output format template"}, cli.BoolFlag{Name: "verbose, v", Usage: "Verbose output mode"}, }, }
Command is definition of mkr hosts subcommand
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.