default.js 22 KB

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