mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 18:07:57 +00:00
Add a few more fields to frontend metric batch API (#567)
This commit is contained in:
parent
68bb73f4a7
commit
4f9f7fc513
@ -434,6 +434,11 @@ public class MetricsDAO extends AbstractMySQLOpenSourceDAO
|
||||
metric.id = (int)row.get("metric_id");
|
||||
metric.name = (String)row.get("metric_name");
|
||||
metric.description = (String)row.get("metric_description");
|
||||
Integer sourceId = (Integer) row.get("metric_source_dataset_id");
|
||||
metric.sourceDatasetId = sourceId == null ? 0 : new Long(sourceId);
|
||||
metric.owners = (String) row.get("owners");
|
||||
metric.tags = (String) row.get("tags");
|
||||
metric.urn = (String) row.get("urn");
|
||||
metric.refID = (String)row.get("metric_ref_id");
|
||||
metric.refIDType = (String)row.get("metric_ref_id_type");
|
||||
metric.dashboardName = (String)row.get("dashboard_name");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user