use of org.apache.skywalking.apm.collector.storage.ui.common.ResponseTimeTrend 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.ui.common.ResponseTimeTrend in project incubator-skywalking by apache.
the class ServiceNameService method getServiceResponseTimeTrend.
public ResponseTimeTrend getServiceResponseTimeTrend(int serviceId, Step step, long startTimeBucket, long endTimeBucket) throws ParseException {
ResponseTimeTrend responseTimeTrend = new ResponseTimeTrend();
List<DurationPoint> durationPoints = DurationUtils.INSTANCE.getDurationPoints(step, startTimeBucket, endTimeBucket);
responseTimeTrend.setTrendList(serviceMetricUIDAO.getServiceResponseTimeTrend(serviceId, step, durationPoints));
return responseTimeTrend;
}
Aggregations