Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandCreate = cli.Command{ Name: "create", Usage: "Create a new host", ArgsUsage: "[--status | -st <status>] [--roleFullname | -R <service:role>] [--customIdentifier <customIdentifier>] <hostName>", Description: ` Create a new host with status, roleFullname and/or customIdentifier. Requests "POST /api/v0/hosts". See https://mackerel.io/api-docs/entry/hosts#create . `, Action: doCreate, Flags: []cli.Flag{ cli.StringFlag{Name: "status, st", Value: "", Usage: "Host status ('working', 'standby', 'maintenance')"}, cli.StringSliceFlag{ Name: "roleFullname, R", Value: &cli.StringSlice{}, Usage: "Multiple choices are allowed. ex. My-Service:proxy, My-Service:db-master", }, cli.StringFlag{Name: "customIdentifier", Value: "", Usage: "CustomIdentifier for the Host"}, }, }
CommandCreate is definition of mkr create subcommand
View Source
var CommandHosts = 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"}, }, }
CommandHosts 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.