use of com.navercorp.pinpoint.web.util.TimeWindowSlotCentricSampler in project pinpoint by naver.
the class AgentStatController method getAgentStatChart.
@GetMapping(value = "/chart")
public StatChart getAgentStatChart(@RequestParam("agentId") String agentId, @RequestParam("from") long from, @RequestParam("to") long to) {
TimeWindowSampler sampler = new TimeWindowSlotCentricSampler();
TimeWindow timeWindow = new TimeWindow(Range.newRange(from, to), sampler);
return this.agentStatChartService.selectAgentChart(agentId, timeWindow);
}
use of com.navercorp.pinpoint.web.util.TimeWindowSlotCentricSampler in project pinpoint by naver.
the class AgentStatController method getAgentStatChartList.
@GetMapping(value = "/chartList")
public List<StatChart> getAgentStatChartList(@RequestParam("agentId") String agentId, @RequestParam("from") long from, @RequestParam("to") long to) {
TimeWindowSampler sampler = new TimeWindowSlotCentricSampler();
TimeWindow timeWindow = new TimeWindow(Range.newRange(from, to), sampler);
return this.agentStatChartService.selectAgentChartList(agentId, timeWindow);
}
use of com.navercorp.pinpoint.web.util.TimeWindowSlotCentricSampler in project pinpoint by naver.
the class ApplicationStatController method getAgentStatChart.
@GetMapping()
public StatChart getAgentStatChart(@RequestParam("applicationId") String applicationId, @RequestParam("from") long from, @RequestParam("to") long to) {
TimeWindowSlotCentricSampler sampler = new TimeWindowSlotCentricSampler();
TimeWindow timeWindow = new TimeWindow(Range.newRange(from, to), sampler);
try {
return this.applicationStatChartService.selectApplicationChart(applicationId, timeWindow);
} catch (Exception e) {
logger.error("error", e);
throw e;
}
}
Aggregations