From 34bc54cee1f34d459a57ea9cd50af3d431ddcf28 Mon Sep 17 00:00:00 2001 From: Dave Barboza Date: Thu, 23 Aug 2018 10:17:27 -0400 Subject: [PATCH] Fix rfc3339 example texts (#1526) Signed-off-by: Dave Barboza --- cli/alert_add.go | 4 ++-- cli/silence_add.go | 4 ++-- cli/silence_update.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cli/alert_add.go b/cli/alert_add.go index 393d0e43..123eba51 100644 --- a/cli/alert_add.go +++ b/cli/alert_add.go @@ -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)) } diff --git a/cli/silence_add.go b/cli/silence_add.go index 80ed5c4c..091c000b 100644 --- a/cli/silence_add.go +++ b/cli/silence_add.go @@ -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)) diff --git a/cli/silence_update.go b/cli/silence_update.go index 3dce5757..bd92a80a 100644 --- a/cli/silence_update.go +++ b/cli/silence_update.go @@ -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)