metrics icon indicating copy to clipboard operation
metrics copied to clipboard

Unable to deserialize all Metrics Objects from JSON

Open voidmain opened this issue 11 years ago • 4 comments

EDIT: This needs to be expanded to all of the Metrics classes.

It looks like all of the Metrics classes including the Health Check classes have Jackson Serializers but none of them have a Deserializer. This means I can't really re-use an domain object on both sides of a status check API. It would be nice to have a deserializer for everything inside the metrics-json library.

I have written my own shims for almost everything, but it was pretty tedious.

Also, for some of the classes inside Metrics, I had to ignore some of the information (like the stack traces from the Health Check Result class).

I'll attach all of my code to this issue once I've finished. It should be simple to port it over it in the metrics-json library.

voidmain avatar Jan 30 '15 00:01 voidmain

+1

m8r-ubnc5g avatar Jan 15 '16 11:01 m8r-ubnc5g

I am working on a project which requires me to persist the metrics and then deserialize it when the project is restarted. Serialization works fine and I can see the contents of the file but when I try to deserialize the MetricsRegistry object it throws an exception. So I just wanted to know if there are any updates on this?

anudeepti2004 avatar Jul 18 '17 21:07 anudeepti2004

This issue is stale because it has been open 180 days with no activity. Remove the "stale" label or comment or this will be closed in 14 days.

github-actions[bot] avatar Sep 08 '19 00:09 github-actions[bot]

Hi,

Did you come to a resolution on this issue?

earce avatar Mar 26 '20 16:03 earce