code: public boolean updateMetric(Metric metric) {
          String metricName = metric.getName();
          checkMetricIsEmpty(metricName);
          QueryPart<Metric> queryPart = new Query<Metric>("metrics")
                  .path(metricName, true);
          return httpClientManager.updateMetaData(queryPart, patch(metric));
      }
docs: update metric
  
  @param metric metric update fields
  @return is success