Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "wrap", Usage: "Wrap and monitor batch jobs to run with cron etc", ArgsUsage: "[--name|-n <name>] [OPTIONS] -- /path/to/batch", Description: ` Wrap a batch command with specifying it as arguments. If the command failed with non-zero exit code, it sends a report to Mackerel and raises an alert. It is useful for cron jobs etc. `, Action: doWrap, Flags: []cli.Flag{ &cli.StringFlag{ Name: "name", Aliases: []string{"n"}, Value: "", Usage: "The `check-name` which must be unique on a host. If it is empty it will be automatically derived.", }, &cli.BoolFlag{ Name: "detail", Aliases: []string{"d"}, Usage: "send a detailed report contains command output", }, &cli.StringFlag{ Name: "note", Aliases: []string{"N"}, Value: "", Usage: "`note` of the job", }, &cli.StringFlag{ Name: "host", Aliases: []string{"H"}, Value: "", Usage: "`hostID`", }, &cli.BoolFlag{ Name: "warning", Aliases: []string{"w"}, Usage: "alerts as warning", }, &cli.BoolFlag{ Name: "auto-close", Aliases: []string{"a"}, Usage: "automatically close an existing alert when the command success", }, &cli.DurationFlag{ Name: "notification-interval", Aliases: []string{"I"}, Usage: "The notification re-sending `interval`. If it is zero, never re-send. (minimum 10 minutes)", }, }, }
Command is definition of mkr wrap
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.