code: private StandardUnit getMetricUnit(final String metricName) {
          String result = null;
  
          if (metricName.equals(Constants.CPU_UTILIZATION)) {
              result = Constants.UNIT_PERCENT;
          } else if (metricName.equals(Constants.DISK_READ_BYTES)) {
              result = Constants.UNIT_BYTES;
          } else if (metricName.equals(Constants.DISK_READ_OPS)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.DISK_WRITE_BYTES)) {
              result = Constants.UNIT_BYTES;
          } else if (metricName.equals(Constants.DISK_WRITE_OPS)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.NETWORK_IN)) {
              result = Constants.UNIT_BYTES;
          } else if (metricName.equals(Constants.NETWORK_OUT)) {
              result = Constants.UNIT_BYTES;
          } else if (metricName.equals(Constants.NETWORK_PACKETS_IN)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.NETWORK_PACKETS_OUT)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.STATUS_CHECK_FAILED)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.STATUS_CHECK_FAILED_INSTANCE)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.STATUS_CHECK_FAILED_SYSTEM)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.CPU_CREDIT_USAGE)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.ESTIMATED_CHARGES)) {
              result = Constants.UNIT_COUNT;
          } else if (metricName.equals(Constants.CPU_CREDIT_BALANCE)) {
              result = Constants.UNIT_COUNT;
          }
  
          return StandardUnit.fromValue(result);
      }
docs: Get the Metric Unit.
  
  @param metricName
  Metric Name parameter.
  @return Standard Unit Value.