MachineRoomData.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /// <summary>
  5. /// 房间/场景服务器参数组
  6. /// </summary>
  7. public class MachineRoomData
  8. {
  9. /// <summary>
  10. /// 行
  11. /// </summary>
  12. public int line { get; set; }
  13. /// <summary>
  14. /// 列
  15. /// </summary>
  16. public int list { get; set; }
  17. /// <summary>
  18. /// 间隔宽
  19. /// </summary>
  20. public float intervalW { get; set; }
  21. /// <summary>
  22. /// 间隔长
  23. /// </summary>
  24. public float intervalL { get; set; }
  25. /// <summary>
  26. /// 机柜宽
  27. /// </summary>
  28. public float cabinetW { get; set; }
  29. /// <summary>
  30. /// 机柜高
  31. /// </summary>
  32. public float cabinetH { get; set; }
  33. public int bladeSeverNumber { get; set; }// 每台服务器上刀片机数量
  34. public float bIntervalH { get; set; } // 刀片机之间的间隔高度
  35. public float firstBladeSeverH { get; set; }// 第一台刀片机在机柜内的初始高度
  36. // public float bIntervalL { get; set; }
  37. public float tagOffestPosY { get; set; }
  38. /// <summary>
  39. /// 可视范围
  40. /// </summary>
  41. public float cameraFar { get; set; }
  42. /// <summary>
  43. /// 机房名字
  44. /// </summary>
  45. public string roomName { get; set; }
  46. /// <summary>
  47. /// 总容量 (U)
  48. /// </summary>
  49. public float totalCapacity { get; set; }
  50. /// <summary>
  51. /// 已使用容量(U)
  52. /// </summary>
  53. public float usedCapacity { get; set; }
  54. /// <summary>
  55. /// 总功耗(KW)
  56. /// </summary>
  57. public float totalPower { get; set; }
  58. /// <summary>
  59. /// 已使用功耗(KW)
  60. /// </summary>
  61. public float usedPower { get; set; }
  62. /// <summary>
  63. /// 总承重(T)
  64. /// </summary>
  65. public float totalLoadBearing { get; set; }
  66. /// <summary>
  67. /// 已使用承重(T)
  68. /// </summary>
  69. public float usedBearing { get; set; }
  70. public List<MachineRoomTagData> listTagData { get; set; }
  71. public List<MachineParameters> listEquipmentData { get; set; }
  72. public List<AlarmData> listAlarmData { get; set; }
  73. }
  74. /// <summary>
  75. /// 机柜信息
  76. /// </summary>
  77. public class MachineParameters
  78. {
  79. /// <summary>
  80. /// 设备ID
  81. /// </summary>
  82. public string deviceId { get; set; }
  83. /// <summary>
  84. /// 设备名称
  85. /// </summary>
  86. public string deviceName { get; set; }
  87. /// <summary>
  88. /// 设备识别TagID
  89. /// </summary>
  90. public int tagID { get; set; }
  91. /// <summary>
  92. /// 显示的UI相对于Mark的偏移值
  93. /// </summary>
  94. public Vector3 offsetPos { get; set; }
  95. /// <summary>
  96. /// X轴(1、-1)Y轴(2、-2)Z轴(3 、-3)整数为正向旋转 负树为反向旋转 UI的Y轴相对于Mark的轴向 当前默认都为3
  97. /// </summary>
  98. public int eulerAxle { get; set; }
  99. /// <summary>
  100. /// 承载系统
  101. /// </summary>
  102. public string carryingSystem { get; set; }
  103. /// <summary>
  104. /// 设备位置
  105. /// </summary>
  106. public string deviceLocation { get; set; }
  107. /// <summary>
  108. /// 设备类别
  109. /// </summary>
  110. public string equipmentType { get; set; }
  111. /// <summary>
  112. /// 设备型号
  113. /// </summary>
  114. public string equipmentModel { get; set; }
  115. /// <summary>
  116. /// 厂家
  117. /// </summary>
  118. public string factory { get; set; }
  119. /// <summary>
  120. /// 规格
  121. /// </summary>
  122. public string specification { get; set; }
  123. public string alarmLevel { get; set; }
  124. public string alarmTimes { get; set; }
  125. public List<DeviceParameters> listDevicesParameters { get; set; }
  126. }
  127. /// <summary>
  128. /// 刀片机设备信息
  129. /// </summary>
  130. public class DeviceParameters3
  131. {
  132. /// <summary>
  133. /// 设备ID
  134. /// </summary>
  135. public int deviceId { get; set; }
  136. /// <summary>
  137. /// 设备名称
  138. /// </summary>
  139. public string deviceName { get; set; }
  140. /// <summary>
  141. /// 设备型号
  142. /// </summary>
  143. public string deviceModel { get; set; }
  144. /// <summary>
  145. /// 设备类型
  146. /// </summary>
  147. public string deviceType { get; set; }
  148. /// <summary>
  149. /// 资产标签号
  150. /// </summary>
  151. public string assetTagNumber { get; set; }
  152. /// <summary>
  153. /// 序列号
  154. /// </summary>
  155. public string serialNumber { get; set; }
  156. /// <summary>
  157. /// 设备编码
  158. /// </summary>
  159. public string equipmentNumber { get; set; }
  160. /// <summary>
  161. /// 资产状态
  162. /// </summary>
  163. public string assetStatus { get; set; }
  164. /// <summary>
  165. /// 设备状态
  166. /// </summary>
  167. public string deviceStatus { get; set; }
  168. /// <summary>
  169. /// 交付日期
  170. /// </summary>
  171. public string deliveryData { get; set; }
  172. /// <summary>
  173. /// 启用日期
  174. /// </summary>
  175. public string enabledDate { get; set; }
  176. /// <summary>
  177. /// 服务器使用类型
  178. /// </summary>
  179. public string serverUsageType { get; set; }
  180. /// <summary>
  181. /// 典配模型
  182. /// </summary>
  183. public string typicalModel { get; set; }
  184. /// <summary>
  185. /// 设备品牌
  186. /// </summary>
  187. public string equipmentBrand { get; set; }
  188. /// <summary>
  189. /// 生产厂商
  190. /// </summary>
  191. public string manufacturer { get; set; }
  192. /// <summary>
  193. /// 设备重量(KG)
  194. /// </summary>
  195. public float equipmentWeight { get; set; }
  196. /// <summary>
  197. /// 设备功率(W)
  198. /// </summary>
  199. public float equipmentPower { get; set; }
  200. /// <summary>
  201. /// 产地类型
  202. /// </summary>
  203. public string originType { get; set; }
  204. /// <summary>
  205. /// 集采目录产品名称
  206. /// </summary>
  207. public string collectionCPName { get; set; }
  208. /// <summary>
  209. /// 所在资源池
  210. /// </summary>
  211. public string resourcePool { get; set; }
  212. /// <summary>
  213. /// 所在POD
  214. /// </summary>
  215. public string wherePOD { get; set; }
  216. /// <summary>
  217. /// 所在网络域
  218. /// </summary>
  219. public string networkDomain { get; set; }
  220. /// <summary>
  221. /// 所在城市
  222. /// </summary>
  223. public string city { get; set; }
  224. /// <summary>
  225. /// 所在楼宇
  226. /// </summary>
  227. public string building { get; set; }
  228. /// <summary>
  229. /// 所在楼层
  230. /// </summary>
  231. public string floor { get; set; }
  232. /// <summary>
  233. /// 所在机房名称
  234. /// </summary>
  235. public string computerRoomName { get; set; }
  236. /// <summary>
  237. /// 所在机房编码
  238. /// </summary>
  239. public string computerRoomCoding { get; set; }
  240. /// <summary>
  241. /// 机柜编号
  242. /// </summary>
  243. public string cabinetNumber { get; set; }
  244. /// <summary>
  245. /// U位信息
  246. /// </summary>
  247. public string uMessage { get; set; }
  248. /// <summary>
  249. /// 设备朝向
  250. /// </summary>
  251. public string deviceOrientation { get; set; }
  252. /// <summary>
  253. /// 管理IP
  254. /// </summary>
  255. public string manageIP { get; set; }
  256. /// <summary>
  257. /// 存储IP
  258. /// </summary>
  259. public string saveIP { get; set; }
  260. /// <summary>
  261. /// IPMIP
  262. /// </summary>
  263. public string iPMIIP { get; set; }
  264. /// <summary>
  265. /// 业务IP
  266. /// </summary>
  267. public string businessIP { get; set; }
  268. /// <summary>
  269. /// 项目名称
  270. /// </summary>
  271. public string projectName { get; set; }
  272. /// <summary>
  273. /// 设备供货商
  274. /// </summary>
  275. public string equipmentSupplier { get; set; }
  276. /// <summary>
  277. /// 资产责任人
  278. /// </summary>
  279. public string assetOwner { get; set; }
  280. /// <summary>
  281. /// 属地省资产负责人
  282. /// </summary>
  283. public string territorialPAManager { get; set; }
  284. /// <summary>
  285. /// 设备归属组织
  286. /// </summary>
  287. public string equipmentBTTOrganization { get; set; }
  288. /// <summary>
  289. /// 设备管理组织
  290. /// </summary>
  291. public string facilityManagementOrganization { get; set; }
  292. /// <summary>
  293. /// 设备维护组织
  294. /// </summary>
  295. public string equipmentMaintenanceOrganization { get; set; }
  296. /// <summary>
  297. /// 业务系统
  298. /// </summary>
  299. public string businessSystem { get; set; }
  300. }
  301. /// <summary>
  302. /// 刀片机设备信息
  303. /// </summary>
  304. public class DeviceParameters
  305. {
  306. /// <summary>
  307. /// 设备ID
  308. /// </summary>
  309. public string id { get; set; }
  310. /// <summary>
  311. /// 设备名称
  312. /// </summary>
  313. public string deviceName { get; set; }
  314. /// <summary>
  315. /// 设备型号
  316. /// </summary>
  317. public string deviceModel { get; set; }
  318. /// <summary>
  319. /// 设备类型
  320. /// </summary>
  321. public string deviceType { get; set; }
  322. /// <summary>
  323. /// 资产标签号
  324. /// </summary>
  325. public string assetNumber { get; set; }
  326. /// <summary>
  327. /// 序列号
  328. /// </summary>
  329. public string serialNumber { get; set; }
  330. /// <summary>
  331. /// 设备编码
  332. /// </summary>
  333. public string deviceNumber { get; set; }
  334. /// <summary>
  335. /// 资产状态
  336. /// </summary>
  337. public string assetStatus { get; set; }
  338. /// <summary>
  339. /// 设备状态
  340. /// </summary>
  341. public string deviceStatus { get; set; }
  342. /// <summary>
  343. /// 交付日期
  344. /// </summary>
  345. public string deliveryDate { get; set; }
  346. /// <summary>
  347. /// 启用日期
  348. /// </summary>
  349. public string activationDate { get; set; }
  350. /// <summary>
  351. /// 服务器使用类型
  352. /// </summary>
  353. public string serverUsageType { get; set; }
  354. /// <summary>
  355. /// 典配模型
  356. /// </summary>
  357. public string typical { get; set; }
  358. /// <summary>
  359. /// 设备品牌
  360. /// </summary>
  361. public string deviceBrand { get; set; }
  362. /// <summary>
  363. /// 生产厂商
  364. /// </summary>
  365. public string manufacturer { get; set; }
  366. /// <summary>
  367. /// 设备重量(KG)
  368. /// </summary>
  369. public string eight { get; set; }
  370. /// <summary>
  371. /// 设备功率(W)
  372. /// </summary>
  373. public string power { get; set; }
  374. /// <summary>
  375. /// 产地类型
  376. /// </summary>
  377. public string origin { get; set; }
  378. /// <summary>
  379. /// 集采目录产品名称
  380. /// </summary>
  381. public string catalogProductName { get; set; }
  382. /// <summary>
  383. /// 所在资源池
  384. /// </summary>
  385. public string resourcePool { get; set; }
  386. /// <summary>
  387. /// 所在POD
  388. /// </summary>
  389. public string pod { get; set; }
  390. /// <summary>
  391. /// 所在网络域
  392. /// </summary>
  393. public string network { get; set; }
  394. /// <summary>
  395. /// 设备重要级别
  396. /// </summary>
  397. public string importanceLevel { get; set; }
  398. /// <summary>
  399. /// 成套设备编码
  400. /// </summary>
  401. public string completeEquipmentCode { get; set; }
  402. /// <summary>
  403. /// 是否有RFID标签
  404. /// </summary>
  405. public string RFID { get; set; }
  406. /// <summary>
  407. /// 备注
  408. /// </summary>
  409. public string remark { get; set; }
  410. /// <summary>
  411. /// 所在城市
  412. /// </summary>
  413. public string province { get; set; }
  414. /// <summary>
  415. /// 所在楼宇
  416. /// </summary>
  417. public string building { get; set; }
  418. /// <summary>
  419. /// 所在楼层
  420. /// </summary>
  421. public string floor { get; set; }
  422. /// <summary>
  423. /// 所在机房名称
  424. /// </summary>
  425. public string engineRoomName { get; set; }
  426. /// <summary>
  427. /// 所在机房编码
  428. /// </summary>
  429. public string engineRoomCode { get; set; }
  430. /// <summary>
  431. /// 机柜编号
  432. /// </summary>
  433. public string cabinetNumber { get; set; }
  434. /// <summary>
  435. /// U位信息
  436. /// </summary>
  437. public string u { get; set; }
  438. /// <summary>
  439. /// 设备朝向
  440. /// </summary>
  441. public string deviceOrientation { get; set; }
  442. /// <summary>
  443. /// 管理IP
  444. /// </summary>
  445. public string managementIP { get; set; }
  446. /// <summary>
  447. /// 监控ID
  448. /// </summary>
  449. public string monitoringID { get; set; }
  450. /// <summary>
  451. /// 存储IP
  452. /// </summary>
  453. public string saveIP { get; set; }
  454. /// <summary>
  455. /// IPMIP
  456. /// </summary>
  457. public string iPMIIP { get; set; }
  458. /// <summary>
  459. /// 业务IP
  460. /// </summary>
  461. public string businessIP { get; set; }
  462. /// <summary>
  463. /// 项目名称
  464. /// </summary>
  465. public string projectName { get; set; }
  466. /// <summary>
  467. /// 项目编码
  468. /// </summary>
  469. public string projectNumber { get; set; }
  470. /// <summary>
  471. /// 设备供货商
  472. /// </summary>
  473. public string supplier { get; set; }
  474. /// <summary>
  475. /// 资产责任人
  476. /// </summary>
  477. public string principal { get; set; }
  478. /// <summary>
  479. /// 属地省资产负责人
  480. /// </summary>
  481. public string provincePrincipal { get; set; }
  482. /// <summary>
  483. /// 设备归属组织
  484. /// </summary>
  485. public string ownershipOrganization { get; set; }
  486. /// <summary>
  487. /// 设备管理组织
  488. /// </summary>
  489. public string managementOrganization { get; set; }
  490. /// <summary>
  491. /// 设备维护组织
  492. /// </summary>
  493. public string maintenanceOrganization { get; set; }
  494. /// <summary>
  495. /// 设备使用组织
  496. /// </summary>
  497. public string usageOrganization { get; set; }
  498. /// <summary>
  499. /// 业务系统
  500. /// </summary>
  501. public string businessSystem { get; set; }
  502. /// <summary>
  503. /// 设备应用类型
  504. /// </summary>
  505. public string applicationType { get; set; }
  506. /// <summary>
  507. /// 资源名称
  508. /// </summary>
  509. public string resourceName { get; set; }
  510. /// <summary>
  511. /// 创建时间
  512. /// </summary>
  513. public string createTime { get; set; }
  514. }
  515. public class BrielDeviceParmaters
  516. {
  517. /// <summary>
  518. /// 设备ID
  519. /// </summary>
  520. public string id { get; set; }
  521. /// <summary>
  522. /// 设备名称
  523. /// </summary>
  524. public string deviceName { get; set; }
  525. /// <summary>
  526. /// 设备类型
  527. /// </summary>
  528. public string deviceType { get; set; }
  529. /// <summary>
  530. /// 设备品牌
  531. /// </summary>
  532. public string deviceBrand { get; set; }
  533. /// <summary>
  534. /// 管理IP
  535. /// </summary>
  536. public string managementIP { get; set; }
  537. }
  538. /// <summary>
  539. /// 告警信息
  540. /// </summary>
  541. public class AlarmData
  542. {
  543. /// <summary>
  544. /// 设备ID
  545. /// </summary>
  546. public string deviceId { get; set; }
  547. /// <summary>
  548. /// 设备名称
  549. /// </summary>
  550. public string deviceName { get; set; }
  551. /// <summary>
  552. /// 告警标题
  553. /// </summary>
  554. public string title { get; set; }
  555. /// <summary>
  556. /// 告警级别
  557. /// </summary>
  558. public string level { get; set; }
  559. /// <summary>
  560. /// 告警类型
  561. /// </summary>
  562. public string type { get; set; }
  563. /// <summary>
  564. /// 设备告警时间
  565. /// </summary>
  566. public string equipmentAlarmTime { get; set; }
  567. /// <summary>
  568. /// 设备清除告警时间
  569. /// </summary>
  570. public string deviceClearAlarmTime { get; set; }
  571. /// <summary>
  572. /// 清除状态
  573. /// </summary>
  574. public string clearStatus { get; set; }
  575. /// <summary>
  576. /// 定位对象类型
  577. /// </summary>
  578. public string targetObjectType { get; set; }
  579. /// <summary>
  580. /// 承载系统
  581. /// </summary>
  582. public string carryingSystem { get; set; }
  583. }
  584. /// <summary>
  585. /// 房间/场景Tag定位参数组
  586. /// </summary>
  587. public class MachineRoomTagData
  588. {
  589. public int id { get; set; }
  590. public Vector3 pos { get; set; }
  591. public Vector3 rot { get; set; }
  592. public Vector3 offestPos { get; set; }
  593. public Vector3 offestrot { get; set; }
  594. // public Transform tagModel { get; set; }
  595. }