Search in sources :

Example 1 with PUriHistogram

use of com.navercorp.pinpoint.grpc.trace.PUriHistogram in project pinpoint by naver.

the class GrpcAgentUriStatMapper method createEachUriStatBo.

private EachUriStatBo createEachUriStatBo(PEachUriStat pEachUriStat) {
    EachUriStatBo eachUriStatBo = new EachUriStatBo();
    final String uri = pEachUriStat.getUri();
    eachUriStatBo.setUri(uri);
    PUriHistogram pTotalHistogram = pEachUriStat.getTotalHistogram();
    final UriStatHistogram totalHistogram = convertUriStatHistogram(pTotalHistogram);
    eachUriStatBo.setTotalHistogram(totalHistogram);
    PUriHistogram pFailedHistogram = pEachUriStat.getFailedHistogram();
    final UriStatHistogram failedHistogram = convertUriStatHistogram(pFailedHistogram);
    eachUriStatBo.setFailedHistogram(failedHistogram);
    return eachUriStatBo;
}
Also used : PUriHistogram(com.navercorp.pinpoint.grpc.trace.PUriHistogram) EachUriStatBo(com.navercorp.pinpoint.common.server.bo.stat.EachUriStatBo) UriStatHistogram(com.navercorp.pinpoint.common.server.bo.stat.UriStatHistogram)

Example 2 with PUriHistogram

use of com.navercorp.pinpoint.grpc.trace.PUriHistogram in project pinpoint by naver.

the class GrpcUriStatMessageConverter method createPEachUriStat.

private PEachUriStat createPEachUriStat(EachUriStatData eachUriStatData) {
    String uri = eachUriStatData.getUri();
    PEachUriStat.Builder builder = PEachUriStat.newBuilder();
    builder.setUri(uri);
    UriStatHistogram totalHistogram = eachUriStatData.getTotalHistogram();
    PUriHistogram totalPUriHistogram = createPUriHistogram(totalHistogram);
    builder.setTotalHistogram(totalPUriHistogram);
    UriStatHistogram failedHistogram = eachUriStatData.getFailedHistogram();
    PUriHistogram failedPUriHistogram = createPUriHistogram(failedHistogram);
    builder.setFailedHistogram(failedPUriHistogram);
    return builder.build();
}
Also used : PUriHistogram(com.navercorp.pinpoint.grpc.trace.PUriHistogram) PEachUriStat(com.navercorp.pinpoint.grpc.trace.PEachUriStat) UriStatHistogram(com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatHistogram)

Aggregations

PUriHistogram (com.navercorp.pinpoint.grpc.trace.PUriHistogram)2 EachUriStatBo (com.navercorp.pinpoint.common.server.bo.stat.EachUriStatBo)1 UriStatHistogram (com.navercorp.pinpoint.common.server.bo.stat.UriStatHistogram)1 PEachUriStat (com.navercorp.pinpoint.grpc.trace.PEachUriStat)1 UriStatHistogram (com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatHistogram)1