alertmanager/api/v2
Paul Gier 3ffe6cfdc8 api/v2: sort silences similarly to v1 api (#1786)
* api/v2: sort silences similarly to v1 api

Sort the queried silences to match behaviour in the v1 api.

Sort silences in-place instead of creating multiple slices.
Use separate function for sorting silences for easier testing.
Add unit test for sort order.

Signed-off-by: Paul Gier <pgier@redhat.com>
2019-03-11 14:19:52 +01:00
..
models api/v2: Make cluster status peers and name optional 2019-02-04 11:40:30 +01:00
restapi *: fix filter parameters with comma 2019-03-08 09:56:05 +01:00
api_test.go api/v2: sort silences similarly to v1 api (#1786) 2019-03-11 14:19:52 +01:00
api.go api/v2: sort silences similarly to v1 api (#1786) 2019-03-11 14:19:52 +01:00
openapi.yaml *: fix filter parameters with comma 2019-03-08 09:56:05 +01:00