Search in sources :

Example 1 with RawAnomalyResultManager

use of com.linkedin.thirdeye.datalayer.bao.RawAnomalyResultManager in project pinot by linkedin.

the class DetectionTaskRunner method storeData.

private void storeData(AnomalyDetectionOutputContext anomalyDetectionOutputContext) {
    RawAnomalyResultManager rawAnomalyDAO = DAO_REGISTRY.getRawAnomalyResultDAO();
    MergedAnomalyResultManager mergedAmomalyDAO = DAO_REGISTRY.getMergedAnomalyResultDAO();
    for (RawAnomalyResultDTO rawAnomalyResultDTO : anomalyDetectionOutputContext.getRawAnomalies().values()) {
        rawAnomalyDAO.save(rawAnomalyResultDTO);
    }
    for (MergedAnomalyResultDTO mergedAnomalyResultDTO : anomalyDetectionOutputContext.getMergedAnomalies().values()) {
        mergedAmomalyDAO.update(mergedAnomalyResultDTO);
    }
}
Also used : RawAnomalyResultDTO(com.linkedin.thirdeye.datalayer.dto.RawAnomalyResultDTO) MergedAnomalyResultDTO(com.linkedin.thirdeye.datalayer.dto.MergedAnomalyResultDTO) RawAnomalyResultManager(com.linkedin.thirdeye.datalayer.bao.RawAnomalyResultManager) MergedAnomalyResultManager(com.linkedin.thirdeye.datalayer.bao.MergedAnomalyResultManager)

Aggregations

MergedAnomalyResultManager (com.linkedin.thirdeye.datalayer.bao.MergedAnomalyResultManager)1 RawAnomalyResultManager (com.linkedin.thirdeye.datalayer.bao.RawAnomalyResultManager)1 MergedAnomalyResultDTO (com.linkedin.thirdeye.datalayer.dto.MergedAnomalyResultDTO)1 RawAnomalyResultDTO (com.linkedin.thirdeye.datalayer.dto.RawAnomalyResultDTO)1