Search in sources :

Example 1 with CPUTrend

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;
}
Also used : CPUTrend(org.apache.skywalking.apm.collector.storage.ui.server.CPUTrend) DurationPoint(org.apache.skywalking.apm.collector.storage.utils.DurationPoint)

Aggregations

CPUTrend (org.apache.skywalking.apm.collector.storage.ui.server.CPUTrend)1 DurationPoint (org.apache.skywalking.apm.collector.storage.utils.DurationPoint)1