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