src/main/java/com/capitalone/dashboard/event/TestResultEventListener.java
/**
     * Creates new performance object from test result
     * @param testResult, testCapability, perfCollectorItem
     */
Creates new performance object from test result
@param testResult, testCapability, perfCollectorItem
Creates new performance object from test result @param testResult testCapability perfCollectorItem
public Performance createPerformanceDoc(TestResult testResult, TestCapability testCapability, CollectorItem perfCollectorItem) {
        Performance performance = new Performance();
        performance.setId(ObjectId.get());
        performance.setCollectorItemId(perfCollectorItem.getId());
        performance.setType(PerformanceType.ApplicationPerformance);
        performance.setUrl(testResult.getUrl());
        performance.setTimestamp(System.currentTimeMillis());
        performance.setTargetAppName(testResult.getTargetAppName());
        performance.setTargetEnvName(testResult.getTargetEnvName());
        performance.setMetrics(getPerfMetrics(testCapability));
        return performanceRepository.save(performance);
    }
public Performance createPerformanceDoc ( TestResult testResult , TestCapability testCapability , CollectorItem perfCollectorItem ) { Performance performance = new Performance ( ) ; performance . setId ( ObjectId . get ( ) ) ; performance . setCollectorItemId ( perfCollectorItem . getId ( ) ) ; performance . setType ( PerformanceType . ApplicationPerformance ) ; performance . setUrl ( testResult . getUrl ( ) ) ; performance . setTimestamp ( System . currentTimeMillis ( ) ) ; performance . setTargetAppName ( testResult . getTargetAppName ( ) ) ; performance . setTargetEnvName ( testResult . getTargetEnvName ( ) ) ; performance . setMetrics ( getPerfMetrics ( testCapability ) ) ; return performanceRepository . save ( performance ) ; }
Creates new performance object from test result
 @param testResult, testCapability, perfCollectorItem
Creates new performance object from test result @param testResult testCapability perfCollectorItem