linkerd2/controller/api/util
Andrew Seigner 727521f914
Permit arbitrary time windows in public-api (#774)
The public-api previously only permitted 4 hard-coded time windows:
10s, 1m, 10m, 1h. This was primarily a relic of the recently removed
telemetry system.

Modify the public-api to validate the time string, but allow for any
window size, which is then passed through to Prometheus.

Fixes #686

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2018-04-16 17:37:17 -07:00
..
api_utils.go Permit arbitrary time windows in public-api (#774) 2018-04-16 17:37:17 -07:00
api_utils_test.go Permit arbitrary time windows in public-api (#774) 2018-04-16 17:37:17 -07:00