Fix rfc3339 example texts (#1526)

Signed-off-by: Dave Barboza <dxbarboza@gmail.com>
This commit is contained in:
Dave Barboza 2018-08-23 10:17:27 -04:00 committed by stuart nelson
parent 899226f3ac
commit 34bc54cee1
3 changed files with 6 additions and 6 deletions

View File

@ -62,8 +62,8 @@ func configureAddAlertCmd(cc *kingpin.CmdClause) {
)
addCmd.Arg("labels", "List of labels to be included with the alert").StringsVar(&a.labels)
addCmd.Flag("generator-url", "Set the URL of the source that generated the alert").StringVar(&a.generatorUrl)
addCmd.Flag("start", "Set when the alert should start. RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&a.start)
addCmd.Flag("end", "Set when the alert should should end. RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&a.end)
addCmd.Flag("start", "Set when the alert should start. RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&a.start)
addCmd.Flag("end", "Set when the alert should should end. RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&a.end)
addCmd.Flag("annotation", "Set an annotation to be included with the alert").StringsVar(&a.annotations)
addCmd.Action(execWithTimeout(a.addAlert))
}

View File

@ -78,8 +78,8 @@ func configureSilenceAddCmd(cc *kingpin.CmdClause) {
addCmd.Flag("author", "Username for CreatedBy field").Short('a').Default(username()).StringVar(&c.author)
addCmd.Flag("require-comment", "Require comment to be set").Hidden().Default("true").BoolVar(&c.requireComment)
addCmd.Flag("duration", "Duration of silence").Short('d').Default("1h").StringVar(&c.duration)
addCmd.Flag("start", "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&c.start)
addCmd.Flag("end", "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&c.end)
addCmd.Flag("start", "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&c.start)
addCmd.Flag("end", "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&c.end)
addCmd.Flag("comment", "A comment to help describe the silence").Short('c').StringVar(&c.comment)
addCmd.Arg("matcher-groups", "Query filter").StringsVar(&c.matchers)
addCmd.Action(execWithTimeout(c.add))

View File

@ -44,8 +44,8 @@ func configureSilenceUpdateCmd(cc *kingpin.CmdClause) {
)
updateCmd.Flag("quiet", "Only show silence ids").Short('q').BoolVar(&c.quiet)
updateCmd.Flag("duration", "Duration of silence").Short('d').StringVar(&c.duration)
updateCmd.Flag("start", "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&c.start)
updateCmd.Flag("end", "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05Z07:00").StringVar(&c.end)
updateCmd.Flag("start", "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&c.start)
updateCmd.Flag("end", "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05-07:00").StringVar(&c.end)
updateCmd.Flag("comment", "A comment to help describe the silence").Short('c').StringVar(&c.comment)
updateCmd.Arg("update-ids", "Silence IDs to update").StringsVar(&c.ids)