Search in sources :

Example 16 with ResponseTime

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;
}
Also used : ResponseTime(com.navercorp.pinpoint.web.vo.ResponseTime) NodeHistogram(com.navercorp.pinpoint.web.applicationmap.histogram.NodeHistogram)

Example 17 with ResponseTime

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;
}
Also used : ResponseTime(com.navercorp.pinpoint.web.vo.ResponseTime) NodeHistogram(com.navercorp.pinpoint.web.applicationmap.histogram.NodeHistogram)

Example 18 with ResponseTime

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);
}
Also used : TimeViewModel(com.navercorp.pinpoint.web.view.TimeViewModel) ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter) ResponseTime(com.navercorp.pinpoint.web.vo.ResponseTime) Application(com.navercorp.pinpoint.web.vo.Application) Test(org.junit.Test)

Aggregations

ResponseTime (com.navercorp.pinpoint.web.vo.ResponseTime)18 Application (com.navercorp.pinpoint.web.vo.Application)7 Range (com.navercorp.pinpoint.web.vo.Range)5 ArrayList (java.util.ArrayList)5 Test (org.junit.Test)5 NodeHistogram (com.navercorp.pinpoint.web.applicationmap.histogram.NodeHistogram)4 Buffer (com.navercorp.pinpoint.common.buffer.Buffer)2 ServiceType (com.navercorp.pinpoint.common.trace.ServiceType)2 TimeViewModel (com.navercorp.pinpoint.web.view.TimeViewModel)2 ResponseHistograms (com.navercorp.pinpoint.web.vo.ResponseHistograms)2 Cell (org.apache.hadoop.hbase.Cell)2 JsonFactory (com.fasterxml.jackson.core.JsonFactory)1 JsonGenerator (com.fasterxml.jackson.core.JsonGenerator)1 ObjectWriter (com.fasterxml.jackson.databind.ObjectWriter)1 AutomaticBuffer (com.navercorp.pinpoint.common.buffer.AutomaticBuffer)1 FixedBuffer (com.navercorp.pinpoint.common.buffer.FixedBuffer)1 SimpleAgentKey (com.navercorp.pinpoint.common.server.bo.SimpleAgentKey)1 SpanBo (com.navercorp.pinpoint.common.server.bo.SpanBo)1 SpanEventBo (com.navercorp.pinpoint.common.server.bo.SpanEventBo)1 HistogramSlot (com.navercorp.pinpoint.common.trace.HistogramSlot)1