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).
Imported from Jira BEAM-7245. Original Jira may contain additional context.
Reported by: ŁukaszG.
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:
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).
Imported from Jira BEAM-7245. Original Jira may contain additional context.
Reported by: ŁukaszG.