Search in sources :

Example 6 with ResponseTimeBo

use of com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo in project pinpoint by naver.

the class TFResponseTimeMapper method build.

@Override
public void build(TFAgentStatMapper.TFAgentStatBuilder builder) {
    AgentStatBo agentStat = builder.getAgentStat();
    List<ResponseTimeBo> responseTimeList = agentStat.getResponseTimeBos();
    builder.build(responseTimeList, this);
}
Also used : AgentStatBo(com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo) ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)

Example 7 with ResponseTimeBo

use of com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo in project pinpoint by naver.

the class GrpcResponseTimeBoMapper method map.

public ResponseTimeBo map(final PResponseTime tResponseTime) {
    final ResponseTimeBo responseTimeBo = new ResponseTimeBo();
    responseTimeBo.setAvg(tResponseTime.getAvg());
    responseTimeBo.setMax(tResponseTime.getMax());
    return responseTimeBo;
}
Also used : ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)

Example 8 with ResponseTimeBo

use of com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo in project pinpoint by naver.

the class ResponseTimeChartGroupTest method createSampledResponseTime.

private SampledResponseTime createSampledResponseTime(long timestamp, int maxConnectionSize) {
    int listSize = RandomUtils.nextInt(1, RANDOM_LIST_MAX_SIZE);
    List<ResponseTimeBo> responseTimeBoList = new ArrayList<>(listSize);
    for (int i = 0; i < listSize; i++) {
        ResponseTimeBo responseTimeBo = new ResponseTimeBo();
        long avg = ThreadLocalRandom.current().nextLong(RANDOM_AVG_MAX_SIZE);
        responseTimeBo.setAvg(avg);
        responseTimeBo.setMax(avg + 100);
        responseTimeBoList.add(responseTimeBo);
    }
    return sampler.sampleDataPoints(0, timestamp, responseTimeBoList, null);
}
Also used : ArrayList(java.util.ArrayList) Point(com.navercorp.pinpoint.web.vo.chart.Point) ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)

Example 9 with ResponseTimeBo

use of com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo in project pinpoint by naver.

the class HbaseSampledResponseTimeDaoV2 method getSampledAgentStatList.

@Override
public List<SampledResponseTime> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
    long scanFrom = timeWindow.getWindowRange().getFrom();
    long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
    Range range = Range.newRange(scanFrom, scanTo);
    AgentStatMapperV2<ResponseTimeBo> mapper = operations.createRowMapper(responseTimeDecoder, range);
    SampledAgentStatResultExtractor<ResponseTimeBo, SampledResponseTime> resultExtractor = new SampledAgentStatResultExtractor<>(timeWindow, mapper, responseTimeSampler);
    return operations.getSampledAgentStatList(AgentStatType.RESPONSE_TIME, resultExtractor, agentId, range);
}
Also used : SampledResponseTime(com.navercorp.pinpoint.web.vo.stat.SampledResponseTime) SampledAgentStatResultExtractor(com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor) Range(com.navercorp.pinpoint.web.vo.Range) ResponseTimeBo(com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)

Aggregations

ResponseTimeBo (com.navercorp.pinpoint.common.server.bo.stat.ResponseTimeBo)9 AgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo)2 PResponseTime (com.navercorp.pinpoint.grpc.trace.PResponseTime)1 TFResponseTime (com.navercorp.pinpoint.thrift.dto.flink.TFResponseTime)1 SampledAgentStatResultExtractor (com.navercorp.pinpoint.web.mapper.stat.SampledAgentStatResultExtractor)1 Range (com.navercorp.pinpoint.web.vo.Range)1 Point (com.navercorp.pinpoint.web.vo.chart.Point)1 SampledResponseTime (com.navercorp.pinpoint.web.vo.stat.SampledResponseTime)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1