Handle h = db.open();
try {
List<Map<String, Object>> rows = h.createQuery(METRIC_DEF_SQL).list();
List<SubAlarmMetricDefinition> metricDefs = new ArrayList<>(rows.size());
for (Map<String, Object> row : rows) {
<BUG>String subAlarmId = (String) row.get("id");
String metric_name = (String) row.get("metric_name");</BUG>
String dimensionSet = (String) row.get("dimensions");
Map<String, String> dimensions = null;
if (dimensionSet != null) {

Handle h = db.open();
try {
List<Map<String, Object>> rows = h.createQuery(METRIC_DEF_SQL).list();
List<SubAlarmMetricDefinition> metricDefs = new ArrayList<>(rows.size());
for (Map<String, Object> row : rows) {
String subAlarmId = (String) row.get("id");
String tenantId = (String) row.get("tenant_id");
String metric_name = (String) row.get("metric_name");
String dimensionSet = (String) row.get("dimensions");
Map<String, String> dimensions = null;
if (dimensionSet != null) {
