Search in sources :

Example 6 with CustomMetricVo

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);
}
Also used : AgentCustomMetricSnapshot(com.navercorp.pinpoint.profiler.monitor.metric.AgentCustomMetricSnapshot) CustomMetricVo(com.navercorp.pinpoint.profiler.monitor.metric.custom.CustomMetricVo)

Aggregations

CustomMetricVo (com.navercorp.pinpoint.profiler.monitor.metric.custom.CustomMetricVo)6 PCustomMetric (com.navercorp.pinpoint.grpc.trace.PCustomMetric)5 PDouleGaugeMetric (com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric)1 PIntCountMetric (com.navercorp.pinpoint.grpc.trace.PIntCountMetric)1 PIntGaugeMetric (com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric)1 PLongCountMetric (com.navercorp.pinpoint.grpc.trace.PLongCountMetric)1 PLongGaugeMetric (com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric)1 AgentCustomMetricSnapshot (com.navercorp.pinpoint.profiler.monitor.metric.AgentCustomMetricSnapshot)1 DoubleGaugeMetricVo (com.navercorp.pinpoint.profiler.monitor.metric.custom.DoubleGaugeMetricVo)1 IntCountMetricVo (com.navercorp.pinpoint.profiler.monitor.metric.custom.IntCountMetricVo)1 IntGaugeMetricVo (com.navercorp.pinpoint.profiler.monitor.metric.custom.IntGaugeMetricVo)1 LongCountMetricVo (com.navercorp.pinpoint.profiler.monitor.metric.custom.LongCountMetricVo)1 LongGaugeMetricVo (com.navercorp.pinpoint.profiler.monitor.metric.custom.LongGaugeMetricVo)1