Search in sources :

Example 1 with ResponseTimeTrend

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

Example 2 with 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;
}
Also used : ResponseTimeTrend(org.apache.skywalking.apm.collector.storage.ui.common.ResponseTimeTrend) DurationPoint(org.apache.skywalking.apm.collector.storage.utils.DurationPoint)

Aggregations

ResponseTimeTrend (org.apache.skywalking.apm.collector.storage.ui.common.ResponseTimeTrend)2 DurationPoint (org.apache.skywalking.apm.collector.storage.utils.DurationPoint)2