@Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{type=").append(type);
    sb.append(";properties=").append(properties);
    sb.append(";metric_count=").append(getMetrics().size());
    sb.append('}');
    
    return sb.toString();
  }
Return flat metric map without category
ambari-server/src/main/java/org/apache/ambari/server/state/stack/MetricDefinition.java