Lukasz Gajowy created BEAM-7245:
-----------------------------------
Summary: Encapsulate supplier, monitor and metric naming logic in
some common TestMetric type
Key: BEAM-7245
URL: https://issues.apache.org/jira/browse/BEAM-7245
Project: Beam
Issue Type: Improvement
Components: testing
Reporter: Lukasz Gajowy
After an offline discussion together with @mwalenia we decided to create
concrete classes for each metric type (Item_count, byte_count, time). Each
class like this will contain:
- metric name
- supplier for the metric
- monitor for the metric
It turns out that all this (along with the monitor/supplier can be encapsulated
and then attached to the pipeline/metrics reading where needed. This will also
encapsulate the naming logic (so that there are no typos again).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)