Search in sources :

Example 11 with IngraphMetricConfigDTO

use of com.linkedin.thirdeye.datalayer.dto.IngraphMetricConfigDTO in project pinot by linkedin.

the class IngraphMetricConfigManagerImpl method findByRrdName.

@Override
public IngraphMetricConfigDTO findByRrdName(String rrdName) {
    Predicate dashboardPredicate = Predicate.EQ("rrdName", rrdName);
    List<IngraphMetricConfigBean> list = genericPojoDao.get(dashboardPredicate, IngraphMetricConfigBean.class);
    IngraphMetricConfigDTO result = null;
    if (CollectionUtils.isNotEmpty(list)) {
        result = MODEL_MAPPER.map(list.get(0), IngraphMetricConfigDTO.class);
    }
    return result;
}
Also used : IngraphMetricConfigBean(com.linkedin.thirdeye.datalayer.pojo.IngraphMetricConfigBean) IngraphMetricConfigDTO(com.linkedin.thirdeye.datalayer.dto.IngraphMetricConfigDTO) Predicate(com.linkedin.thirdeye.datalayer.util.Predicate)

Aggregations

IngraphMetricConfigDTO (com.linkedin.thirdeye.datalayer.dto.IngraphMetricConfigDTO)11 Test (org.testng.annotations.Test)4 IngraphMetricConfigBean (com.linkedin.thirdeye.datalayer.pojo.IngraphMetricConfigBean)3 Predicate (com.linkedin.thirdeye.datalayer.util.Predicate)3 GET (javax.ws.rs.GET)3 Path (javax.ws.rs.Path)3 ArrayList (java.util.ArrayList)1 Produces (javax.ws.rs.Produces)1 ObjectNode (org.codehaus.jackson.node.ObjectNode)1