ipfs-cluster/api/rest
Hector Sanjuan 19b1124999 Make metrics human
Issue #572 exposes metrics but they carry the peer ID in binary.

This was ok with our internal codecs but it doesn't seem to work
very well with json, and makes the output format unusable.

This makes the Metric.Peer field a string.

Additinoally, fixes calling the command without arguments and displaying
the date in the right format.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-26 14:11:30 +02:00
..
client Make metrics human 2018-10-26 14:11:30 +02:00
test Issue #162: Add tests for rest.Config 2017-10-19 20:49:18 +02:00
config_test.go Config: provide utility to parse duration arguments. Use it. 2018-03-16 14:22:11 +01:00
config.go Restapi: Add configurable response headers 2018-10-17 11:42:25 +02:00
restapi_test.go Restapi: Add configurable response headers 2018-10-17 11:42:25 +02:00
restapi.go Issue #449 API endpoint for Peer Monitor metrics 2018-10-21 13:36:20 +05:30