alertmanager/cli
stuart nelson 19715022a4
[amtool] update silence add and update flags (#1298)
* Update silence add/update flags

- Change --expires/-e to --duration/-d
- Change --expires-on to --end
- Add --start

* update subcommand returns ID of new silence

The silences printed before were accurate, except
they had the old ID. Now the new ID is returned.

* Duration is added to silence.StartsAt

When a user supplies a duration to update a
silence, it is applied to silence.StartsAt after
any potential changes to the silence's start time.
2018-03-29 12:11:31 +02:00
..
format Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
testdata amtool check-config (#978) 2017-09-07 10:58:58 +02:00
alert.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
check_config.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
check_config_test.go Clean code style - amtool errors (#1099) 2017-11-12 11:43:48 -05:00
client.go cli: extract client bindings of the v1 API (#1278) 2018-03-28 19:19:04 +02:00
client_test.go cli: extract client bindings of the v1 API (#1278) 2018-03-28 19:19:04 +02:00
config.go cli: extract client bindings of the v1 API (#1278) 2018-03-28 19:19:04 +02:00
root.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
silence.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
silence_add.go [amtool] update silence add and update flags (#1298) 2018-03-29 12:11:31 +02:00
silence_expire.go Switch amtool to kingpin (#976) 2017-12-22 11:17:13 +01:00
silence_import.go Run staticcheck as part of the build process (#1264) 2018-02-28 17:42:32 +01:00
silence_query.go Update silence query long help 2018-01-12 10:44:38 +01:00
silence_update.go [amtool] update silence add and update flags (#1298) 2018-03-29 12:11:31 +02:00
utils.go Set User object in alertmanager url. (#1279) 2018-03-13 14:56:20 +01:00