use of com.navercorp.pinpoint.profiler.monitor.metric.custom.CustomMetricVo in project pinpoint by naver.
the class GrpcCustomMetricMessageConverter method create.
private PCustomMetric create(String metricName, List<AgentCustomMetricSnapshot> agentCustomMetricSnapshotList) {
int size = agentCustomMetricSnapshotList.size();
CustomMetricVo representativeCustomMetricVo = null;
CustomMetricVo[] customMetricVos = new CustomMetricVo[size];
for (int i = 0; i < size; i++) {
AgentCustomMetricSnapshot agentCustomMetricSnapshot = agentCustomMetricSnapshotList.get(i);
CustomMetricVo customMetricVo = agentCustomMetricSnapshot.get(metricName);
customMetricVos[i] = customMetricVo;
if (customMetricVo == null) {
continue;
}
if (representativeCustomMetricVo == null) {
representativeCustomMetricVo = customMetricVo;
}
}
return create0(metricName, representativeCustomMetricVo, customMetricVos);
}
Aggregations