All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.repository.TestResultRepository Maven / Gradle / Ivy

package com.capitalone.dashboard.repository;

import com.capitalone.dashboard.model.TestResult;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * Repository for {@link TestResult} data.
 */
public interface TestResultRepository extends QueryRepository {

    /**
     * Finds the {@link TestResult} with the given execution ID for a specific
     * {@link com.capitalone.dashboard.model.CollectorItem}.
     *
     * @param collectorItemId collector item ID
     * @param executionId execution ID
     * @return a TestSuite
     */
    TestResult findByCollectorItemIdAndExecutionId(ObjectId collectorItemId, String executionId);

    TestResult findByCollectorItemId(ObjectId collectorItemId);

    TestResult findTop1ByCollectorItemIdOrderByTimestampDesc(ObjectId collectorItemId);

    List findByUrlAndTimestampGreaterThanEqualAndTimestampLessThanEqual(String jobUrl,long beginDt,long endDt);
    List findByCollectorItemIdAndTimestampIsBetweenOrderByTimestampDesc(ObjectId collectorItemId, long beginDate, long endDate);

    List findByTimestampIsAfterAndTargetEnvNameExists(long timestamp, boolean isTargetEnvNameExists);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy