public-default.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  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. {
  9. layout: {
  10. component: 'NumberCard',
  11. h: 6,
  12. w: 20,
  13. x: 0,
  14. y: 0,
  15. },
  16. params: {
  17. name: i18n.t('dashboard.text_130'),
  18. regionAccountType: 'region',
  19. usage_key: 'all.servers',
  20. },
  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.text_136'),
  32. regionAccountType: 'region',
  33. usage_key: 'hosts',
  34. },
  35. },
  36. {
  37. layout: {
  38. component: 'NumberCard',
  39. h: 6,
  40. w: 20,
  41. x: 40,
  42. y: 0,
  43. },
  44. params: {
  45. name: i18n.t('dashboard.text_134'),
  46. regionAccountType: 'region',
  47. usage_key: 'baremetals',
  48. },
  49. },
  50. {
  51. layout: {
  52. component: 'NumberCard',
  53. h: 6,
  54. w: 20,
  55. x: 60,
  56. y: 0,
  57. },
  58. params: {
  59. name: i18n.t('dashboard.text_154'),
  60. regionAccountType: 'region',
  61. usage_key: 'all.buckets',
  62. },
  63. },
  64. {
  65. layout: {
  66. component: 'NumberCard',
  67. h: 6,
  68. w: 20,
  69. x: 0,
  70. y: 6,
  71. },
  72. params: {
  73. name: i18n.t('dashboard.text_122'),
  74. regionAccountType: 'region',
  75. usage_key: 'all.servers.cpu',
  76. },
  77. },
  78. {
  79. layout: {
  80. component: 'NumberCard',
  81. h: 6,
  82. w: 20,
  83. x: 20,
  84. y: 6,
  85. },
  86. params: {
  87. name: i18n.t('dashboard.text_127'),
  88. regionAccountType: 'region',
  89. usage_key: 'all.servers.memory',
  90. },
  91. },
  92. {
  93. layout: {
  94. component: 'NumberCard',
  95. h: 6,
  96. w: 20,
  97. x: 40,
  98. y: 6,
  99. },
  100. params: {
  101. name: i18n.t('dashboard.text_123'),
  102. regionAccountType: 'region',
  103. usage_key: 'all.servers.disk',
  104. },
  105. },
  106. {
  107. layout: {
  108. component: 'NumberCard',
  109. h: 6,
  110. w: 20,
  111. x: 60,
  112. y: 6,
  113. },
  114. params: {
  115. name: i18n.t('dashboard.text_158'),
  116. regionAccountType: 'region',
  117. usage_key: 'all.bucket_bytes',
  118. },
  119. },
  120. {
  121. layout: {
  122. component: 'Ring',
  123. h: 6,
  124. w: 20,
  125. x: 0,
  126. y: 12,
  127. },
  128. params: {
  129. all_usage_key: 'hosts.cpu',
  130. chart_type: 'liquidfill',
  131. color: 'default',
  132. name: i18n.t('dashboard.text_135'),
  133. regionAccountType: 'region',
  134. un_usage_label: i18n.t('dashboard.text_34'),
  135. usage_key: 'all.servers.cpu',
  136. usage_label: i18n.t('dashboard.text_33'),
  137. },
  138. },
  139. {
  140. layout: {
  141. component: 'Ring',
  142. h: 6,
  143. w: 20,
  144. x: 20,
  145. y: 12,
  146. },
  147. params: {
  148. all_usage_key: 'hosts.memory',
  149. chart_type: 'liquidfill',
  150. color: 'default',
  151. name: i18n.t('dashboard.text_132'),
  152. regionAccountType: 'region',
  153. un_usage_label: i18n.t('dashboard.text_34'),
  154. usage_key: 'all.servers.memory',
  155. usage_label: i18n.t('dashboard.text_33'),
  156. },
  157. },
  158. {
  159. layout: {
  160. component: 'Ring',
  161. h: 6,
  162. w: 20,
  163. x: 40,
  164. y: 12,
  165. },
  166. params: {
  167. all_usage_key: 'storages',
  168. chart_type: 'liquidfill',
  169. color: 'default',
  170. name: i18n.t('dashboard.text_128'),
  171. regionAccountType: 'region',
  172. un_usage_label: i18n.t('dashboard.text_34'),
  173. usage_key: 'all.servers.disk',
  174. usage_label: i18n.t('dashboard.text_33'),
  175. },
  176. },
  177. {
  178. layout: {
  179. component: 'Ring',
  180. h: 6,
  181. w: 20,
  182. x: 60,
  183. y: 12,
  184. },
  185. params: {
  186. all_usage_key: 'isolated_devices',
  187. chart_type: 'liquidfill',
  188. color: 'default',
  189. name: i18n.t('dashboard.text_129'),
  190. regionAccountType: 'region',
  191. un_usage_label: i18n.t('dashboard.text_34'),
  192. usage_key: 'all.servers.isolated_devices',
  193. usage_label: i18n.t('dashboard.text_33'),
  194. },
  195. },
  196. {
  197. layout: {
  198. component: 'Ring',
  199. h: 6,
  200. w: 20,
  201. x: 0,
  202. y: 18,
  203. },
  204. params: {
  205. all_usage_key: 'all.eip.floating_ip',
  206. chart_type: 'liquidfill',
  207. color: 'reverse',
  208. name: i18n.t('dashboard.text_156'),
  209. regionAccountType: 'region',
  210. un_usage_label: i18n.t('dashboard.text_34'),
  211. usage_key: 'all.eip.floating_ip.used',
  212. usage_label: i18n.t('dashboard.text_33'),
  213. },
  214. },
  215. {
  216. layout: {
  217. component: 'Ring',
  218. h: 6,
  219. w: 20,
  220. x: 20,
  221. y: 18,
  222. },
  223. params: {
  224. all_usage_key: 'all.ports',
  225. chart_type: 'liquidfill',
  226. color: 'default',
  227. name: i18n.t('dashboard.text_152'),
  228. regionAccountType: 'region',
  229. un_usage_label: i18n.t('dashboard.text_34'),
  230. usage_key: 'all.nics',
  231. usage_label: i18n.t('dashboard.text_33'),
  232. },
  233. },
  234. {
  235. layout: {
  236. component: 'Ring',
  237. h: 6,
  238. w: 20,
  239. x: 40,
  240. y: 18,
  241. },
  242. params: {
  243. all_usage_key: 'all.servers',
  244. chart_type: 'liquidfill',
  245. color: 'default',
  246. name: i18n.t('dashboard.text_151'),
  247. regionAccountType: 'region',
  248. un_usage_label: i18n.t('dashboard.not_shutdown'),
  249. usage_key: 'all.ready_servers',
  250. usage_label: i18n.t('dashboard.shutdown'),
  251. },
  252. },
  253. {
  254. layout: {
  255. component: 'Ring',
  256. h: 6,
  257. w: 20,
  258. x: 60,
  259. y: 18,
  260. },
  261. params: {
  262. all_usage_key: 'all.disks.count',
  263. chart_type: 'liquidfill',
  264. color: 'reverse',
  265. name: i18n.t('dashboard.text_147'),
  266. regionAccountType: 'region',
  267. un_usage_label: i18n.t('dashboard.not_mounted'),
  268. usage_key: 'all.disks.mounted.count',
  269. usage_label: i18n.t('dashboard.mounted'),
  270. },
  271. },
  272. {
  273. layout: {
  274. component: 'Top5',
  275. h: 8,
  276. w: 20,
  277. x: 0,
  278. y: 24,
  279. },
  280. params: {
  281. brand: '',
  282. limit: 5,
  283. name: i18n.t('dashboard.text_126'),
  284. order: 'TOP',
  285. resType: 'server',
  286. time: 108000,
  287. usage: 'usage_active,vm_cpu',
  288. },
  289. },
  290. {
  291. layout: {
  292. component: 'Top5',
  293. h: 8,
  294. w: 20,
  295. x: 20,
  296. y: 24,
  297. },
  298. params: {
  299. brand: '',
  300. limit: 5,
  301. name: i18n.t('dashboard.text_133'),
  302. order: 'TOP',
  303. resType: 'server',
  304. time: 108000,
  305. usage: 'read_bps,vm_diskio',
  306. },
  307. },
  308. {
  309. layout: {
  310. component: 'Top5',
  311. h: 8,
  312. w: 20,
  313. x: 40,
  314. y: 24,
  315. },
  316. params: {
  317. brand: '',
  318. limit: 5,
  319. name: i18n.t('dashboard.text_125'),
  320. order: 'TOP',
  321. resType: 'server',
  322. time: 108000,
  323. usage: 'write_bps,vm_diskio',
  324. },
  325. },
  326. {
  327. layout: {
  328. component: 'Top5',
  329. h: 8,
  330. w: 20,
  331. x: 60,
  332. y: 24,
  333. },
  334. params: {
  335. brand: '',
  336. limit: 5,
  337. name: i18n.t('dashboard.net.send.top5'),
  338. order: 'TOP',
  339. resType: 'server',
  340. time: 108000,
  341. usage: 'bps_sent,vm_netio',
  342. },
  343. },
  344. ],
  345. },
  346. domain: {
  347. options: [
  348. { id: 'dashboard-domain-default', name: i18n.t('dashboard.text_121') },
  349. ],
  350. 'dashboard-domain-default': [
  351. {
  352. layout: {
  353. component: 'NumberCard',
  354. h: 6,
  355. w: 20,
  356. x: 0,
  357. y: 0,
  358. },
  359. params: {
  360. name: i18n.t('dashboard.text_130'),
  361. regionAccountType: 'region',
  362. usage_key: 'domain.servers',
  363. },
  364. },
  365. {
  366. layout: {
  367. component: 'NumberCard',
  368. h: 6,
  369. w: 20,
  370. x: 20,
  371. y: 0,
  372. },
  373. params: {
  374. name: i18n.t('dashboard.text_149'),
  375. regionAccountType: 'region',
  376. usage_key: 'domain.servers.cpu',
  377. },
  378. },
  379. {
  380. layout: {
  381. component: 'NumberCard',
  382. h: 6,
  383. w: 20,
  384. x: 40,
  385. y: 0,
  386. },
  387. params: {
  388. name: i18n.t('dashboard.text_157'),
  389. regionAccountType: 'region',
  390. usage_key: 'domain.servers.memory',
  391. },
  392. },
  393. {
  394. layout: {
  395. component: 'NumberCard',
  396. h: 6,
  397. w: 20,
  398. x: 60,
  399. y: 0,
  400. },
  401. params: {
  402. name: i18n.t('dashboard.memory_usage'),
  403. regionAccountType: 'region',
  404. usage_key: 'domain.disks',
  405. },
  406. },
  407. {
  408. layout: {
  409. component: 'Ring',
  410. h: 6,
  411. w: 20,
  412. x: 0,
  413. y: 6,
  414. },
  415. params: {
  416. all_usage_key: 'domain.servers',
  417. chart_type: 'liquidfill',
  418. color: 'default',
  419. name: i18n.t('dashboard.text_151'),
  420. regionAccountType: 'region',
  421. un_usage_label: i18n.t('dashboard.not_shutdown'),
  422. usage_key: 'domain.ready_servers',
  423. usage_label: i18n.t('dashboard.shutdown'),
  424. },
  425. },
  426. {
  427. layout: {
  428. component: 'Ring',
  429. h: 6,
  430. w: 20,
  431. x: 20,
  432. y: 6,
  433. },
  434. params: {
  435. all_usage_key: 'domain.disks.count',
  436. chart_type: 'liquidfill',
  437. color: 'default',
  438. name: i18n.t('dashboard.disks_unmounted'),
  439. regionAccountType: 'region',
  440. un_usage_label: i18n.t('dashboard.mounted'),
  441. usage_key: 'domain.disks.unmounted.count',
  442. usage_label: i18n.t('dashboard.not_mounted'),
  443. },
  444. },
  445. {
  446. layout: {
  447. component: 'Ring',
  448. h: 6,
  449. w: 20,
  450. x: 40,
  451. y: 6,
  452. },
  453. params: {
  454. all_usage_key: 'domain.ports',
  455. chart_type: 'liquidfill',
  456. color: 'default',
  457. name: i18n.t('dashboard.text_152'),
  458. regionAccountType: 'region',
  459. un_usage_label: i18n.t('dashboard.un_allocated'),
  460. usage_key: 'domain.nics',
  461. usage_label: i18n.t('dashboard.allocated'),
  462. },
  463. },
  464. {
  465. layout: {
  466. component: 'Ring',
  467. h: 6,
  468. w: 20,
  469. x: 60,
  470. y: 6,
  471. },
  472. params: {
  473. all_usage_key: 'domain.eip.floating_ip',
  474. chart_type: 'liquidfill',
  475. color: 'reverse',
  476. name: i18n.t('dashboard.text_156'),
  477. regionAccountType: 'region',
  478. un_usage_label: i18n.t('dashboard.text_34'),
  479. usage_key: 'domain.eip.floating_ip.used',
  480. usage_label: i18n.t('dashboard.text_33'),
  481. },
  482. },
  483. {
  484. layout: {
  485. component: 'Top5',
  486. h: 8,
  487. w: 20,
  488. x: 0,
  489. y: 12,
  490. },
  491. params: {
  492. brand: '',
  493. limit: 5,
  494. name: i18n.t('dashboard.text_126'),
  495. order: 'TOP',
  496. resType: 'server',
  497. time: 108000,
  498. usage: 'usage_active,vm_cpu',
  499. },
  500. },
  501. {
  502. layout: {
  503. component: 'Top5',
  504. h: 8,
  505. w: 20,
  506. x: 20,
  507. y: 12,
  508. },
  509. params: {
  510. brand: '',
  511. limit: 5,
  512. name: i18n.t('dashboard.text_133'),
  513. order: 'TOP',
  514. resType: 'server',
  515. time: 108000,
  516. usage: 'read_bps,vm_diskio',
  517. },
  518. },
  519. {
  520. layout: {
  521. component: 'Top5',
  522. h: 8,
  523. w: 20,
  524. x: 40,
  525. y: 12,
  526. },
  527. params: {
  528. brand: '',
  529. limit: 5,
  530. name: i18n.t('dashboard.text_125'),
  531. order: 'TOP',
  532. resType: 'server',
  533. time: 108000,
  534. usage: 'write_bps,vm_diskio',
  535. },
  536. },
  537. {
  538. layout: {
  539. component: 'UserInfo',
  540. h: 8,
  541. w: 20,
  542. x: 60,
  543. y: 12,
  544. },
  545. params: {
  546. name: i18n.t('dashboard.userinfo'),
  547. },
  548. },
  549. ],
  550. },
  551. project: {
  552. options: [
  553. { id: 'dashboard-project-default', name: i18n.t('dashboard.text_121') },
  554. ],
  555. 'dashboard-project-default': [
  556. {
  557. layout: {
  558. component: 'NumberCard',
  559. h: 6,
  560. w: 20,
  561. x: 0,
  562. y: 0,
  563. },
  564. params: {
  565. name: i18n.t('dashboard.text_130'),
  566. regionAccountType: 'region',
  567. usage_key: 'servers',
  568. },
  569. },
  570. {
  571. layout: {
  572. component: 'NumberCard',
  573. h: 6,
  574. w: 20,
  575. x: 20,
  576. y: 0,
  577. },
  578. params: {
  579. name: i18n.t('dashboard.text_149'),
  580. regionAccountType: 'region',
  581. usage_key: 'servers.cpu',
  582. },
  583. },
  584. {
  585. layout: {
  586. component: 'NumberCard',
  587. h: 6,
  588. w: 20,
  589. x: 40,
  590. y: 0,
  591. },
  592. params: {
  593. name: i18n.t('dashboard.text_157'),
  594. regionAccountType: 'region',
  595. usage_key: 'servers.memory',
  596. },
  597. },
  598. {
  599. layout: {
  600. component: 'NumberCard',
  601. h: 6,
  602. w: 20,
  603. x: 60,
  604. y: 0,
  605. },
  606. params: {
  607. name: i18n.t('dashboard.memory_usage'),
  608. regionAccountType: 'region',
  609. usage_key: 'disks',
  610. },
  611. },
  612. {
  613. layout: {
  614. component: 'Ring',
  615. h: 6,
  616. w: 20,
  617. x: 0,
  618. y: 6,
  619. },
  620. params: {
  621. all_usage_key: 'servers',
  622. chart_type: 'liquidfill',
  623. color: 'default',
  624. name: i18n.t('dashboard.text_151'),
  625. regionAccountType: 'region',
  626. un_usage_label: i18n.t('dashboard.not_shutdown'),
  627. usage_key: 'ready_servers',
  628. usage_label: i18n.t('dashboard.shutdown'),
  629. },
  630. },
  631. {
  632. layout: {
  633. component: 'Ring',
  634. h: 6,
  635. w: 20,
  636. x: 20,
  637. y: 6,
  638. },
  639. params: {
  640. all_usage_key: 'disks.count',
  641. chart_type: 'liquidfill',
  642. color: 'default',
  643. name: i18n.t('dashboard.disks_unmounted'),
  644. regionAccountType: 'region',
  645. un_usage_label: i18n.t('dashboard.mounted'),
  646. usage_key: 'disks.unmounted.count',
  647. usage_label: i18n.t('dashboard.not_mounted'),
  648. },
  649. },
  650. {
  651. layout: {
  652. component: 'Ring',
  653. h: 6,
  654. w: 20,
  655. x: 40,
  656. y: 6,
  657. },
  658. params: {
  659. all_usage_key: 'ports',
  660. chart_type: 'liquidfill',
  661. color: 'default',
  662. name: i18n.t('dashboard.text_152'),
  663. regionAccountType: 'region',
  664. un_usage_label: i18n.t('dashboard.un_allocated'),
  665. usage_key: 'nics',
  666. usage_label: i18n.t('dashboard.allocated'),
  667. },
  668. },
  669. {
  670. layout: {
  671. component: 'Ring',
  672. h: 6,
  673. w: 20,
  674. x: 60,
  675. y: 6,
  676. },
  677. params: {
  678. all_usage_key: 'eip.floating_ip',
  679. chart_type: 'liquidfill',
  680. color: 'reverse',
  681. name: i18n.t('dashboard.text_156'),
  682. regionAccountType: 'region',
  683. un_usage_label: i18n.t('dashboard.text_34'),
  684. usage_key: 'eip.floating_ip.used',
  685. usage_label: i18n.t('dashboard.text_33'),
  686. },
  687. },
  688. {
  689. layout: {
  690. component: 'Top5',
  691. h: 8,
  692. w: 20,
  693. x: 0,
  694. y: 12,
  695. },
  696. params: {
  697. brand: '',
  698. limit: 5,
  699. name: i18n.t('dashboard.text_126'),
  700. order: 'TOP',
  701. resType: 'server',
  702. time: 108000,
  703. usage: 'usage_active,vm_cpu',
  704. },
  705. },
  706. {
  707. layout: {
  708. component: 'Top5',
  709. h: 8,
  710. w: 20,
  711. x: 20,
  712. y: 12,
  713. },
  714. params: {
  715. brand: '',
  716. limit: 5,
  717. name: i18n.t('dashboard.text_133'),
  718. order: 'TOP',
  719. resType: 'server',
  720. time: 108000,
  721. usage: 'read_bps,vm_diskio',
  722. },
  723. },
  724. {
  725. layout: {
  726. component: 'Top5',
  727. h: 8,
  728. w: 20,
  729. x: 40,
  730. y: 12,
  731. },
  732. params: {
  733. brand: '',
  734. limit: 5,
  735. name: i18n.t('dashboard.text_125'),
  736. order: 'TOP',
  737. resType: 'server',
  738. time: 108000,
  739. usage: 'write_bps,vm_diskio',
  740. },
  741. },
  742. {
  743. layout: {
  744. component: 'UserInfo',
  745. h: 8,
  746. w: 20,
  747. x: 60,
  748. y: 12,
  749. },
  750. params: {
  751. name: i18n.t('dashboard.userinfo'),
  752. },
  753. },
  754. ],
  755. },
  756. }