Class MetricSnapshotMapper

java.lang.Object
com.nmontytskyi.monitoring.server.mapper.MetricSnapshotMapper

public class MetricSnapshotMapper extends Object
Stateless mapper between the MetricRecordEntity JPA entity and the MetricSnapshot core domain model.

The MetricRecordEntity.MetricSource is preserved through conversion so that business logic can distinguish between Actuator-pulled data and starter-pushed data when computing aggregates.