Search in sources :

Example 1 with GenerateClustersRq

use of com.epam.ta.reportportal.core.analyzer.auto.client.model.cluster.GenerateClustersRq in project service-api by reportportal.

the class AnalyzerClusterDataProvider method getGenerateRq.

private Optional<GenerateClustersRq> getGenerateRq(GenerateClustersConfig config) {
    return launchPreparerService.prepare(config.getLaunchId(), config.getAnalyzerConfig()).map(indexLaunch -> {
        final GenerateClustersRq generateClustersRq = new GenerateClustersRq();
        generateClustersRq.setLaunch(indexLaunch);
        generateClustersRq.setProject(config.getProject());
        generateClustersRq.setCleanNumbers(config.isCleanNumbers());
        generateClustersRq.setForUpdate(config.isForUpdate());
        generateClustersRq.setNumberOfLogLines(config.getAnalyzerConfig().getNumberOfLogLines());
        return generateClustersRq;
    });
}
Also used : GenerateClustersRq(com.epam.ta.reportportal.core.analyzer.auto.client.model.cluster.GenerateClustersRq)

Aggregations

GenerateClustersRq (com.epam.ta.reportportal.core.analyzer.auto.client.model.cluster.GenerateClustersRq)1