Search in sources :

Example 6 with DurationPoint

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

Example 7 with DurationPoint

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

Example 8 with DurationPoint

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

Example 9 with DurationPoint

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

Example 10 with DurationPoint

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

Aggregations

DurationPoint (org.apache.skywalking.apm.collector.storage.utils.DurationPoint)17 ElasticSearchClient (org.apache.skywalking.apm.collector.client.elasticsearch.ElasticSearchClient)8 MultiGetItemResponse (org.elasticsearch.action.get.MultiGetItemResponse)8 MultiGetRequestBuilder (org.elasticsearch.action.get.MultiGetRequestBuilder)8 MultiGetResponse (org.elasticsearch.action.get.MultiGetResponse)8 LinkedList (java.util.LinkedList)4 ResponseTimeTrend (org.apache.skywalking.apm.collector.storage.ui.common.ResponseTimeTrend)2 ThroughputTrend (org.apache.skywalking.apm.collector.storage.ui.common.ThroughputTrend)2 HashMap (java.util.HashMap)1 IMemoryMetricUIDAO (org.apache.skywalking.apm.collector.storage.dao.ui.IMemoryMetricUIDAO)1 Application (org.apache.skywalking.apm.collector.storage.ui.application.Application)1 SLATrend (org.apache.skywalking.apm.collector.storage.ui.common.SLATrend)1 AlarmTrend (org.apache.skywalking.apm.collector.storage.ui.overview.AlarmTrend)1 CPUTrend (org.apache.skywalking.apm.collector.storage.ui.server.CPUTrend)1 GCTrend (org.apache.skywalking.apm.collector.storage.ui.server.GCTrend)1 MemoryTrend (org.apache.skywalking.apm.collector.storage.ui.server.MemoryTrend)1