alertmanager/cli
Colin Douch a66692fa56
Add `--id` flag to `amtool silence query` (#3241)
In the Web UI, we have a UI to get information on a given silence
through its ID. This functionality is missing from amtool however,
leading to the necessity to pull _all_ the silenced, and filter with
`grep` or similar.

This commit adds in a `--id` flag to the `silence query` command, which
allows specifying an ID to match on, matching the functionality of the Web UI.

Signed-off-by: sinkingpoint <colin@quirl.co.nz>
2023-02-22 11:50:25 +00:00
..
config feat: switch to LoadHTTPConfigFile from common 2022-12-09 12:01:51 +01:00
format Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
testdata *: bump to Go 1.17 (#2792) 2021-12-22 14:03:53 +01:00
alert.go Add support for adding alerts using amtool (#1461) 2018-07-16 16:29:04 +02:00
alert_add.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
alert_query.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
check_config.go feat: add template.FromGlobsWithAdditionalFuncs (#3174) 2022-12-16 10:13:13 -04:00
check_config_test.go *: add missing license headers 2018-05-14 17:37:13 +02:00
cluster.go Add cluster command to show cluster and peer statuses. (#2256) 2020-05-18 15:25:15 +02:00
config.go cli: update amtool to use apiv2 2019-03-29 09:11:09 -05:00
root.go feat: switch to LoadHTTPConfigFile from common 2022-12-09 12:01:51 +01:00
routing.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
silence.go Add timeout support to amtool commands (#1471) 2018-07-17 09:50:48 +02:00
silence_add.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
silence_expire.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
silence_import.go Update go-openapi to latest 2021-03-10 19:00:22 +01:00
silence_query.go Add `--id` flag to `amtool silence query` (#3241) 2023-02-22 11:50:25 +00:00
silence_update.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
template.go cli: add new template render command (#2538) 2021-08-04 13:58:33 +02:00
template_render.go feat: add template.FromGlobsWithAdditionalFuncs (#3174) 2022-12-16 10:13:13 -04:00
test_routing.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
test_routing_test.go Update golangci-lint and fix complaints (#2853) 2022-03-25 17:59:51 +01:00
utils.go cli: Parse properly all matcher types 2021-02-16 14:22:59 +02:00