tree_test.go 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. var (
  8. sessionID = "37556f106c8eb7b495c7986e6339fabc "
  9. )
  10. func Test_Tree(t *testing.T) {
  11. Convey("test UserTree", t, func() {
  12. treeURI := d.c.ServiceTree.Host + _treeURI
  13. httpMock("GET", treeURI).Reply(200).JSON(getTreeJSONResponse)
  14. treeNode, err := d.UserTree(context.TODO(), sessionID)
  15. So(treeNode.Bilibili, ShouldNotBeNil)
  16. So(err, ShouldBeNil)
  17. })
  18. Convey("test TreeSon", t, func() {
  19. treeURI := d.c.ServiceTree.Host + _treeSon + "/bilibili.test.benchmark.jemeter"
  20. httpMock("GET", treeURI).Reply(200).JSON(getTreeSonJSONResponse)
  21. testSon, err := d.TreeSon(context.TODO(), sessionID, "test.benchmark.jemeter")
  22. So(testSon["dev"], ShouldNotBeNil)
  23. So(err, ShouldBeNil)
  24. })
  25. }
  26. var (
  27. getTreeSonJSONResponse = `{
  28. "code": 90000,
  29. "data": {
  30. "dev": {
  31. "id": 19024,
  32. "name": "dev",
  33. "alias": "研发环境",
  34. "uuid": "",
  35. "type": 5,
  36. "path": "bilibili.test.benchmark.jemeter.dev",
  37. "tags": {},
  38. "children": {
  39. "containers": {
  40. "id": 19029,
  41. "name": "containers",
  42. "alias": "容器",
  43. "uuid": "",
  44. "type": 6,
  45. "path": "bilibili.test.benchmark.jemeter.dev.containers",
  46. "tags": {},
  47. "children": null
  48. },
  49. "servers": {
  50. "id": 19028,
  51. "name": "servers",
  52. "alias": "物理机/虚机",
  53. "uuid": "",
  54. "type": 6,
  55. "path": "bilibili.test.benchmark.jemeter.dev.servers",
  56. "tags": {},
  57. "children": null
  58. }
  59. }
  60. },
  61. "fat1": {
  62. "id": 19023,
  63. "name": "fat1",
  64. "alias": "功能环境1",
  65. "uuid": "",
  66. "type": 5,
  67. "path": "bilibili.test.benchmark.jemeter.fat1",
  68. "tags": {},
  69. "children": {
  70. "containers": {
  71. "id": 19031,
  72. "name": "containers",
  73. "alias": "容器",
  74. "uuid": "",
  75. "type": 6,
  76. "path": "bilibili.test.benchmark.jemeter.fat1.containers",
  77. "tags": {},
  78. "children": null
  79. },
  80. "servers": {
  81. "id": 19030,
  82. "name": "servers",
  83. "alias": "物理机/虚机",
  84. "uuid": "",
  85. "type": 6,
  86. "path": "bilibili.test.benchmark.jemeter.fat1.servers",
  87. "tags": {},
  88. "children": null
  89. }
  90. }
  91. },
  92. "pre": {
  93. "id": 19025,
  94. "name": "pre",
  95. "alias": "预发布环境",
  96. "uuid": "",
  97. "type": 5,
  98. "path": "bilibili.test.benchmark.jemeter.pre",
  99. "tags": {},
  100. "children": {
  101. "containers": {
  102. "id": 19033,
  103. "name": "containers",
  104. "alias": "容器",
  105. "uuid": "",
  106. "type": 6,
  107. "path": "bilibili.test.benchmark.jemeter.pre.containers",
  108. "tags": {},
  109. "children": null
  110. },
  111. "servers": {
  112. "id": 19032,
  113. "name": "servers",
  114. "alias": "物理机/虚机",
  115. "uuid": "",
  116. "type": 6,
  117. "path": "bilibili.test.benchmark.jemeter.pre.servers",
  118. "tags": {},
  119. "children": null
  120. }
  121. }
  122. },
  123. "prod": {
  124. "id": 19026,
  125. "name": "prod",
  126. "alias": "生产环境",
  127. "uuid": "",
  128. "type": 5,
  129. "path": "bilibili.test.benchmark.jemeter.prod",
  130. "tags": {},
  131. "children": {
  132. "containers": {
  133. "id": 19035,
  134. "name": "containers",
  135. "alias": "容器",
  136. "uuid": "",
  137. "type": 6,
  138. "path": "bilibili.test.benchmark.jemeter.prod.containers",
  139. "tags": {},
  140. "children": null
  141. },
  142. "servers": {
  143. "id": 19034,
  144. "name": "servers",
  145. "alias": "物理机/虚机",
  146. "uuid": "",
  147. "type": 6,
  148. "path": "bilibili.test.benchmark.jemeter.prod.servers",
  149. "tags": {},
  150. "children": null
  151. }
  152. }
  153. },
  154. "uat": {
  155. "id": 19027,
  156. "name": "uat",
  157. "alias": "集成环境",
  158. "uuid": "",
  159. "type": 5,
  160. "path": "bilibili.test.benchmark.jemeter.uat",
  161. "tags": {},
  162. "children": {
  163. "containers": {
  164. "id": 19037,
  165. "name": "containers",
  166. "alias": "容器",
  167. "uuid": "",
  168. "type": 6,
  169. "path": "bilibili.test.benchmark.jemeter.uat.containers",
  170. "tags": {},
  171. "children": null
  172. },
  173. "servers": {
  174. "id": 19036,
  175. "name": "servers",
  176. "alias": "物理机/虚机",
  177. "uuid": "",
  178. "type": 6,
  179. "path": "bilibili.test.benchmark.jemeter.uat.servers",
  180. "tags": {},
  181. "children": null
  182. }
  183. }
  184. }
  185. },
  186. "message": "success",
  187. "status": 200
  188. }`
  189. getTreeJSONResponse = `{
  190. "code": 90000,
  191. "data": {
  192. "bilibili": {
  193. "id": 0,
  194. "name": "bilibili",
  195. "alias": "哔哩哔哩",
  196. "uuid": "",
  197. "type": 1,
  198. "path": "bilibili",
  199. "tags": {},
  200. "children": {
  201. "test": {
  202. "id": 5955,
  203. "name": "test",
  204. "alias": "测试",
  205. "uuid": "test-2ada099a07224352b5e9221ad4ddc373",
  206. "type": 2,
  207. "path": "bilibili.test",
  208. "tags": {},
  209. "children": {
  210. "benchmark": {
  211. "id": 19021,
  212. "name": "benchmark",
  213. "alias": "压测资源",
  214. "uuid": "benchmark-f4cc1103d72a4d4096bdc85874cc5a29",
  215. "type": 3,
  216. "path": "bilibili.test.benchmark",
  217. "tags": {},
  218. "children": {
  219. "jemeter": {
  220. "id": 19022,
  221. "name": "jemeter",
  222. "alias": "jemeter",
  223. "uuid": "jemeter-5d4a22f6f3fd4bcbaba86c46c6e7b6a4",
  224. "type": 4,
  225. "path": "bilibili.test.benchmark.jemeter",
  226. "tags": {
  227. "control_cmd": "jemeter",
  228. "deployment_path": "/data/app"
  229. },
  230. "children": {
  231. "dev": {
  232. "id": 19024,
  233. "name": "dev",
  234. "alias": "研发环境",
  235. "uuid": "dev-e5437fc11461420d946d0cb7cd0ffc59",
  236. "type": 5,
  237. "path": "bilibili.test.benchmark.jemeter.dev",
  238. "tags": {},
  239. "children": {
  240. "containers": {
  241. "id": 19029,
  242. "name": "containers",
  243. "alias": "容器",
  244. "uuid": "containers-7a02b0a32fb546f4ada932a827d20444",
  245. "type": 6,
  246. "path": "bilibili.test.benchmark.jemeter.dev.containers",
  247. "tags": {},
  248. "children": null
  249. },
  250. "servers": {
  251. "id": 19028,
  252. "name": "servers",
  253. "alias": "物理机/虚机",
  254. "uuid": "servers-9938880f2e2c4622b477de862b23ec7b",
  255. "type": 6,
  256. "path": "bilibili.test.benchmark.jemeter.dev.servers",
  257. "tags": {},
  258. "children": null
  259. }
  260. }
  261. },
  262. "fat1": {
  263. "id": 19023,
  264. "name": "fat1",
  265. "alias": "功能环境1",
  266. "uuid": "fat1-b88122ad1fef458c886c0178948a87a8",
  267. "type": 5,
  268. "path": "bilibili.test.benchmark.jemeter.fat1",
  269. "tags": {},
  270. "children": {
  271. "containers": {
  272. "id": 19031,
  273. "name": "containers",
  274. "alias": "容器",
  275. "uuid": "containers-33cc324b67a64bc4aa0575f18cbeff42",
  276. "type": 6,
  277. "path": "bilibili.test.benchmark.jemeter.fat1.containers",
  278. "tags": {},
  279. "children": null
  280. },
  281. "servers": {
  282. "id": 19030,
  283. "name": "servers",
  284. "alias": "物理机/虚机",
  285. "uuid": "servers-343fa23fa42d45a1ac393ec952dcbf18",
  286. "type": 6,
  287. "path": "bilibili.test.benchmark.jemeter.fat1.servers",
  288. "tags": {},
  289. "children": null
  290. }
  291. }
  292. },
  293. "pre": {
  294. "id": 19025,
  295. "name": "pre",
  296. "alias": "预发布环境",
  297. "uuid": "pre-a433b3727f014798895d1946b0c51026",
  298. "type": 5,
  299. "path": "bilibili.test.benchmark.jemeter.pre",
  300. "tags": {},
  301. "children": {
  302. "containers": {
  303. "id": 19033,
  304. "name": "containers",
  305. "alias": "容器",
  306. "uuid": "containers-970ff63cdcc64788ae243b56d15a8fd8",
  307. "type": 6,
  308. "path": "bilibili.test.benchmark.jemeter.pre.containers",
  309. "tags": {},
  310. "children": null
  311. },
  312. "servers": {
  313. "id": 19032,
  314. "name": "servers",
  315. "alias": "物理机/虚机",
  316. "uuid": "servers-f97188e365a147d88ada18832d1e770c",
  317. "type": 6,
  318. "path": "bilibili.test.benchmark.jemeter.pre.servers",
  319. "tags": {},
  320. "children": null
  321. }
  322. }
  323. },
  324. "prod": {
  325. "id": 19026,
  326. "name": "prod",
  327. "alias": "生产环境",
  328. "uuid": "prod-b76c6a33cebe4558a2fa765422865d58",
  329. "type": 5,
  330. "path": "bilibili.test.benchmark.jemeter.prod",
  331. "tags": {},
  332. "children": {
  333. "containers": {
  334. "id": 19035,
  335. "name": "containers",
  336. "alias": "容器",
  337. "uuid": "containers-15d14c05b4534e819283eab638f3d5bc",
  338. "type": 6,
  339. "path": "bilibili.test.benchmark.jemeter.prod.containers",
  340. "tags": {},
  341. "children": null
  342. },
  343. "servers": {
  344. "id": 19034,
  345. "name": "servers",
  346. "alias": "物理机/虚机",
  347. "uuid": "servers-0dddd51ae32245b9bc225243352c9b4f",
  348. "type": 6,
  349. "path": "bilibili.test.benchmark.jemeter.prod.servers",
  350. "tags": {},
  351. "children": null
  352. }
  353. }
  354. },
  355. "uat": {
  356. "id": 19027,
  357. "name": "uat",
  358. "alias": "集成环境",
  359. "uuid": "uat-067f55b050744f7d8c690c403334451d",
  360. "type": 5,
  361. "path": "bilibili.test.benchmark.jemeter.uat",
  362. "tags": {},
  363. "children": {
  364. "containers": {
  365. "id": 19037,
  366. "name": "containers",
  367. "alias": "容器",
  368. "uuid": "containers-f9441d14aa704f68b0dc1d976fa18bc6",
  369. "type": 6,
  370. "path": "bilibili.test.benchmark.jemeter.uat.containers",
  371. "tags": {},
  372. "children": null
  373. },
  374. "servers": {
  375. "id": 19036,
  376. "name": "servers",
  377. "alias": "物理机/虚机",
  378. "uuid": "servers-523da897f9b04876ba3ac28ee8762dea",
  379. "type": 6,
  380. "path": "bilibili.test.benchmark.jemeter.uat.servers",
  381. "tags": {},
  382. "children": null
  383. }
  384. }
  385. }
  386. }
  387. }
  388. }
  389. },
  390. "dev-kvm": {
  391. "id": 7865,
  392. "name": "dev-kvm",
  393. "alias": "研发环境资源",
  394. "uuid": "dev-kvm-5a3b22d2b95a446abb7e63269e5d25f9",
  395. "type": 3,
  396. "path": "bilibili.test.dev-kvm",
  397. "tags": {},
  398. "children": {
  399. "dev": {
  400. "id": 7867,
  401. "name": "dev",
  402. "alias": "dev",
  403. "uuid": "dev-4cbd43f292084e469fabd2329f87bf11",
  404. "type": 4,
  405. "path": "bilibili.test.dev-kvm.dev",
  406. "tags": {
  407. "control_cmd": "echo \"dev\"",
  408. "deployment_path": "/data/app",
  409. "ops": "谢楚平",
  410. "rds": "zhujie"
  411. },
  412. "children": {
  413. "dev": {
  414. "id": 8946,
  415. "name": "dev",
  416. "alias": "dev",
  417. "uuid": "dev-227cbf42a3c94b72bb20f63d290c75a6",
  418. "type": 5,
  419. "path": "bilibili.test.dev-kvm.dev.dev",
  420. "tags": null,
  421. "children": {
  422. "container": {
  423. "id": 8948,
  424. "name": "container",
  425. "alias": "container",
  426. "uuid": "container-ddfe445edf1b499d8900e87251e15646",
  427. "type": 6,
  428. "path": "bilibili.test.dev-kvm.dev.dev.container",
  429. "tags": null,
  430. "children": null
  431. },
  432. "server": {
  433. "id": 8947,
  434. "name": "server",
  435. "alias": "server",
  436. "uuid": "server-fb51fff776674c91a2f3bf36c6ddc15b",
  437. "type": 6,
  438. "path": "bilibili.test.dev-kvm.dev.dev.server",
  439. "tags": null,
  440. "children": null
  441. },
  442. "servers": {
  443. "id": 34007,
  444. "name": "servers",
  445. "alias": "物理机/虚机",
  446. "uuid": "servers-102bf2cd3d9148fa8493c64f9d0eab18",
  447. "type": 6,
  448. "path": "bilibili.test.dev-kvm.dev.dev.servers",
  449. "tags": {},
  450. "children": null
  451. }
  452. }
  453. },
  454. "fat": {
  455. "id": 7869,
  456. "name": "fat",
  457. "alias": "fat",
  458. "uuid": "fat-b895da4fb84642b8a979f091069b92b4",
  459. "type": 6,
  460. "path": "bilibili.test.dev-kvm.dev.fat",
  461. "tags": {},
  462. "children": null
  463. },
  464. "fat1": {
  465. "id": 30734,
  466. "name": "fat1",
  467. "alias": "功能环境1",
  468. "uuid": "fat1-208f265357014fe1bb0420fbbc02e98a",
  469. "type": 5,
  470. "path": "bilibili.test.dev-kvm.dev.fat1",
  471. "tags": {},
  472. "children": {
  473. "containers": {
  474. "id": 30735,
  475. "name": "containers",
  476. "alias": "容器",
  477. "uuid": "containers-abdb3effe2ce465788b772a05a9a3551",
  478. "type": 6,
  479. "path": "bilibili.test.dev-kvm.dev.fat1.containers",
  480. "tags": {},
  481. "children": null
  482. }
  483. }
  484. },
  485. "pre": {
  486. "id": 30724,
  487. "name": "pre",
  488. "alias": "预发布环境",
  489. "uuid": "pre-4c7dece6243749b08061c80c7a5e322f",
  490. "type": 5,
  491. "path": "bilibili.test.dev-kvm.dev.pre",
  492. "tags": {},
  493. "children": {
  494. "containers": {
  495. "id": 30725,
  496. "name": "containers",
  497. "alias": "容器",
  498. "uuid": "containers-5f90830141da430bbdcfbc3389887409",
  499. "type": 6,
  500. "path": "bilibili.test.dev-kvm.dev.pre.containers",
  501. "tags": {},
  502. "children": null
  503. }
  504. }
  505. },
  506. "prod": {
  507. "id": 30718,
  508. "name": "prod",
  509. "alias": "生产环境",
  510. "uuid": "prod-f7eebfb47ff14bf9ba4797c8ed87f7c2",
  511. "type": 5,
  512. "path": "bilibili.test.dev-kvm.dev.prod",
  513. "tags": {},
  514. "children": {
  515. "containers": {
  516. "id": 30719,
  517. "name": "containers",
  518. "alias": "容器",
  519. "uuid": "containers-4aaa5265236a4eaab44ff9636bd58d8b",
  520. "type": 6,
  521. "path": "bilibili.test.dev-kvm.dev.prod.containers",
  522. "tags": {},
  523. "children": null
  524. }
  525. }
  526. },
  527. "uat": {
  528. "id": 30730,
  529. "name": "uat",
  530. "alias": "集成环境",
  531. "uuid": "uat-63aeffb9d27343a8b5c2b754d9e23d8a",
  532. "type": 5,
  533. "path": "bilibili.test.dev-kvm.dev.uat",
  534. "tags": {},
  535. "children": {
  536. "containers": {
  537. "id": 30731,
  538. "name": "containers",
  539. "alias": "容器",
  540. "uuid": "containers-e5acd711ee2e481bbd8b817e097cb1d7",
  541. "type": 6,
  542. "path": "bilibili.test.dev-kvm.dev.uat.containers",
  543. "tags": {},
  544. "children": null
  545. }
  546. }
  547. }
  548. }
  549. },
  550. "ep-dnsmasq": {
  551. "id": 35658,
  552. "name": "ep-dnsmasq",
  553. "alias": "ep-dnsmasq",
  554. "uuid": "ep-dnsmasq-2e6cea76385744229a833dbba7f10a5b",
  555. "type": 4,
  556. "path": "bilibili.test.dev-kvm.ep-dnsmasq",
  557. "tags": {},
  558. "children": {
  559. "dev": {
  560. "id": 35659,
  561. "name": "dev",
  562. "alias": "研发环境",
  563. "uuid": "dev-2028315ea4ee497e8b6f8107da17c68c",
  564. "type": 5,
  565. "path": "bilibili.test.dev-kvm.ep-dnsmasq.dev",
  566. "tags": {},
  567. "children": {
  568. "containers": {
  569. "id": 35665,
  570. "name": "containers",
  571. "alias": "容器",
  572. "uuid": "containers-d4961337c51142b7a897530695d310ef",
  573. "type": 6,
  574. "path": "bilibili.test.dev-kvm.ep-dnsmasq.dev.containers",
  575. "tags": {},
  576. "children": null
  577. },
  578. "servers": {
  579. "id": 35664,
  580. "name": "servers",
  581. "alias": "物理机/虚机",
  582. "uuid": "servers-731138fbb791488eb132b3060a629956",
  583. "type": 6,
  584. "path": "bilibili.test.dev-kvm.ep-dnsmasq.dev.servers",
  585. "tags": {},
  586. "children": null
  587. }
  588. }
  589. },
  590. "fat1": {
  591. "id": 35663,
  592. "name": "fat1",
  593. "alias": "功能环境1",
  594. "uuid": "fat1-31ea62a15ae148b4a61cb90ab501b356",
  595. "type": 5,
  596. "path": "bilibili.test.dev-kvm.ep-dnsmasq.fat1",
  597. "tags": {},
  598. "children": {
  599. "containers": {
  600. "id": 35667,
  601. "name": "containers",
  602. "alias": "容器",
  603. "uuid": "containers-feaa97c7f89e4a98af7048d23911e059",
  604. "type": 6,
  605. "path": "bilibili.test.dev-kvm.ep-dnsmasq.fat1.containers",
  606. "tags": {},
  607. "children": null
  608. },
  609. "servers": {
  610. "id": 35666,
  611. "name": "servers",
  612. "alias": "物理机/虚机",
  613. "uuid": "servers-fe03b26b0c5c489297e5fe8e68dcc393",
  614. "type": 6,
  615. "path": "bilibili.test.dev-kvm.ep-dnsmasq.fat1.servers",
  616. "tags": {},
  617. "children": null
  618. }
  619. }
  620. },
  621. "pre": {
  622. "id": 35660,
  623. "name": "pre",
  624. "alias": "预发布环境",
  625. "uuid": "pre-a4c0060e25b4431d9044282987359dd8",
  626. "type": 5,
  627. "path": "bilibili.test.dev-kvm.ep-dnsmasq.pre",
  628. "tags": {},
  629. "children": {
  630. "containers": {
  631. "id": 35669,
  632. "name": "containers",
  633. "alias": "容器",
  634. "uuid": "containers-72c5684a7a8f46e392d5e69801b062da",
  635. "type": 6,
  636. "path": "bilibili.test.dev-kvm.ep-dnsmasq.pre.containers",
  637. "tags": {},
  638. "children": null
  639. },
  640. "servers": {
  641. "id": 35668,
  642. "name": "servers",
  643. "alias": "物理机/虚机",
  644. "uuid": "servers-7e609f120e874d51b39e9ce30325d645",
  645. "type": 6,
  646. "path": "bilibili.test.dev-kvm.ep-dnsmasq.pre.servers",
  647. "tags": {},
  648. "children": null
  649. }
  650. }
  651. },
  652. "prod": {
  653. "id": 35661,
  654. "name": "prod",
  655. "alias": "生产环境",
  656. "uuid": "prod-cd95750385d34ac9b658df3dcc556222",
  657. "type": 5,
  658. "path": "bilibili.test.dev-kvm.ep-dnsmasq.prod",
  659. "tags": {},
  660. "children": {
  661. "containers": {
  662. "id": 35671,
  663. "name": "containers",
  664. "alias": "容器",
  665. "uuid": "containers-7e232d61ffbb4280b3f550205f74597a",
  666. "type": 6,
  667. "path": "bilibili.test.dev-kvm.ep-dnsmasq.prod.containers",
  668. "tags": {},
  669. "children": null
  670. },
  671. "servers": {
  672. "id": 35670,
  673. "name": "servers",
  674. "alias": "物理机/虚机",
  675. "uuid": "servers-59b21adb19964f669dbfa2171984c35e",
  676. "type": 6,
  677. "path": "bilibili.test.dev-kvm.ep-dnsmasq.prod.servers",
  678. "tags": {},
  679. "children": null
  680. }
  681. }
  682. },
  683. "uat": {
  684. "id": 35662,
  685. "name": "uat",
  686. "alias": "集成环境",
  687. "uuid": "uat-9271692282014796a285d9abb91afc21",
  688. "type": 5,
  689. "path": "bilibili.test.dev-kvm.ep-dnsmasq.uat",
  690. "tags": {},
  691. "children": {
  692. "containers": {
  693. "id": 35673,
  694. "name": "containers",
  695. "alias": "容器",
  696. "uuid": "containers-3b342a83b6f340ba950e72e4f671ffc6",
  697. "type": 6,
  698. "path": "bilibili.test.dev-kvm.ep-dnsmasq.uat.containers",
  699. "tags": {},
  700. "children": null
  701. },
  702. "servers": {
  703. "id": 35672,
  704. "name": "servers",
  705. "alias": "物理机/虚机",
  706. "uuid": "servers-8b2de1e670ea4c1cbb3eb4f0df3b5e7b",
  707. "type": 6,
  708. "path": "bilibili.test.dev-kvm.ep-dnsmasq.uat.servers",
  709. "tags": {},
  710. "children": null
  711. }
  712. }
  713. }
  714. }
  715. }
  716. }
  717. },
  718. "ep": {
  719. "id": 35755,
  720. "name": "ep",
  721. "alias": "工程效率",
  722. "uuid": "ep-c035b7785a3c43c197ef53d511618a77",
  723. "type": 3,
  724. "path": "bilibili.test.ep",
  725. "tags": {},
  726. "children": {
  727. "android-ci": {
  728. "id": 35772,
  729. "name": "android-ci",
  730. "alias": "安卓持续构建使用",
  731. "uuid": "android-ci-b90cfa714cef4eb7ac24571e517b6364",
  732. "type": 4,
  733. "path": "bilibili.test.ep.android-ci",
  734. "tags": {
  735. "control_cmd": "/bin/bash",
  736. "deployment_path": "/data/app/android-ci"
  737. },
  738. "children": {
  739. "dev": {
  740. "id": 35775,
  741. "name": "dev",
  742. "alias": "研发环境",
  743. "uuid": "dev-c1deca0f603d4e1bb7212677b4b79b50",
  744. "type": 5,
  745. "path": "bilibili.test.ep.android-ci.dev",
  746. "tags": {},
  747. "children": {
  748. "containers": {
  749. "id": 35778,
  750. "name": "containers",
  751. "alias": "容器",
  752. "uuid": "containers-489cc7a6a8e74af19d833794b9fc577d",
  753. "type": 6,
  754. "path": "bilibili.test.ep.android-ci.dev.containers",
  755. "tags": {},
  756. "children": null
  757. },
  758. "servers": {
  759. "id": 35779,
  760. "name": "servers",
  761. "alias": "物理机/虚机",
  762. "uuid": "servers-2ba49536c7c44ab2bc1d889460e3a45f",
  763. "type": 6,
  764. "path": "bilibili.test.ep.android-ci.dev.servers",
  765. "tags": {},
  766. "children": null
  767. }
  768. }
  769. },
  770. "fat1": {
  771. "id": 35774,
  772. "name": "fat1",
  773. "alias": "功能环境1",
  774. "uuid": "fat1-ee460f009f844bf6818784c4b8fc9458",
  775. "type": 5,
  776. "path": "bilibili.test.ep.android-ci.fat1",
  777. "tags": {},
  778. "children": {
  779. "containers": {
  780. "id": 35781,
  781. "name": "containers",
  782. "alias": "容器",
  783. "uuid": "containers-733abdc725df451d9e4184585973c62c",
  784. "type": 6,
  785. "path": "bilibili.test.ep.android-ci.fat1.containers",
  786. "tags": {},
  787. "children": null
  788. },
  789. "servers": {
  790. "id": 35780,
  791. "name": "servers",
  792. "alias": "物理机/虚机",
  793. "uuid": "servers-7b534840f931482f93c000b9b5f4f3de",
  794. "type": 6,
  795. "path": "bilibili.test.ep.android-ci.fat1.servers",
  796. "tags": {},
  797. "children": null
  798. }
  799. }
  800. },
  801. "pre": {
  802. "id": 35776,
  803. "name": "pre",
  804. "alias": "预发布环境",
  805. "uuid": "pre-3d693a07b6994fec9fd81dcb5a929c54",
  806. "type": 5,
  807. "path": "bilibili.test.ep.android-ci.pre",
  808. "tags": {},
  809. "children": {
  810. "containers": {
  811. "id": 35783,
  812. "name": "containers",
  813. "alias": "容器",
  814. "uuid": "containers-c34d50561b8b488c900f596cebaa32d2",
  815. "type": 6,
  816. "path": "bilibili.test.ep.android-ci.pre.containers",
  817. "tags": {},
  818. "children": null
  819. },
  820. "servers": {
  821. "id": 35782,
  822. "name": "servers",
  823. "alias": "物理机/虚机",
  824. "uuid": "servers-ba22aa87a0d94d8591c14ad517b5539d",
  825. "type": 6,
  826. "path": "bilibili.test.ep.android-ci.pre.servers",
  827. "tags": {},
  828. "children": null
  829. }
  830. }
  831. },
  832. "prod": {
  833. "id": 35777,
  834. "name": "prod",
  835. "alias": "生产环境",
  836. "uuid": "prod-853a2cfdaa7743f2a3b03c97e0ffc52a",
  837. "type": 5,
  838. "path": "bilibili.test.ep.android-ci.prod",
  839. "tags": {},
  840. "children": {
  841. "containers": {
  842. "id": 35785,
  843. "name": "containers",
  844. "alias": "容器",
  845. "uuid": "containers-2609cd706c494904a42c7e36b05d55bb",
  846. "type": 6,
  847. "path": "bilibili.test.ep.android-ci.prod.containers",
  848. "tags": {},
  849. "children": null
  850. },
  851. "servers": {
  852. "id": 35784,
  853. "name": "servers",
  854. "alias": "物理机/虚机",
  855. "uuid": "servers-52845ef7f2324ec1abe73cd4d6b80201",
  856. "type": 6,
  857. "path": "bilibili.test.ep.android-ci.prod.servers",
  858. "tags": {},
  859. "children": null
  860. }
  861. }
  862. },
  863. "uat": {
  864. "id": 35773,
  865. "name": "uat",
  866. "alias": "集成环境",
  867. "uuid": "uat-d9ab37faeff247d7986df665d0394a09",
  868. "type": 5,
  869. "path": "bilibili.test.ep.android-ci.uat",
  870. "tags": {},
  871. "children": {
  872. "containers": {
  873. "id": 35787,
  874. "name": "containers",
  875. "alias": "容器",
  876. "uuid": "containers-2c9077d86f514ff9a56c22b40fbdd9a3",
  877. "type": 6,
  878. "path": "bilibili.test.ep.android-ci.uat.containers",
  879. "tags": {},
  880. "children": null
  881. },
  882. "servers": {
  883. "id": 35786,
  884. "name": "servers",
  885. "alias": "物理机/虚机",
  886. "uuid": "servers-0a917d8617804d5b90af9eedba162e55",
  887. "type": 6,
  888. "path": "bilibili.test.ep.android-ci.uat.servers",
  889. "tags": {},
  890. "children": null
  891. }
  892. }
  893. }
  894. }
  895. },
  896. "apache-jmeter-302": {
  897. "id": 37071,
  898. "name": "apache-jmeter-302",
  899. "alias": "apache-jmeter-302",
  900. "uuid": "apache-jmeter-302-c80bb6126c79482ca733d0f0523f7de3",
  901. "type": 4,
  902. "path": "bilibili.test.ep.apache-jmeter-302",
  903. "tags": {},
  904. "children": {
  905. "dev": {
  906. "id": 37073,
  907. "name": "dev",
  908. "alias": "研发环境",
  909. "uuid": "dev-aac6996b1d75466f90c1989c62a68853",
  910. "type": 5,
  911. "path": "bilibili.test.ep.apache-jmeter-302.dev",
  912. "tags": {},
  913. "children": {
  914. "containers": {
  915. "id": 37078,
  916. "name": "containers",
  917. "alias": "容器",
  918. "uuid": "containers-6344a31b08904d0e9a2fd8838d1f718f",
  919. "type": 6,
  920. "path": "bilibili.test.ep.apache-jmeter-302.dev.containers",
  921. "tags": {},
  922. "children": null
  923. },
  924. "servers": {
  925. "id": 37077,
  926. "name": "servers",
  927. "alias": "物理机/虚机",
  928. "uuid": "servers-fb5e908b97b144c4aca3d5a4980a5a7b",
  929. "type": 6,
  930. "path": "bilibili.test.ep.apache-jmeter-302.dev.servers",
  931. "tags": {},
  932. "children": null
  933. }
  934. }
  935. },
  936. "fat1": {
  937. "id": 37072,
  938. "name": "fat1",
  939. "alias": "功能环境1",
  940. "uuid": "fat1-79437038dbad4d25ba8d8f34413df538",
  941. "type": 5,
  942. "path": "bilibili.test.ep.apache-jmeter-302.fat1",
  943. "tags": {},
  944. "children": {
  945. "containers": {
  946. "id": 37080,
  947. "name": "containers",
  948. "alias": "容器",
  949. "uuid": "containers-e50595a56d0e4516b8599af5c57479e4",
  950. "type": 6,
  951. "path": "bilibili.test.ep.apache-jmeter-302.fat1.containers",
  952. "tags": {},
  953. "children": null
  954. },
  955. "servers": {
  956. "id": 37079,
  957. "name": "servers",
  958. "alias": "物理机/虚机",
  959. "uuid": "servers-2b7d8fcecd894eb0a10980fd21366afa",
  960. "type": 6,
  961. "path": "bilibili.test.ep.apache-jmeter-302.fat1.servers",
  962. "tags": {},
  963. "children": null
  964. }
  965. }
  966. },
  967. "pre": {
  968. "id": 37074,
  969. "name": "pre",
  970. "alias": "预发布环境",
  971. "uuid": "pre-efd846cb210442aea5c9e2d7a9ee8d5c",
  972. "type": 5,
  973. "path": "bilibili.test.ep.apache-jmeter-302.pre",
  974. "tags": {},
  975. "children": {
  976. "containers": {
  977. "id": 37082,
  978. "name": "containers",
  979. "alias": "容器",
  980. "uuid": "containers-ae6df432e3bb40c2ab10db97b8a1827b",
  981. "type": 6,
  982. "path": "bilibili.test.ep.apache-jmeter-302.pre.containers",
  983. "tags": {},
  984. "children": null
  985. },
  986. "servers": {
  987. "id": 37081,
  988. "name": "servers",
  989. "alias": "物理机/虚机",
  990. "uuid": "servers-94366278bf2e425eb8353ccf07ca7fb4",
  991. "type": 6,
  992. "path": "bilibili.test.ep.apache-jmeter-302.pre.servers",
  993. "tags": {},
  994. "children": null
  995. }
  996. }
  997. },
  998. "prod": {
  999. "id": 37075,
  1000. "name": "prod",
  1001. "alias": "生产环境",
  1002. "uuid": "prod-fe1f471b5f914ad7b6400de813fa5cbb",
  1003. "type": 5,
  1004. "path": "bilibili.test.ep.apache-jmeter-302.prod",
  1005. "tags": {},
  1006. "children": {
  1007. "containers": {
  1008. "id": 37084,
  1009. "name": "containers",
  1010. "alias": "容器",
  1011. "uuid": "containers-153576d8a89e4834a8b4a7352ded5710",
  1012. "type": 6,
  1013. "path": "bilibili.test.ep.apache-jmeter-302.prod.containers",
  1014. "tags": {},
  1015. "children": null
  1016. },
  1017. "servers": {
  1018. "id": 37083,
  1019. "name": "servers",
  1020. "alias": "物理机/虚机",
  1021. "uuid": "servers-a8dfa82e3c3b4cc9b56eb83568d9e8c8",
  1022. "type": 6,
  1023. "path": "bilibili.test.ep.apache-jmeter-302.prod.servers",
  1024. "tags": {},
  1025. "children": null
  1026. }
  1027. }
  1028. },
  1029. "uat": {
  1030. "id": 37076,
  1031. "name": "uat",
  1032. "alias": "集成环境",
  1033. "uuid": "uat-da5bbbaaa0884ed1b6ccd741c1177c40",
  1034. "type": 5,
  1035. "path": "bilibili.test.ep.apache-jmeter-302.uat",
  1036. "tags": {},
  1037. "children": {
  1038. "containers": {
  1039. "id": 37086,
  1040. "name": "containers",
  1041. "alias": "容器",
  1042. "uuid": "containers-c90f22d727d0432982acbd2d375e5d0b",
  1043. "type": 6,
  1044. "path": "bilibili.test.ep.apache-jmeter-302.uat.containers",
  1045. "tags": {},
  1046. "children": null
  1047. },
  1048. "servers": {
  1049. "id": 37085,
  1050. "name": "servers",
  1051. "alias": "物理机/虚机",
  1052. "uuid": "servers-b96240231775469286b1cff3c253ad38",
  1053. "type": 6,
  1054. "path": "bilibili.test.ep.apache-jmeter-302.uat.servers",
  1055. "tags": {},
  1056. "children": null
  1057. }
  1058. }
  1059. }
  1060. }
  1061. },
  1062. "comm-server": {
  1063. "id": 36125,
  1064. "name": "comm-server",
  1065. "alias": "公共服务",
  1066. "uuid": "comm-server-0f10a94f18eb429b984e6c16d4b46533",
  1067. "type": 4,
  1068. "path": "bilibili.test.ep.comm-server",
  1069. "tags": {
  1070. "control_cmd": "bash",
  1071. "deployment_path": "/data/app/ep-comm"
  1072. },
  1073. "children": {
  1074. "dev": {
  1075. "id": 36128,
  1076. "name": "dev",
  1077. "alias": "研发环境",
  1078. "uuid": "dev-d0542e2593e344b9a67b738c80a2b9bc",
  1079. "type": 5,
  1080. "path": "bilibili.test.ep.comm-server.dev",
  1081. "tags": {},
  1082. "children": {
  1083. "containers": {
  1084. "id": 36132,
  1085. "name": "containers",
  1086. "alias": "容器",
  1087. "uuid": "containers-ef71d0cd0ca14f5f91ce1118bdf4b1ac",
  1088. "type": 6,
  1089. "path": "bilibili.test.ep.comm-server.dev.containers",
  1090. "tags": {},
  1091. "children": null
  1092. },
  1093. "servers": {
  1094. "id": 36131,
  1095. "name": "servers",
  1096. "alias": "物理机/虚机",
  1097. "uuid": "servers-911bc30b656d4d9ab69c639b7fc88552",
  1098. "type": 6,
  1099. "path": "bilibili.test.ep.comm-server.dev.servers",
  1100. "tags": {},
  1101. "children": null
  1102. }
  1103. }
  1104. },
  1105. "fat1": {
  1106. "id": 36127,
  1107. "name": "fat1",
  1108. "alias": "功能环境1",
  1109. "uuid": "fat1-556f22720621452fb630eaf172fdd51c",
  1110. "type": 5,
  1111. "path": "bilibili.test.ep.comm-server.fat1",
  1112. "tags": {},
  1113. "children": {
  1114. "containers": {
  1115. "id": 36134,
  1116. "name": "containers",
  1117. "alias": "容器",
  1118. "uuid": "containers-f0eb5d2c656a45b6ac5707b287262639",
  1119. "type": 6,
  1120. "path": "bilibili.test.ep.comm-server.fat1.containers",
  1121. "tags": {},
  1122. "children": null
  1123. },
  1124. "servers": {
  1125. "id": 36133,
  1126. "name": "servers",
  1127. "alias": "物理机/虚机",
  1128. "uuid": "servers-ee620ee1e68c4d9590a92750cbca6a4c",
  1129. "type": 6,
  1130. "path": "bilibili.test.ep.comm-server.fat1.servers",
  1131. "tags": {},
  1132. "children": null
  1133. }
  1134. }
  1135. },
  1136. "pre": {
  1137. "id": 36129,
  1138. "name": "pre",
  1139. "alias": "预发布环境",
  1140. "uuid": "pre-b9651d3a6b2e49518b14239f63273a30",
  1141. "type": 5,
  1142. "path": "bilibili.test.ep.comm-server.pre",
  1143. "tags": {},
  1144. "children": {
  1145. "containers": {
  1146. "id": 36136,
  1147. "name": "containers",
  1148. "alias": "容器",
  1149. "uuid": "containers-aa75b45b96494881860004282b08244b",
  1150. "type": 6,
  1151. "path": "bilibili.test.ep.comm-server.pre.containers",
  1152. "tags": {},
  1153. "children": null
  1154. },
  1155. "servers": {
  1156. "id": 36135,
  1157. "name": "servers",
  1158. "alias": "物理机/虚机",
  1159. "uuid": "servers-a7046ef8ae56476f9c93ba955cee8ca4",
  1160. "type": 6,
  1161. "path": "bilibili.test.ep.comm-server.pre.servers",
  1162. "tags": {},
  1163. "children": null
  1164. }
  1165. }
  1166. },
  1167. "prod": {
  1168. "id": 36130,
  1169. "name": "prod",
  1170. "alias": "生产环境",
  1171. "uuid": "prod-aa28ade392f1402c95eae6b1140bbfa4",
  1172. "type": 5,
  1173. "path": "bilibili.test.ep.comm-server.prod",
  1174. "tags": {},
  1175. "children": {
  1176. "containers": {
  1177. "id": 36138,
  1178. "name": "containers",
  1179. "alias": "容器",
  1180. "uuid": "containers-4dc882736d724ad4b8012d3ee63b26c7",
  1181. "type": 6,
  1182. "path": "bilibili.test.ep.comm-server.prod.containers",
  1183. "tags": {},
  1184. "children": null
  1185. },
  1186. "servers": {
  1187. "id": 36137,
  1188. "name": "servers",
  1189. "alias": "物理机/虚机",
  1190. "uuid": "servers-0bb71ed49d3342f9b1cecc717a1d1390",
  1191. "type": 6,
  1192. "path": "bilibili.test.ep.comm-server.prod.servers",
  1193. "tags": {},
  1194. "children": null
  1195. }
  1196. }
  1197. },
  1198. "uat": {
  1199. "id": 36126,
  1200. "name": "uat",
  1201. "alias": "集成环境",
  1202. "uuid": "uat-a8ac7c4f63f846fcaae1de1f72a18f0d",
  1203. "type": 5,
  1204. "path": "bilibili.test.ep.comm-server.uat",
  1205. "tags": {},
  1206. "children": {
  1207. "containers": {
  1208. "id": 36140,
  1209. "name": "containers",
  1210. "alias": "容器",
  1211. "uuid": "containers-dab1668361e646fc8b90fad58df04993",
  1212. "type": 6,
  1213. "path": "bilibili.test.ep.comm-server.uat.containers",
  1214. "tags": {},
  1215. "children": null
  1216. },
  1217. "servers": {
  1218. "id": 36139,
  1219. "name": "servers",
  1220. "alias": "物理机/虚机",
  1221. "uuid": "servers-45bdc8f1282a489c8937152f08fb19ad",
  1222. "type": 6,
  1223. "path": "bilibili.test.ep.comm-server.uat.servers",
  1224. "tags": {},
  1225. "children": null
  1226. }
  1227. }
  1228. }
  1229. }
  1230. },
  1231. "go-ci": {
  1232. "id": 35756,
  1233. "name": "go-ci",
  1234. "alias": "Golang持续集成",
  1235. "uuid": "go-ci-b9cf03b07ae64734902b16bed140b99b",
  1236. "type": 4,
  1237. "path": "bilibili.test.ep.go-ci",
  1238. "tags": {
  1239. "control_cmd": "/bin/bash",
  1240. "deployment_path": "/data/app/go-ci"
  1241. },
  1242. "children": {
  1243. "dev": {
  1244. "id": 35759,
  1245. "name": "dev",
  1246. "alias": "研发环境",
  1247. "uuid": "dev-2eeaf8580e3b4fe7918a5381b0a1adfc",
  1248. "type": 5,
  1249. "path": "bilibili.test.ep.go-ci.dev",
  1250. "tags": {},
  1251. "children": {
  1252. "containers": {
  1253. "id": 35763,
  1254. "name": "containers",
  1255. "alias": "容器",
  1256. "uuid": "containers-f323f8068dbf4bc38a12c302594c8746",
  1257. "type": 6,
  1258. "path": "bilibili.test.ep.go-ci.dev.containers",
  1259. "tags": {},
  1260. "children": null
  1261. },
  1262. "servers": {
  1263. "id": 35762,
  1264. "name": "servers",
  1265. "alias": "物理机/虚机",
  1266. "uuid": "servers-020826112b664579b2d4ab55bf5caec7",
  1267. "type": 6,
  1268. "path": "bilibili.test.ep.go-ci.dev.servers",
  1269. "tags": {},
  1270. "children": null
  1271. }
  1272. }
  1273. },
  1274. "fat1": {
  1275. "id": 35758,
  1276. "name": "fat1",
  1277. "alias": "功能环境1",
  1278. "uuid": "fat1-e179dc1400eb45a89f151417c84bfb87",
  1279. "type": 5,
  1280. "path": "bilibili.test.ep.go-ci.fat1",
  1281. "tags": {},
  1282. "children": {
  1283. "containers": {
  1284. "id": 35765,
  1285. "name": "containers",
  1286. "alias": "容器",
  1287. "uuid": "containers-da3068f1921942c6a8a1851d7bf5a686",
  1288. "type": 6,
  1289. "path": "bilibili.test.ep.go-ci.fat1.containers",
  1290. "tags": {},
  1291. "children": null
  1292. },
  1293. "servers": {
  1294. "id": 35764,
  1295. "name": "servers",
  1296. "alias": "物理机/虚机",
  1297. "uuid": "servers-d8699a93bb264698b3c437bd528ca114",
  1298. "type": 6,
  1299. "path": "bilibili.test.ep.go-ci.fat1.servers",
  1300. "tags": {},
  1301. "children": null
  1302. }
  1303. }
  1304. },
  1305. "pre": {
  1306. "id": 35760,
  1307. "name": "pre",
  1308. "alias": "预发布环境",
  1309. "uuid": "pre-c1ae2d9565ea46409daeff531a0372dc",
  1310. "type": 5,
  1311. "path": "bilibili.test.ep.go-ci.pre",
  1312. "tags": {},
  1313. "children": {
  1314. "containers": {
  1315. "id": 35767,
  1316. "name": "containers",
  1317. "alias": "容器",
  1318. "uuid": "containers-39c380775d494f099ae2db62a9f8c588",
  1319. "type": 6,
  1320. "path": "bilibili.test.ep.go-ci.pre.containers",
  1321. "tags": {},
  1322. "children": null
  1323. },
  1324. "servers": {
  1325. "id": 35766,
  1326. "name": "servers",
  1327. "alias": "物理机/虚机",
  1328. "uuid": "servers-9ebc307597e243119b413261a058c2ad",
  1329. "type": 6,
  1330. "path": "bilibili.test.ep.go-ci.pre.servers",
  1331. "tags": {},
  1332. "children": null
  1333. }
  1334. }
  1335. },
  1336. "prod": {
  1337. "id": 35761,
  1338. "name": "prod",
  1339. "alias": "生产环境",
  1340. "uuid": "prod-a3956d39affc4a9fa127c18fea4cdc3c",
  1341. "type": 5,
  1342. "path": "bilibili.test.ep.go-ci.prod",
  1343. "tags": {},
  1344. "children": {
  1345. "containers": {
  1346. "id": 35769,
  1347. "name": "containers",
  1348. "alias": "容器",
  1349. "uuid": "containers-115979ca4ae04580892a7c068c6219d7",
  1350. "type": 6,
  1351. "path": "bilibili.test.ep.go-ci.prod.containers",
  1352. "tags": {},
  1353. "children": null
  1354. },
  1355. "servers": {
  1356. "id": 35768,
  1357. "name": "servers",
  1358. "alias": "物理机/虚机",
  1359. "uuid": "servers-ab8e44699cdc4e7c857a14b337d12063",
  1360. "type": 6,
  1361. "path": "bilibili.test.ep.go-ci.prod.servers",
  1362. "tags": {},
  1363. "children": null
  1364. }
  1365. }
  1366. },
  1367. "uat": {
  1368. "id": 35757,
  1369. "name": "uat",
  1370. "alias": "集成环境",
  1371. "uuid": "uat-abaa8741ee424b2db3c3701ed287de9e",
  1372. "type": 5,
  1373. "path": "bilibili.test.ep.go-ci.uat",
  1374. "tags": {},
  1375. "children": {
  1376. "containers": {
  1377. "id": 35771,
  1378. "name": "containers",
  1379. "alias": "容器",
  1380. "uuid": "containers-3f9a4ad64dcd45b09c5742e714074e4f",
  1381. "type": 6,
  1382. "path": "bilibili.test.ep.go-ci.uat.containers",
  1383. "tags": {},
  1384. "children": null
  1385. },
  1386. "servers": {
  1387. "id": 35770,
  1388. "name": "servers",
  1389. "alias": "物理机/虚机",
  1390. "uuid": "servers-1160d553577d435fbeeaa47f3abef57f",
  1391. "type": 6,
  1392. "path": "bilibili.test.ep.go-ci.uat.servers",
  1393. "tags": {},
  1394. "children": null
  1395. }
  1396. }
  1397. }
  1398. }
  1399. }
  1400. }
  1401. },
  1402. "nogroup": {
  1403. "id": 9260,
  1404. "name": "nogroup",
  1405. "alias": "nogroup",
  1406. "uuid": "nogroup-3097fdcc85df4ee2877fcf81fd511683",
  1407. "type": 3,
  1408. "path": "bilibili.test.nogroup",
  1409. "tags": {},
  1410. "children": {
  1411. "nogroup": {
  1412. "id": 9261,
  1413. "name": "nogroup",
  1414. "alias": "nogroup",
  1415. "uuid": "nogroup-b64a1b95df4b459b8e84ae08decf4381",
  1416. "type": 4,
  1417. "path": "bilibili.test.nogroup.nogroup",
  1418. "tags": {
  1419. "control_cmd": "/",
  1420. "deployment_path": "/"
  1421. },
  1422. "children": {
  1423. "standby": {
  1424. "id": 9262,
  1425. "name": "standby",
  1426. "alias": "待分配",
  1427. "uuid": "standby-f1d43275614945ba9330a99f94d6e70e",
  1428. "type": 6,
  1429. "path": "bilibili.test.nogroup.nogroup.standby",
  1430. "tags": null,
  1431. "children": null
  1432. },
  1433. "unclassify": {
  1434. "id": 9263,
  1435. "name": "unclassify",
  1436. "alias": "待分类",
  1437. "uuid": "unclassify-c7383c26cb244b618426d119bde087ec",
  1438. "type": 6,
  1439. "path": "bilibili.test.nogroup.nogroup.unclassify",
  1440. "tags": null,
  1441. "children": null
  1442. }
  1443. }
  1444. }
  1445. }
  1446. },
  1447. "uat-kvm": {
  1448. "id": 7864,
  1449. "name": "uat-kvm",
  1450. "alias": "集成环境资源",
  1451. "uuid": "uat-kvm-1a1f89b7e96b43008ec431d38cc8b478",
  1452. "type": 3,
  1453. "path": "bilibili.test.uat-kvm",
  1454. "tags": {},
  1455. "children": {
  1456. "uat": {
  1457. "id": 7868,
  1458. "name": "uat",
  1459. "alias": "uat",
  1460. "uuid": "uat-882ddff71f4b4e4fa60674f4edda1174",
  1461. "type": 4,
  1462. "path": "bilibili.test.uat-kvm.uat",
  1463. "tags": {
  1464. "control_cmd": "echo \"uat\"",
  1465. "deployment_path": "/data/app",
  1466. "domain": null,
  1467. "ops": "xiechuping,linhaitao",
  1468. "project": "uat-kvm",
  1469. "rds": "zhaobingqing,haoguanwei"
  1470. },
  1471. "children": {
  1472. "fat1": {
  1473. "id": 30738,
  1474. "name": "fat1",
  1475. "alias": "功能环境1",
  1476. "uuid": "fat1-53cf44fd147545db95143c3e86342dfc",
  1477. "type": 5,
  1478. "path": "bilibili.test.uat-kvm.uat.fat1",
  1479. "tags": {},
  1480. "children": {
  1481. "containers": {
  1482. "id": 30739,
  1483. "name": "containers",
  1484. "alias": "容器",
  1485. "uuid": "containers-685761ae52ab4c02b63050e9d572f759",
  1486. "type": 6,
  1487. "path": "bilibili.test.uat-kvm.uat.fat1.containers",
  1488. "tags": {},
  1489. "children": null
  1490. }
  1491. }
  1492. },
  1493. "pre": {
  1494. "id": 30728,
  1495. "name": "pre",
  1496. "alias": "预发布环境",
  1497. "uuid": "pre-2d2c7bce2b4143d789d5815d2280aaaf",
  1498. "type": 5,
  1499. "path": "bilibili.test.uat-kvm.uat.pre",
  1500. "tags": {},
  1501. "children": {
  1502. "containers": {
  1503. "id": 30729,
  1504. "name": "containers",
  1505. "alias": "容器",
  1506. "uuid": "containers-3be42dd90ee3497da1a3d952d3ad8909",
  1507. "type": 6,
  1508. "path": "bilibili.test.uat-kvm.uat.pre.containers",
  1509. "tags": {},
  1510. "children": null
  1511. }
  1512. }
  1513. },
  1514. "prod": {
  1515. "id": 30722,
  1516. "name": "prod",
  1517. "alias": "生产环境",
  1518. "uuid": "prod-363a6794454044a59a5e0c73a126adcd",
  1519. "type": 5,
  1520. "path": "bilibili.test.uat-kvm.uat.prod",
  1521. "tags": {},
  1522. "children": {
  1523. "containers": {
  1524. "id": 30723,
  1525. "name": "containers",
  1526. "alias": "容器",
  1527. "uuid": "containers-062c961ddd054be4b83c6ad90fcd5abf",
  1528. "type": 6,
  1529. "path": "bilibili.test.uat-kvm.uat.prod.containers",
  1530. "tags": {},
  1531. "children": null
  1532. }
  1533. }
  1534. },
  1535. "uat": {
  1536. "id": 7876,
  1537. "name": "uat",
  1538. "alias": "uat",
  1539. "uuid": "uat-99b446fdcd584a36bed4afa67d490905",
  1540. "type": 6,
  1541. "path": "bilibili.test.uat-kvm.uat.uat",
  1542. "tags": {},
  1543. "children": null
  1544. }
  1545. }
  1546. }
  1547. }
  1548. }
  1549. }
  1550. }
  1551. }
  1552. }
  1553. },
  1554. "message": "success",
  1555. "status": 200
  1556. }`
  1557. )