Search in sources :

Example 1 with StatChart

use of com.navercorp.pinpoint.web.vo.stat.chart.StatChart in project pinpoint by naver.

the class ActiveTraceChartService method selectAgentChartList.

@Override
public List<StatChart> selectAgentChartList(String agentId, TimeWindow timeWindow) {
    StatChart agentStatChart = selectAgentChart(agentId, timeWindow);
    List<StatChart> result = new ArrayList<>(1);
    result.add(agentStatChart);
    return result;
}
Also used : ArrayList(java.util.ArrayList) StatChart(com.navercorp.pinpoint.web.vo.stat.chart.StatChart)

Example 2 with StatChart

use of com.navercorp.pinpoint.web.vo.stat.chart.StatChart in project pinpoint by naver.

the class DataSourceChartService method selectAgentChartList.

@Override
public List<StatChart> selectAgentChartList(String agentId, TimeWindow timeWindow) {
    Objects.requireNonNull(agentId, "agentId");
    Objects.requireNonNull(timeWindow, "timeWindow");
    List<SampledDataSourceList> sampledAgentStatList = this.sampledDataSourceDao.getSampledAgentStatList(agentId, timeWindow);
    if (CollectionUtils.isEmpty(sampledAgentStatList)) {
        List<StatChart> result = new ArrayList<>(1);
        result.add(new DataSourceChart(timeWindow, Collections.emptyList(), serviceTypeRegistryService));
        return result;
    } else {
        List<StatChart> result = new ArrayList<>(sampledAgentStatList.size());
        for (SampledDataSourceList sampledDataSourceList : sampledAgentStatList) {
            result.add(new DataSourceChart(timeWindow, sampledDataSourceList.getSampledDataSourceList(), serviceTypeRegistryService));
        }
        return result;
    }
}
Also used : SampledDataSourceList(com.navercorp.pinpoint.web.vo.stat.SampledDataSourceList) DataSourceChart(com.navercorp.pinpoint.web.vo.stat.chart.agent.DataSourceChart) ArrayList(java.util.ArrayList) StatChart(com.navercorp.pinpoint.web.vo.stat.chart.StatChart)

Example 3 with StatChart

use of com.navercorp.pinpoint.web.vo.stat.chart.StatChart in project pinpoint by naver.

the class TotalThreadCountChartService method selectAgentChartList.

@Override
public List<StatChart> selectAgentChartList(String agentId, TimeWindow timeWindow) {
    StatChart agentStatChart = selectAgentChart(agentId, timeWindow);
    List<StatChart> result = new ArrayList<>(1);
    result.add(agentStatChart);
    return result;
}
Also used : ArrayList(java.util.ArrayList) StatChart(com.navercorp.pinpoint.web.vo.stat.chart.StatChart)

Example 4 with StatChart

use of com.navercorp.pinpoint.web.vo.stat.chart.StatChart in project pinpoint by naver.

the class TransactionChartService method selectAgentChartList.

@Override
public List<StatChart> selectAgentChartList(String agentId, TimeWindow timeWindow) {
    StatChart agentStatChart = selectAgentChart(agentId, timeWindow);
    List<StatChart> result = new ArrayList<>(1);
    result.add(agentStatChart);
    return result;
}
Also used : ArrayList(java.util.ArrayList) StatChart(com.navercorp.pinpoint.web.vo.stat.chart.StatChart)

Example 5 with StatChart

use of com.navercorp.pinpoint.web.vo.stat.chart.StatChart in project pinpoint by naver.

the class DirectBufferChartService method selectAgentChartList.

@Override
public List<StatChart> selectAgentChartList(String agentId, TimeWindow timeWindow) {
    StatChart agentStatChart = selectAgentChart(agentId, timeWindow);
    List<StatChart> result = new ArrayList<>(1);
    result.add(agentStatChart);
    return result;
}
Also used : ArrayList(java.util.ArrayList) StatChart(com.navercorp.pinpoint.web.vo.stat.chart.StatChart)

Aggregations

StatChart (com.navercorp.pinpoint.web.vo.stat.chart.StatChart)14 ArrayList (java.util.ArrayList)13 DataSourceKey (com.navercorp.pinpoint.common.server.bo.stat.join.JoinDataSourceListBo.DataSourceKey)1 AggreJoinDataSourceListBo (com.navercorp.pinpoint.web.vo.stat.AggreJoinDataSourceListBo)1 SampledAgentUriStat (com.navercorp.pinpoint.web.vo.stat.SampledAgentUriStat)1 SampledDataSourceList (com.navercorp.pinpoint.web.vo.stat.SampledDataSourceList)1 AgentUriStatChart (com.navercorp.pinpoint.web.vo.stat.chart.agent.AgentUriStatChart)1 DataSourceChart (com.navercorp.pinpoint.web.vo.stat.chart.agent.DataSourceChart)1 ApplicationDataSourceChart (com.navercorp.pinpoint.web.vo.stat.chart.application.ApplicationDataSourceChart)1