prometheus/web/api/v1
gotjosh 4bf9c6bb82 Allow targets to be injected as arguments when creating a testTargetRetriever
Previously, the struct `testTargetRetriever` had hardcoded active and dropped targets. This made it difficult to change the target information depending on the test case.

This change introduces a way to define them as arguments and pass it to a constructor for building. It lays a foundation for dynamically defining targets with various set of arguments to test different scenarios.

Signed-off-by: gotjosh <josue@grafana.com>
2019-12-05 10:29:28 +00:00
..
api.go Port tsdb to use pkg/labels. (#6326) 2019-11-18 11:53:33 -08:00
api_test.go Allow targets to be injected as arguments when creating a testTargetRetriever 2019-12-05 10:29:28 +00:00