use of com.navercorp.pinpoint.web.vo.ResponseTime in project pinpoint by naver.
the class ResponseHistogramsNodeHistogramDataSource method createNodeHistogram.
@Override
public NodeHistogram createNodeHistogram(Application application, Range range) {
List<ResponseTime> responseTimes = responseHistograms.getResponseTimeList(application);
final NodeHistogram nodeHistogram = new NodeHistogram(application, range, responseTimes);
return nodeHistogram;
}
use of com.navercorp.pinpoint.web.vo.ResponseTime in project pinpoint by naver.
the class MapResponseNodeHistogramDataSource method createNodeHistogram.
@Override
public NodeHistogram createNodeHistogram(Application application, Range range) {
List<ResponseTime> responseTimes = mapResponseDao.selectResponseTime(application, range);
final NodeHistogram nodeHistogram = new NodeHistogram(application, range, responseTimes);
return nodeHistogram;
}
use of com.navercorp.pinpoint.web.vo.ResponseTime in project pinpoint by naver.
the class ApplicationTimeHistogramTest method testViewModel.
@Test
public void testViewModel() throws IOException {
Application app = new Application("test", ServiceType.STAND_ALONE);
ApplicationTimeHistogramBuilder builder = new ApplicationTimeHistogramBuilder(app, Range.newRange(0, 10 * 6000));
List<ResponseTime> responseHistogramList = createResponseTime(app);
ApplicationTimeHistogram histogram = builder.build(responseHistogramList);
List<TimeViewModel> viewModel = histogram.createViewModel(TimeHistogramFormat.V1);
logger.debug("{}", viewModel);
ObjectWriter writer = mapper.writer();
String s = writer.writeValueAsString(viewModel);
logger.debug(s);
}
Aggregations