alertmanager/cli
stuart nelson 50b87ac720
Fixes #1570 (#1575)
The documentation stated that the `alertname=`
part of a matcher could be dropped and it would be
assumed that the first value was the alertname.
This behavior was only honored if there was a
single matcher, but failed if there were multiple.

Any time we have one or more matchers, check to
see if the first matcher fails parsing. If so,
assume it's intended to be used as the alertname,
and append that value to the matcher.

Signed-off-by: Stuart Nelson <stuartnelson3@gmail.com>
2018-10-08 13:06:12 +02:00
..
config
format
testdata
alert.go
alert_add.go
alert_query.go Fixes #1570 (#1575) 2018-10-08 13:06:12 +02:00
check_config.go
check_config_test.go
config.go
root.go
routing.go
silence.go
silence_add.go
silence_expire.go
silence_import.go
silence_query.go
silence_update.go
test_routing.go
test_routing_test.go
utils.go