use of com.linkedin.thirdeye.datalayer.pojo.IngraphMetricConfigBean in project pinot by linkedin.
the class IngraphMetricConfigManagerImpl method findByDashboard.
@Override
public List<IngraphMetricConfigDTO> findByDashboard(String dashboardName) {
Predicate predicate = Predicate.EQ("dashboardName", dashboardName);
List<IngraphMetricConfigBean> list = genericPojoDao.get(predicate, IngraphMetricConfigBean.class);
List<IngraphMetricConfigDTO> result = new ArrayList<>();
for (IngraphMetricConfigBean abstractBean : list) {
IngraphMetricConfigDTO dto = MODEL_MAPPER.map(abstractBean, IngraphMetricConfigDTO.class);
result.add(dto);
}
return result;
}
use of com.linkedin.thirdeye.datalayer.pojo.IngraphMetricConfigBean in project pinot by linkedin.
the class IngraphMetricConfigManagerImpl method findByDashboardAndMetricName.
@Override
public IngraphMetricConfigDTO findByDashboardAndMetricName(String dashboardName, String metricName) {
Predicate dashboardPredicate = Predicate.EQ("dashboardName", dashboardName);
Predicate metricPredicate = Predicate.EQ("metricName", metricName);
List<IngraphMetricConfigBean> list = genericPojoDao.get(Predicate.AND(dashboardPredicate, metricPredicate), IngraphMetricConfigBean.class);
IngraphMetricConfigDTO result = null;
if (CollectionUtils.isNotEmpty(list)) {
result = MODEL_MAPPER.map(list.get(0), IngraphMetricConfigDTO.class);
}
return result;
}
use of com.linkedin.thirdeye.datalayer.pojo.IngraphMetricConfigBean 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;
}
Aggregations