You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Etienne Chauchot (JIRA)" <ji...@apache.org> on 2018/03/20 17:49:00 UTC
[jira] [Created] (BEAM-3892) Make MetricQueryResults and related
classes more json-serialization friendly
Etienne Chauchot created BEAM-3892:
--------------------------------------
Summary: Make MetricQueryResults and related classes more json-serialization friendly
Key: BEAM-3892
URL: https://issues.apache.org/jira/browse/BEAM-3892
Project: Beam
Issue Type: Improvement
Components: sdk-java-core
Reporter: Etienne Chauchot
Assignee: Etienne Chauchot
When working on this PR [https://github.com/apache/beam/pull/4548] MetricQueryResults needed to be serialized to be pushed to a metrics sink. As they were it required a custom serializer that just calls the name(), counter(), committed(), attempted() ... methods. MetricQueryResults are so close to be serializable with the default serializer, just need the accessors to be renamed get*, that creating DTO objects with get* methods to just call the non-get methods seems unnecessary.
So just rename public accessors to get* on the experimental API
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)