Search in sources :

Example 1 with ThroughputTrend

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

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

Aggregations

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