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, 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, d", Usage: "send a detailed report contains command output"}, cli.StringFlag{Name: "note, N", Value: "", Usage: "`note` of the job"}, cli.StringFlag{Name: "host, H", Value: "", Usage: "`hostID`"}, cli.BoolFlag{Name: "warning, w", Usage: "alerts as warning"}, cli.BoolFlag{Name: "auto-close, a", Usage: "automatically close an existing alert when the command success"}, cli.DurationFlag{Name: "notification-interval, 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.