use of org.platformlayer.metrics.model.MetricInfo in project platformlayer by platformlayer.
the class MetricCollector method populateMetricInfo.
static void populateMetricInfo(MetricInfoCollection metricInfoCollection, String prefix, MetricConfig metrics) {
if (metrics.metric != null) {
for (Metric metric : metrics.metric) {
MetricInfo metricInfo = new MetricInfo();
metricInfo.key = (prefix + metric.key);
metricInfoCollection.metricInfoList.add(metricInfo);
}
}
if (metrics.metrics != null) {
for (MetricConfig subtree : metrics.metrics) {
String childPrefix = prefix + subtree.key + "/";
populateMetricInfo(metricInfoCollection, childPrefix, subtree);
}
}
}
Aggregations