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);
}
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;
}
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);
}
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);
}
Aggregations