File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ func configureAddAlertCmd(cc *kingpin.CmdClause) {
62
62
)
63
63
addCmd .Arg ("labels" , "List of labels to be included with the alert" ).StringsVar (& a .labels )
64
64
addCmd .Flag ("generator-url" , "Set the URL of the source that generated the alert" ).StringVar (& a .generatorUrl )
65
- addCmd .Flag ("start" , "Set when the alert should start. RFC3339 format 2006-01-02T15:04:05Z07 :00" ).StringVar (& a .start )
66
- addCmd .Flag ("end" , "Set when the alert should should end. RFC3339 format 2006-01-02T15:04:05Z07 :00" ).StringVar (& a .end )
65
+ addCmd .Flag ("start" , "Set when the alert should start. RFC3339 format 2006-01-02T15:04:05-07 :00" ).StringVar (& a .start )
66
+ addCmd .Flag ("end" , "Set when the alert should should end. RFC3339 format 2006-01-02T15:04:05-07 :00" ).StringVar (& a .end )
67
67
addCmd .Flag ("annotation" , "Set an annotation to be included with the alert" ).StringsVar (& a .annotations )
68
68
addCmd .Action (execWithTimeout (a .addAlert ))
69
69
}
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ func configureSilenceAddCmd(cc *kingpin.CmdClause) {
78
78
addCmd .Flag ("author" , "Username for CreatedBy field" ).Short ('a' ).Default (username ()).StringVar (& c .author )
79
79
addCmd .Flag ("require-comment" , "Require comment to be set" ).Hidden ().Default ("true" ).BoolVar (& c .requireComment )
80
80
addCmd .Flag ("duration" , "Duration of silence" ).Short ('d' ).Default ("1h" ).StringVar (& c .duration )
81
- addCmd .Flag ("start" , "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05Z07 :00" ).StringVar (& c .start )
82
- addCmd .Flag ("end" , "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05Z07 :00" ).StringVar (& c .end )
81
+ addCmd .Flag ("start" , "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05-07 :00" ).StringVar (& c .start )
82
+ addCmd .Flag ("end" , "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05-07 :00" ).StringVar (& c .end )
83
83
addCmd .Flag ("comment" , "A comment to help describe the silence" ).Short ('c' ).StringVar (& c .comment )
84
84
addCmd .Arg ("matcher-groups" , "Query filter" ).StringsVar (& c .matchers )
85
85
addCmd .Action (execWithTimeout (c .add ))
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ func configureSilenceUpdateCmd(cc *kingpin.CmdClause) {
44
44
)
45
45
updateCmd .Flag ("quiet" , "Only show silence ids" ).Short ('q' ).BoolVar (& c .quiet )
46
46
updateCmd .Flag ("duration" , "Duration of silence" ).Short ('d' ).StringVar (& c .duration )
47
- updateCmd .Flag ("start" , "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05Z07 :00" ).StringVar (& c .start )
48
- updateCmd .Flag ("end" , "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05Z07 :00" ).StringVar (& c .end )
47
+ updateCmd .Flag ("start" , "Set when the silence should start. RFC3339 format 2006-01-02T15:04:05-07 :00" ).StringVar (& c .start )
48
+ updateCmd .Flag ("end" , "Set when the silence should end (overwrites duration). RFC3339 format 2006-01-02T15:04:05-07 :00" ).StringVar (& c .end )
49
49
updateCmd .Flag ("comment" , "A comment to help describe the silence" ).Short ('c' ).StringVar (& c .comment )
50
50
updateCmd .Arg ("update-ids" , "Silence IDs to update" ).StringsVar (& c .ids )
51
51
You can’t perform that action at this time.
0 commit comments