use of org.apache.skywalking.apm.collector.storage.ui.server.CPUTrend in project incubator-skywalking by apache.
the class ServerService method getCPUTrend.
public CPUTrend getCPUTrend(int instanceId, Step step, long startTimeBucket, long endTimeBucket) throws ParseException {
CPUTrend cpuTrend = new CPUTrend();
List<DurationPoint> durationPoints = DurationUtils.INSTANCE.getDurationPoints(step, startTimeBucket, endTimeBucket);
List<Integer> trends = cpuMetricUIDAO.getCPUTrend(instanceId, step, durationPoints);
cpuTrend.setCost(trends);
return cpuTrend;
}
Aggregations