prometheus/vendor/github.com/PuerkitoBio/urlesc
Max Leonard Inden 41c22effbe
config&notifier: Add option to use Alertmanager API v2
With v0.16.0 Alertmanager introduced a new API (v2). This patch adds a
configuration option for Prometheus to send alerts to the v2 endpoint
instead of the defautl v1 endpoint.

Signed-off-by: Max Leonard Inden <IndenML@gmail.com>
2019-06-21 16:33:53 +02:00
..
.travis.yml config&notifier: Add option to use Alertmanager API v2 2019-06-21 16:33:53 +02:00
LICENSE config&notifier: Add option to use Alertmanager API v2 2019-06-21 16:33:53 +02:00
README.md config&notifier: Add option to use Alertmanager API v2 2019-06-21 16:33:53 +02:00
urlesc.go config&notifier: Add option to use Alertmanager API v2 2019-06-21 16:33:53 +02:00

urlesc Build Status GoDoc

Package urlesc implements query escaping as per RFC 3986.

It contains some parts of the net/url package, modified so as to allow some reserved characters incorrectly escaped by net/url (see issue 5684).

Install

go get github.com/PuerkitoBio/urlesc

License

Go license (BSD-3-Clause)