ai-default.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. import i18n from '@/locales'
  2. export default {
  3. system: {
  4. options: [
  5. { id: 'dashboard-system-default', name: i18n.t('dashboard.text_121') },
  6. ],
  7. 'dashboard-system-default': [{
  8. layout: {
  9. component: 'NumberCard',
  10. h: 6,
  11. w: 20,
  12. x: 0,
  13. y: 0,
  14. },
  15. params: {
  16. chart_type: 'icon',
  17. icon: 'icon_cpu',
  18. name: i18n.t('dashboard.container_server_count'),
  19. regionAccountType: 'region',
  20. usage_key: 'all.containers',
  21. },
  22. }, {
  23. layout: {
  24. component: 'NumberCard',
  25. h: 6,
  26. w: 20,
  27. x: 20,
  28. y: 0,
  29. },
  30. params: {
  31. name: i18n.t('dashboard.running_containers_count'),
  32. regionAccountType: 'region',
  33. usage_key: 'all.running_containers',
  34. },
  35. }, {
  36. layout: {
  37. component: 'NumberCard',
  38. h: 6,
  39. w: 20,
  40. x: 40,
  41. y: 0,
  42. },
  43. params: {
  44. chart_type: 'icon',
  45. icon: 'icon_tenant',
  46. name: i18n.t('usage.hosts'),
  47. regionAccountType: 'region',
  48. usage_key: 'hosts',
  49. },
  50. }, {
  51. layout: {
  52. component: 'UserInfo',
  53. h: 6,
  54. w: 20,
  55. x: 60,
  56. y: 0,
  57. },
  58. params: {
  59. name: i18n.t('dashboard.userinfo'),
  60. },
  61. }, {
  62. layout: {
  63. component: 'NumberCard',
  64. h: 6,
  65. w: 20,
  66. x: 0,
  67. y: 6,
  68. },
  69. params: {
  70. chart_type: 'icon',
  71. icon: 'icon_ram',
  72. name: i18n.t('dashboard.container_server_cpu_num'),
  73. regionAccountType: 'region',
  74. usage_key: 'all.containers.cpu',
  75. },
  76. }, {
  77. layout: {
  78. component: 'NumberCard',
  79. h: 6,
  80. w: 20,
  81. x: 20,
  82. y: 6,
  83. },
  84. params: {
  85. chart_type: 'icon',
  86. icon: 'icon_cpu',
  87. name: i18n.t('dashboard.running_containers_cpu_num'),
  88. regionAccountType: 'region',
  89. usage_key: 'all.running_containers.cpu',
  90. },
  91. }, {
  92. layout: {
  93. component: 'NumberCard',
  94. h: 6,
  95. w: 20,
  96. x: 40,
  97. y: 6,
  98. },
  99. params: {
  100. chart_type: 'icon',
  101. icon: 'icon_baremetal',
  102. name: i18n.t('dashboard.containers_memory'),
  103. regionAccountType: 'region',
  104. usage_key: 'all.containers.memory',
  105. },
  106. }, {
  107. layout: {
  108. component: 'NumberCard',
  109. h: 6,
  110. w: 20,
  111. x: 60,
  112. y: 6,
  113. },
  114. params: {
  115. chart_type: 'icon',
  116. icon: 'icon_ram',
  117. name: i18n.t('dashboard.running_containers_memory_num'),
  118. regionAccountType: 'region',
  119. usage_key: 'all.running_containers.memory',
  120. },
  121. }, {
  122. layout: {
  123. component: 'Ring',
  124. h: 5,
  125. w: 20,
  126. x: 0,
  127. y: 12,
  128. },
  129. params: {
  130. all_usage_key: 'all.containers',
  131. chart_type: 'liquidfill',
  132. name: i18n.t('dashboard.container_server_running_rate'),
  133. regionAccountType: 'region',
  134. un_usage_label: i18n.t('dashboard.all.no_running_servers'),
  135. usage_key: 'all.running_containers',
  136. usage_label: i18n.t('dashboard.all.running_servers'),
  137. },
  138. }, {
  139. layout: {
  140. component: 'Ring',
  141. h: 5,
  142. w: 20,
  143. x: 20,
  144. y: 12,
  145. },
  146. params: {
  147. all_usage_key: 'all.disks.count',
  148. chart_type: 'liquidfill',
  149. name: i18n.t('dashboard.text_147'),
  150. regionAccountType: 'region',
  151. un_usage_label: i18n.t('dashboard.not_mounted'),
  152. usage_key: 'all.disks.mounted.count',
  153. usage_label: i18n.t('dashboard.mounted'),
  154. },
  155. }, {
  156. layout: {
  157. component: 'Ring',
  158. h: 5,
  159. w: 20,
  160. x: 40,
  161. y: 12,
  162. },
  163. params: {
  164. all_usage_key: 'all.ports',
  165. chart_type: 'liquidfill',
  166. name: i18n.t('dashboard.text_152'),
  167. regionAccountType: 'region',
  168. un_usage_label: i18n.t('dashboard.text_34'),
  169. usage_key: 'all.nics',
  170. usage_label: i18n.t('dashboard.text_33'),
  171. },
  172. }, {
  173. layout: {
  174. component: 'Ring',
  175. h: 5,
  176. w: 20,
  177. x: 60,
  178. y: 12,
  179. },
  180. params: {
  181. all_usage_key: 'all.eip.floating_ip',
  182. chart_type: 'liquidfill',
  183. name: i18n.t('dashboard.text_156'),
  184. regionAccountType: 'region',
  185. un_usage_label: i18n.t('dashboard.text_34'),
  186. usage_key: 'all.eip.floating_ip.used',
  187. usage_label: i18n.t('dashboard.text_33'),
  188. },
  189. }, {
  190. layout: {
  191. component: 'Top5',
  192. h: 8,
  193. w: 20,
  194. x: 0,
  195. y: 17,
  196. },
  197. params: {
  198. brand: '',
  199. dimensionId: 'vm_id',
  200. limit: 5,
  201. name: i18n.t('dashboard.text_126'),
  202. order: 'TOP',
  203. resType: 'server',
  204. time: 108000,
  205. usage: 'usage_active,vm_cpu',
  206. },
  207. }, {
  208. layout: {
  209. component: 'Top5',
  210. h: 8,
  211. w: 20,
  212. x: 20,
  213. y: 17,
  214. },
  215. params: {
  216. brand: '',
  217. dimensionId: 'vm_id',
  218. limit: 5,
  219. name: i18n.t('dashboard.memory_use_rate_top5'),
  220. order: 'TOP',
  221. resType: 'server',
  222. time: 604800,
  223. usage: 'used_percent,vm_mem',
  224. },
  225. }, {
  226. layout: {
  227. component: 'Top5',
  228. h: 8,
  229. w: 20,
  230. x: 40,
  231. y: 17,
  232. },
  233. params: {
  234. brand: '',
  235. dimensionId: 'vm_id',
  236. limit: 5,
  237. name: i18n.t('dashboard.disk_use_rate_top5'),
  238. order: 'TOP',
  239. resType: 'server',
  240. time: 604800,
  241. usage: 'used_percent,vm_disk',
  242. },
  243. }, {
  244. layout: {
  245. component: 'Top5',
  246. h: 8,
  247. w: 20,
  248. x: 60,
  249. y: 17,
  250. },
  251. params: {
  252. brand: '',
  253. dimensionId: 'vm_id',
  254. limit: 5,
  255. name: i18n.t('dashboard.net.recv.top5'),
  256. order: 'TOP',
  257. resType: 'server',
  258. time: 1440,
  259. usage: 'bps_recv,vm_netio',
  260. },
  261. }],
  262. },
  263. domain: {
  264. options: [
  265. { id: 'dashboard-domain-default', name: i18n.t('dashboard.text_121') },
  266. ],
  267. 'dashboard-domain-default': [{
  268. layout: {
  269. component: 'NumberCard',
  270. h: 6,
  271. w: 20,
  272. x: 0,
  273. y: 0,
  274. },
  275. params: {
  276. chart_type: 'icon',
  277. icon: 'icon_cpu',
  278. name: i18n.t('usage.domain.containers'),
  279. regionAccountType: 'region',
  280. usage_key: 'domain.containers',
  281. },
  282. }, {
  283. layout: {
  284. component: 'NumberCard',
  285. h: 6,
  286. w: 20,
  287. x: 20,
  288. y: 0,
  289. },
  290. params: {
  291. chart_type: 'icon',
  292. icon: 'icon_tenant',
  293. name: i18n.t('dashboard.host_total_num'),
  294. regionAccountType: 'region',
  295. usage_key: 'domain.hosts',
  296. },
  297. }, {
  298. layout: {
  299. component: 'NumberCard',
  300. h: 6,
  301. w: 20,
  302. x: 40,
  303. y: 0,
  304. },
  305. params: {
  306. chart_type: 'icon',
  307. icon: 'icon_baremetal',
  308. name: i18n.t('dashboard.running_containers_count'),
  309. regionAccountType: 'region',
  310. usage_key: 'domain.running_containers',
  311. },
  312. }, {
  313. layout: {
  314. component: 'UserInfo',
  315. h: 6,
  316. w: 20,
  317. x: 60,
  318. y: 0,
  319. },
  320. params: {
  321. name: i18n.t('dashboard.userinfo'),
  322. },
  323. }, {
  324. layout: {
  325. component: 'NumberCard',
  326. h: 6,
  327. w: 20,
  328. x: 0,
  329. y: 6,
  330. },
  331. params: {
  332. chart_type: 'icon',
  333. icon: 'icon_ram',
  334. name: i18n.t('dashboard.container_server_cpu_num'),
  335. regionAccountType: 'region',
  336. usage_key: 'domain.containers.cpu',
  337. },
  338. }, {
  339. layout: {
  340. component: 'NumberCard',
  341. h: 6,
  342. w: 20,
  343. x: 20,
  344. y: 6,
  345. },
  346. params: {
  347. chart_type: 'icon',
  348. icon: 'icon_baremetal',
  349. name: i18n.t('dashboard.containers_memory'),
  350. regionAccountType: 'region',
  351. unit: 'auto',
  352. usage_key: 'domain.containers.memory',
  353. },
  354. }, {
  355. layout: {
  356. component: 'NumberCard',
  357. h: 6,
  358. w: 20,
  359. x: 40,
  360. y: 6,
  361. },
  362. params: {
  363. chart_type: 'icon',
  364. icon: 'icon_cpu',
  365. name: i18n.t('dashboard.running_containers_cpu_num'),
  366. regionAccountType: 'region',
  367. unit: 'auto',
  368. usage_key: 'domain.running_containers.cpu',
  369. },
  370. }, {
  371. layout: {
  372. component: 'NumberCard',
  373. h: 6,
  374. w: 20,
  375. x: 60,
  376. y: 6,
  377. },
  378. params: {
  379. chart_type: 'icon',
  380. icon: 'icon_tenant',
  381. name: i18n.t('dashboard.running_containers_memory_num'),
  382. regionAccountType: 'region',
  383. usage_key: 'domain.running_containers.memory',
  384. },
  385. }, {
  386. layout: {
  387. component: 'Ring',
  388. h: 5,
  389. w: 20,
  390. x: 0,
  391. y: 12,
  392. },
  393. params: {
  394. all_usage_key: 'domain.servers',
  395. chart_type: 'liquidfill',
  396. name: i18n.t('dashboard.all.running_servers_rate'),
  397. regionAccountType: 'region',
  398. un_usage_label: i18n.t('dashboard.all.no_running_servers'),
  399. usage_key: 'domain.running_servers',
  400. usage_label: i18n.t('dashboard.all.running_servers'),
  401. },
  402. }, {
  403. layout: {
  404. component: 'Ring',
  405. h: 5,
  406. w: 20,
  407. x: 20,
  408. y: 12,
  409. },
  410. params: {
  411. all_usage_key: 'domain.disks.count',
  412. chart_type: 'liquidfill',
  413. name: i18n.t('dashboard.text_147'),
  414. regionAccountType: 'region',
  415. un_usage_label: i18n.t('dashboard.not_mounted'),
  416. usage_key: 'domain.disks.mounted.count',
  417. usage_label: i18n.t('dashboard.mounted'),
  418. },
  419. }, {
  420. layout: {
  421. component: 'Ring',
  422. h: 5,
  423. w: 20,
  424. x: 40,
  425. y: 12,
  426. },
  427. params: {
  428. all_usage_key: 'domain.ports',
  429. chart_type: 'liquidfill',
  430. name: i18n.t('dashboard.text_152'),
  431. regionAccountType: 'region',
  432. un_usage_label: i18n.t('dashboard.text_34'),
  433. usage_key: 'domain.nics',
  434. usage_label: i18n.t('dashboard.text_33'),
  435. },
  436. }, {
  437. layout: {
  438. component: 'Ring',
  439. h: 5,
  440. w: 20,
  441. x: 60,
  442. y: 12,
  443. },
  444. params: {
  445. all_usage_key: 'domain.eip.floating_ip',
  446. chart_type: 'liquidfill',
  447. name: i18n.t('dashboard.text_156'),
  448. regionAccountType: 'region',
  449. un_usage_label: i18n.t('dashboard.text_34'),
  450. usage_key: 'domain.eip.floating_ip.used',
  451. usage_label: i18n.t('dashboard.text_33'),
  452. },
  453. }, {
  454. layout: {
  455. component: 'Top5',
  456. h: 10,
  457. w: 20,
  458. x: 0,
  459. y: 17,
  460. },
  461. params: {
  462. brand: '',
  463. dimensionId: 'vm_id',
  464. limit: 5,
  465. name: i18n.t('dashboard.text_126'),
  466. order: 'TOP',
  467. resType: 'server',
  468. time: 604800,
  469. usage: 'usage_active,vm_cpu',
  470. },
  471. }, {
  472. layout: {
  473. component: 'Top5',
  474. h: 10,
  475. w: 20,
  476. x: 20,
  477. y: 17,
  478. },
  479. params: {
  480. brand: '',
  481. dimensionId: 'vm_id',
  482. limit: 5,
  483. name: i18n.t('dashboard.memory_use_rate_top5'),
  484. order: 'TOP',
  485. resType: 'server',
  486. time: 604800,
  487. usage: 'used_percent,vm_mem',
  488. },
  489. }, {
  490. layout: {
  491. component: 'Top5',
  492. h: 10,
  493. w: 20,
  494. x: 40,
  495. y: 17,
  496. },
  497. params: {
  498. brand: '',
  499. dimensionId: 'vm_id',
  500. limit: 5,
  501. name: i18n.t('dashboard.disk_use_rate_top5'),
  502. order: 'TOP',
  503. resType: 'server',
  504. time: 604800,
  505. usage: 'used_percent,vm_disk',
  506. },
  507. }, {
  508. layout: {
  509. component: 'Top5',
  510. h: 8,
  511. w: 20,
  512. x: 60,
  513. y: 17,
  514. },
  515. params: {
  516. brand: '',
  517. dimensionId: 'vm_id',
  518. limit: 5,
  519. name: i18n.t('dashboard.net.recv.top5'),
  520. order: 'TOP',
  521. resType: 'server',
  522. time: 1440,
  523. usage: 'bps_recv,vm_netio',
  524. },
  525. }],
  526. },
  527. project: {
  528. options: [
  529. { id: 'dashboard-project-default', name: i18n.t('dashboard.text_121') },
  530. ],
  531. 'dashboard-project-default': [{
  532. layout: {
  533. component: 'NumberCard',
  534. h: 6,
  535. w: 20,
  536. x: 0,
  537. y: 0,
  538. },
  539. params: {
  540. chart_type: 'icon',
  541. icon: 'icon_cpu',
  542. name: i18n.t('dashboard.container_server_count'),
  543. regionAccountType: 'region',
  544. usage_key: 'containers',
  545. },
  546. }, {
  547. layout: {
  548. component: 'NumberCard',
  549. h: 6,
  550. w: 20,
  551. x: 20,
  552. y: 0,
  553. },
  554. params: {
  555. chart_type: 'icon',
  556. icon: 'icon_tenant',
  557. name: i18n.t('dashboard.disk_num'),
  558. regionAccountType: 'region',
  559. usage_key: 'disks.count',
  560. },
  561. }, {
  562. layout: {
  563. component: 'NumberCard',
  564. h: 6,
  565. w: 20,
  566. x: 40,
  567. y: 0,
  568. },
  569. params: {
  570. chart_type: 'icon',
  571. icon: 'icon_baremetal',
  572. name: i18n.t('dashboard.snapshot_num'),
  573. regionAccountType: 'region',
  574. usage_key: 'snapshot',
  575. },
  576. }, {
  577. layout: {
  578. component: 'UserInfo',
  579. h: 6,
  580. w: 20,
  581. x: 60,
  582. y: 0,
  583. },
  584. params: {
  585. name: i18n.t('dashboard.userinfo'),
  586. },
  587. }, {
  588. layout: {
  589. component: 'NumberCard',
  590. h: 6,
  591. w: 20,
  592. x: 0,
  593. y: 6,
  594. },
  595. params: {
  596. chart_type: 'icon',
  597. icon: 'icon_ram',
  598. name: i18n.t('dashboard.container_server_cpu_num'),
  599. regionAccountType: 'region',
  600. usage_key: 'containers.cpu',
  601. },
  602. }, {
  603. layout: {
  604. component: 'NumberCard',
  605. h: 6,
  606. w: 20,
  607. x: 20,
  608. y: 6,
  609. },
  610. params: {
  611. chart_type: 'icon',
  612. icon: 'icon_baremetal',
  613. name: i18n.t('dashboard.containers_memory'),
  614. regionAccountType: 'region',
  615. unit: 'auto',
  616. usage_key: 'containers.memory',
  617. },
  618. }, {
  619. layout: {
  620. component: 'NumberCard',
  621. h: 6,
  622. w: 20,
  623. x: 40,
  624. y: 6,
  625. },
  626. params: {
  627. chart_type: 'icon',
  628. icon: 'icon_cpu',
  629. name: i18n.t('dashboard.running_containers_cpu_num'),
  630. regionAccountType: 'region',
  631. unit: 'auto',
  632. usage_key: 'running_containers.cpu',
  633. },
  634. }, {
  635. layout: {
  636. component: 'NumberCard',
  637. h: 6,
  638. w: 20,
  639. x: 60,
  640. y: 6,
  641. },
  642. params: {
  643. chart_type: 'icon',
  644. icon: 'icon_tenant',
  645. name: i18n.t('dashboard.running_containers_memory_num'),
  646. regionAccountType: 'region',
  647. usage_key: 'running_containers.memory',
  648. },
  649. }, {
  650. layout: {
  651. component: 'Ring',
  652. h: 5,
  653. w: 20,
  654. x: 0,
  655. y: 12,
  656. },
  657. params: {
  658. all_usage_key: 'servers',
  659. chart_type: 'liquidfill',
  660. name: i18n.t('dashboard.all.running_servers_rate'),
  661. regionAccountType: 'region',
  662. un_usage_label: i18n.t('dashboard.all.no_running_servers'),
  663. usage_key: 'running_servers',
  664. usage_label: i18n.t('dashboard.all.running_servers'),
  665. },
  666. }, {
  667. layout: {
  668. component: 'Ring',
  669. h: 5,
  670. w: 20,
  671. x: 20,
  672. y: 12,
  673. },
  674. params: {
  675. all_usage_key: 'disks.count',
  676. chart_type: 'liquidfill',
  677. name: i18n.t('dashboard.text_147'),
  678. regionAccountType: 'region',
  679. un_usage_label: i18n.t('dashboard.not_mounted'),
  680. usage_key: 'disks.mounted.count',
  681. usage_label: i18n.t('dashboard.mounted'),
  682. },
  683. }, {
  684. layout: {
  685. component: 'Ring',
  686. h: 5,
  687. w: 20,
  688. x: 40,
  689. y: 12,
  690. },
  691. params: {
  692. all_usage_key: 'ports',
  693. chart_type: 'liquidfill',
  694. name: i18n.t('dashboard.text_152'),
  695. regionAccountType: 'region',
  696. un_usage_label: i18n.t('dashboard.text_34'),
  697. usage_key: 'nics',
  698. usage_label: i18n.t('dashboard.text_33'),
  699. },
  700. }, {
  701. layout: {
  702. component: 'Ring',
  703. h: 5,
  704. w: 20,
  705. x: 60,
  706. y: 12,
  707. },
  708. params: {
  709. all_usage_key: 'eip.floating_ip',
  710. chart_type: 'liquidfill',
  711. name: i18n.t('dashboard.text_156'),
  712. regionAccountType: 'region',
  713. un_usage_label: i18n.t('dashboard.text_34'),
  714. usage_key: 'eip.floating_ip.used',
  715. usage_label: i18n.t('dashboard.text_33'),
  716. },
  717. }, {
  718. layout: {
  719. component: 'Top5',
  720. h: 8,
  721. w: 20,
  722. x: 0,
  723. y: 17,
  724. },
  725. params: {
  726. brand: '',
  727. dimensionId: 'vm_id',
  728. limit: 5,
  729. name: i18n.t('dashboard.text_126'),
  730. order: 'TOP',
  731. resType: 'server',
  732. time: 604800,
  733. usage: 'usage_active,vm_cpu',
  734. },
  735. }, {
  736. layout: {
  737. component: 'Top5',
  738. h: 8,
  739. w: 20,
  740. x: 20,
  741. y: 17,
  742. },
  743. params: {
  744. brand: '',
  745. dimensionId: 'vm_id',
  746. limit: 5,
  747. name: i18n.t('dashboard.memory_use_rate_top5'),
  748. order: 'TOP',
  749. resType: 'server',
  750. time: 604800,
  751. usage: 'used_percent,vm_mem',
  752. },
  753. }, {
  754. layout: {
  755. component: 'Top5',
  756. h: 8,
  757. w: 20,
  758. x: 40,
  759. y: 17,
  760. },
  761. params: {
  762. brand: '',
  763. dimensionId: 'vm_id',
  764. limit: 5,
  765. name: i18n.t('dashboard.disk_use_rate_top5'),
  766. order: 'TOP',
  767. resType: 'server',
  768. time: 18000,
  769. usage: 'used_percent,vm_disk',
  770. },
  771. }, {
  772. layout: {
  773. component: 'Top5',
  774. h: 8,
  775. w: 20,
  776. x: 60,
  777. y: 17,
  778. },
  779. params: {
  780. brand: '',
  781. dimensionId: 'vm_id',
  782. limit: 5,
  783. name: i18n.t('dashboard.net.recv.top5'),
  784. order: 'TOP',
  785. resType: 'server',
  786. time: 1440,
  787. usage: 'bps_recv,vm_netio',
  788. },
  789. }, {
  790. layout: {
  791. component: 'ProjectQuota',
  792. h: 6,
  793. w: 20,
  794. x: 0,
  795. y: 25,
  796. },
  797. params: {
  798. all_usage_key: 'cpu',
  799. name: i18n.t('dashboard.cpu_quota'),
  800. type: 'project-quota-common',
  801. usage_key: 'usage.cpu',
  802. },
  803. }, {
  804. layout: {
  805. component: 'ProjectQuota',
  806. h: 6,
  807. w: 20,
  808. x: 20,
  809. y: 25,
  810. },
  811. params: {
  812. all_usage_key: 'memory',
  813. name: i18n.t('dashboard.memory_quota'),
  814. type: 'project-quota-common',
  815. usage_key: 'usage.memory',
  816. },
  817. }, {
  818. layout: {
  819. component: 'ProjectQuota',
  820. h: 6,
  821. w: 20,
  822. x: 40,
  823. y: 25,
  824. },
  825. params: {
  826. all_usage_key: 'storage',
  827. name: i18n.t('dashboard.storage_quota'),
  828. type: 'project-quota-common',
  829. usage_key: 'usage.storage',
  830. },
  831. }, {
  832. layout: {
  833. component: 'ProjectQuota',
  834. h: 6,
  835. w: 20,
  836. x: 60,
  837. y: 25,
  838. },
  839. params: {
  840. all_usage_key: 'eip',
  841. name: i18n.t('dashboard.eip_quota'),
  842. type: 'project-quota-region',
  843. usage_key: 'usage.eip',
  844. },
  845. }, {
  846. layout: {
  847. component: 'ProjectQuota',
  848. h: 6,
  849. w: 20,
  850. x: 0,
  851. y: 31,
  852. },
  853. params: {
  854. all_usage_key: 'port',
  855. name: i18n.t('dashboard.port_quota'),
  856. type: 'project-quota-region',
  857. usage_key: 'usage.port',
  858. },
  859. }, {
  860. layout: {
  861. component: 'ProjectQuota',
  862. h: 6,
  863. w: 20,
  864. x: 20,
  865. y: 31,
  866. },
  867. params: {
  868. all_usage_key: 'isolated_device',
  869. name: i18n.t('dashboard.gpu_quota'),
  870. type: 'project-quota-common',
  871. usage_key: 'usage.isolated_device',
  872. },
  873. }, {
  874. layout: {
  875. component: 'ProjectQuota',
  876. h: 6,
  877. w: 20,
  878. x: 40,
  879. y: 31,
  880. },
  881. params: {
  882. all_usage_key: 'image',
  883. name: i18n.t('dashboard.image_quota'),
  884. type: 'project-quota-image',
  885. usage_key: 'usage.image',
  886. },
  887. }, {
  888. layout: {
  889. component: 'ProjectQuota',
  890. h: 6,
  891. w: 20,
  892. x: 60,
  893. y: 31,
  894. },
  895. params: {
  896. all_usage_key: 'snapshot',
  897. name: i18n.t('dashboard.snapshot_quota'),
  898. type: 'project-quota-region',
  899. usage_key: 'usage.snapshot',
  900. },
  901. }],
  902. },
  903. }