public static void setCommonAttributes ( List < Metric > metrics , Metric result ) { MetricDistiller distiller = new MetricDistiller ( ) ; distiller . distill ( metrics ) ; result . setDisplayName ( distiller . getDisplayName ( ) ) ; result . setUnits ( distiller . getUnits ( ) ) ; result . setTags ( distiller . getTags ( ) ) ; }
Filters common attributes from list of metrics and writes them to result metric .