open-consul/ui/packages/consul-ui/mock-api
John Cowen 4515d6141b
ui: Replace NaN and undefined metrics values with `-` (#9200)
* ui: Add functionality to metrics mocks:

1. More randomness during blocking queries
2. NaN and undefined values that come from prometheus
3. General trivial amends to bring things closer to the style of the
project

* Provider should always provide data as a string or undefined

* Use a placeholder `-` if the metrics endpoint responds with undefined data
2020-11-16 15:22:24 +00:00
..
v1 ui: Replace NaN and undefined metrics values with `-` (#9200) 2020-11-16 15:22:24 +00:00
README.md

README.md

consul-api-double

Super simple API 'double' for easily visualizing the Consul API via the filesystem.

This can be served via either a simple javascript HTTP server, or entirely via frontend methods if your project/circumstances means you are unable to use or it's complicated to use a backend server for testing.

See @hashicorp/api-double for more details.