use of org.apache.skywalking.apm.collector.storage.utils.DurationPoint in project incubator-skywalking by apache.
the class ServiceNameService method getServiceSLATrend.
public SLATrend getServiceSLATrend(int serviceId, Step step, long startTimeBucket, long endTimeBucket) throws ParseException {
SLATrend slaTrend = new SLATrend();
List<DurationPoint> durationPoints = DurationUtils.INSTANCE.getDurationPoints(step, startTimeBucket, endTimeBucket);
slaTrend.setTrendList(serviceMetricUIDAO.getServiceSLATrend(serviceId, step, durationPoints));
return slaTrend;
}
use of org.apache.skywalking.apm.collector.storage.utils.DurationPoint in project incubator-skywalking by apache.
the class ServerService method getGCTrend.
public GCTrend getGCTrend(int instanceId, Step step, long startTimeBucket, long endTimeBucket) throws ParseException {
GCTrend gcTrend = new GCTrend();
List<DurationPoint> durationPoints = DurationUtils.INSTANCE.getDurationPoints(step, startTimeBucket, endTimeBucket);
List<Integer> youngGCTrend = gcMetricUIDAO.getYoungGCTrend(instanceId, step, durationPoints);
gcTrend.setYoungGC(youngGCTrend);
List<Integer> oldGCTrend = gcMetricUIDAO.getOldGCTrend(instanceId, step, durationPoints);
gcTrend.setOldGC(oldGCTrend);
return gcTrend;
}
use of org.apache.skywalking.apm.collector.storage.utils.DurationPoint in project incubator-skywalking by apache.
the class ServerService method getServerResponseTimeTrend.
public ResponseTimeTrend getServerResponseTimeTrend(int instanceId, Step step, long startTimeBucket, long endTimeBucket) throws ParseException {
ResponseTimeTrend responseTimeTrend = new ResponseTimeTrend();
List<DurationPoint> durationPoints = DurationUtils.INSTANCE.getDurationPoints(step, startTimeBucket, endTimeBucket);
List<Integer> trends = instanceMetricUIDAO.getResponseTimeTrend(instanceId, step, durationPoints);
responseTimeTrend.setTrendList(trends);
return responseTimeTrend;
}
use of org.apache.skywalking.apm.collector.storage.utils.DurationPoint in project incubator-skywalking by apache.
the class ServerService method getServerTPSTrend.
public ThroughputTrend getServerTPSTrend(int instanceId, Step step, long startTimeBucket, long endTimeBucket) throws ParseException {
ThroughputTrend throughputTrend = new ThroughputTrend();
List<DurationPoint> durationPoints = DurationUtils.INSTANCE.getDurationPoints(step, startTimeBucket, endTimeBucket);
List<Integer> trends = instanceMetricUIDAO.getServerTPSTrend(instanceId, step, durationPoints);
throughputTrend.setTrendList(trends);
return throughputTrend;
}
use of org.apache.skywalking.apm.collector.storage.utils.DurationPoint 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