Search in sources :

Example 1 with ApplicationTimeHistogramViewModel

use of com.navercorp.pinpoint.web.view.ApplicationTimeHistogramViewModel in project pinpoint by naver.

the class MapController method getResponseTimeHistogramData.

@RequestMapping(value = "/getResponseTimeHistogramData", method = RequestMethod.GET, params = "serviceTypeName")
@ResponseBody
public ApplicationTimeHistogramViewModel getResponseTimeHistogramData(@RequestParam("applicationName") String applicationName, @RequestParam("serviceTypeName") String serviceTypeName, @RequestParam("from") long from, @RequestParam("to") long to) {
    final Range range = new Range(from, to);
    dateLimit.limit(range);
    Application application = applicationFactory.createApplicationByTypeName(applicationName, serviceTypeName);
    ApplicationTimeHistogramViewModel applicationTimeHistogramViewModel = mapService.selectResponseTimeHistogramData(application, range);
    return applicationTimeHistogramViewModel;
}
Also used : ApplicationTimeHistogramViewModel(com.navercorp.pinpoint.web.view.ApplicationTimeHistogramViewModel) Range(com.navercorp.pinpoint.web.vo.Range) Application(com.navercorp.pinpoint.web.vo.Application) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Aggregations

ApplicationTimeHistogramViewModel (com.navercorp.pinpoint.web.view.ApplicationTimeHistogramViewModel)1 Application (com.navercorp.pinpoint.web.vo.Application)1 Range (com.navercorp.pinpoint.web.vo.Range)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1