event_client.json 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060
  1. {
  2. "apiVersion": "1.0",
  3. "apis": [
  4. {
  5. "description": "acceptEvent",
  6. "operations": [
  7. {
  8. "method": "GET",
  9. "summary": "受理事件",
  10. "notes": "受理事件",
  11. "nickname": "acceptEvent",
  12. "produces": [
  13. "*/*"
  14. ],
  15. "consumes": [
  16. "application/json"
  17. ],
  18. "parameters": [
  19. {
  20. "allowMultiple": false,
  21. "defaultValue": "",
  22. "description": "事件ID,可通过/event/client/getEventList接口获得",
  23. "name": "eventId",
  24. "paramType": "path",
  25. "type": "string",
  26. "required": true
  27. },
  28. {
  29. "allowMultiple": false,
  30. "description": "_openCLIENT 默认值是RIIL",
  31. "name": "_openCLIENT",
  32. "paramAccess": "",
  33. "paramType": "query",
  34. "type": "string",
  35. "required": true
  36. }
  37. ],
  38. "responseMessages": [
  39. {
  40. "code": 200,
  41. "message": null
  42. },
  43. {
  44. "code": 500,
  45. "message": "请求出错,返回JSON: {message:\"错误信息\"}"
  46. },
  47. {
  48. "code": 502,
  49. "message": "缺少ssoToken或ssoToken已过期"
  50. }
  51. ],
  52. "deprecated": "false",
  53. "type": "void"
  54. }
  55. ],
  56. "path": "/event/client/accept/{eventId}"
  57. },
  58. {
  59. "description": "getEventData",
  60. "operations": [
  61. {
  62. "method": "GET",
  63. "summary": "第三方系统根据系统ID,实时获取BMC产生的告警",
  64. "notes": "第三方系统根据系统ID,实时获取BMC产生的告警",
  65. "nickname": "getEventData",
  66. "produces": [
  67. "*/*"
  68. ],
  69. "consumes": [
  70. "application/json"
  71. ],
  72. "parameters": [
  73. {
  74. "allowMultiple": false,
  75. "defaultValue": "",
  76. "description": "第三方系统ID。可通过系统管理->监控配置->告警推送标准化->第三方标识获得",
  77. "name": "thirdSysId",
  78. "paramType": "path",
  79. "type": "string",
  80. "required": true
  81. }
  82. ],
  83. "responseMessages": [
  84. {
  85. "code": 200,
  86. "message": null,
  87. "responseModel": "第三方获取事件列表"
  88. },
  89. {
  90. "code": 500,
  91. "message": "请求出错,返回JSON: {message:\"错误信息\"}"
  92. },
  93. {
  94. "code": 502,
  95. "message": "缺少ssoToken或ssoToken已过期"
  96. }
  97. ],
  98. "deprecated": "false",
  99. "type": "第三方获取事件列表"
  100. }
  101. ],
  102. "path": "/event/client/get3rdEventData/{thirdSysId}"
  103. },
  104. {
  105. "description": "getEventList",
  106. "operations": [
  107. {
  108. "method": "POST",
  109. "summary": "查询事件列表",
  110. "notes": "查询事件列表",
  111. "nickname": "getEventList",
  112. "produces": [
  113. "*/*"
  114. ],
  115. "consumes": [
  116. "application/json"
  117. ],
  118. "parameters": [
  119. {
  120. "allowMultiple": false,
  121. "description": "查询事件类型(未受理:unaccepted_event_view 已受理:accepted_event_view)",
  122. "name": "viewType",
  123. "paramAccess": "",
  124. "paramType": "query",
  125. "type": "string",
  126. "required": true
  127. },
  128. {
  129. "allowMultiple": false,
  130. "description": "域ID,可通过/login接口获得",
  131. "name": "domainId",
  132. "paramAccess": "",
  133. "paramType": "query",
  134. "type": "string",
  135. "required": false
  136. },
  137. {
  138. "allowMultiple": false,
  139. "description": "事件名称",
  140. "name": "eventName",
  141. "paramAccess": "",
  142. "paramType": "query",
  143. "type": "string",
  144. "required": false
  145. },
  146. {
  147. "allowMultiple": false,
  148. "description": "资源类型",
  149. "name": "resType",
  150. "paramAccess": "",
  151. "paramType": "query",
  152. "type": "string",
  153. "required": false
  154. },
  155. {
  156. "allowMultiple": false,
  157. "description": "资源IP地址",
  158. "name": "resIp",
  159. "paramAccess": "",
  160. "paramType": "query",
  161. "type": "string",
  162. "required": false
  163. },
  164. {
  165. "allowMultiple": false,
  166. "description": "资源名称",
  167. "name": "resName",
  168. "paramAccess": "",
  169. "paramType": "query",
  170. "type": "string",
  171. "required": false
  172. },
  173. {
  174. "allowMultiple": false,
  175. "description": "是否显示未受理但已恢复的告警,默认false",
  176. "name": "relRecoveredEvent",
  177. "paramAccess": "",
  178. "paramType": "query",
  179. "type": "string",
  180. "required": false
  181. },
  182. {
  183. "allowMultiple": false,
  184. "description": "事件级别,默认全部(1:信息,2:未知,3:警告,4:次要,5:主要,6:严重)",
  185. "name": "level",
  186. "paramAccess": "",
  187. "paramType": "query",
  188. "type": "string",
  189. "required": false
  190. },
  191. {
  192. "allowMultiple": false,
  193. "description": "是否分页,默认不分页(0:不分页,1:分页)",
  194. "name": "isPageing",
  195. "paramAccess": "",
  196. "paramType": "query",
  197. "type": "string",
  198. "required": false
  199. },
  200. {
  201. "allowMultiple": false,
  202. "description": "列表分页的请求页数,默认1",
  203. "name": "pageIndex",
  204. "paramAccess": "",
  205. "paramType": "query",
  206. "type": "string",
  207. "required": false
  208. },
  209. {
  210. "allowMultiple": false,
  211. "description": "IP或者是资源名称",
  212. "name": "ipOrResName",
  213. "paramAccess": "",
  214. "paramType": "query",
  215. "type": "string",
  216. "required": false
  217. },
  218. {
  219. "allowMultiple": false,
  220. "description": "事件类型",
  221. "name": "eventTypes",
  222. "paramAccess": "",
  223. "paramType": "query",
  224. "type": "string",
  225. "required": false
  226. },
  227. {
  228. "allowMultiple": false,
  229. "name": "resRange",
  230. "paramType": "query",
  231. "type": "string",
  232. "required": false
  233. },
  234. {
  235. "allowMultiple": false,
  236. "description": "选填,排序字段值,只支持一个排序sortColumn和sortType 必须同时不为空才生效字段",
  237. "name": "sortColumn",
  238. "paramAccess": "",
  239. "paramType": "query",
  240. "type": "string",
  241. "required": false
  242. },
  243. {
  244. "allowMultiple": false,
  245. "description": "选填,排序字段值,只支持一个排序sortColumn和sortType 必须同时不为空才生效字段,无默认值",
  246. "name": "sortType",
  247. "paramAccess": "",
  248. "paramType": "query",
  249. "type": "string",
  250. "required": false
  251. },
  252. {
  253. "allowMultiple": false,
  254. "description": "事件对应资源所属的主资源的treenodeid, 如果事件对应的资源是主资源,就放他自己的",
  255. "name": "mainTreeNodeId",
  256. "paramAccess": "",
  257. "paramType": "query",
  258. "type": "string",
  259. "required": false
  260. },
  261. {
  262. "allowMultiple": false,
  263. "description": "tree节点ID,如:base为00;host为00.01,AIX就是00.01.01 如果是此模板为子资源模板,此列为空",
  264. "name": "treeNodeId",
  265. "paramAccess": "",
  266. "paramType": "query",
  267. "type": "string",
  268. "required": false
  269. },
  270. {
  271. "allowMultiple": false,
  272. "description": "列表分页中每页条数,可不传,默认20",
  273. "name": "pageSize",
  274. "paramAccess": "",
  275. "paramType": "query",
  276. "type": "string",
  277. "required": false
  278. },
  279. {
  280. "allowMultiple": false,
  281. "name": "eventTimeType",
  282. "paramType": "query",
  283. "type": "string",
  284. "required": false
  285. },
  286. {
  287. "allowMultiple": false,
  288. "description": "告警首次发生时间",
  289. "name": "eventTimeStart",
  290. "paramAccess": "",
  291. "paramType": "query",
  292. "type": "string",
  293. "required": false
  294. },
  295. {
  296. "allowMultiple": false,
  297. "description": "告警结束时间",
  298. "name": "eventTimeEnd",
  299. "paramAccess": "",
  300. "paramType": "query",
  301. "type": "string",
  302. "required": false
  303. },
  304. {
  305. "allowMultiple": false,
  306. "description": "_openCLIENT 默认值是RIIL",
  307. "name": "_openCLIENT",
  308. "paramAccess": "",
  309. "paramType": "query",
  310. "type": "string",
  311. "required": true
  312. }
  313. ],
  314. "responseMessages": [
  315. {
  316. "code": 200,
  317. "message": null,
  318. "responseModel": "事件列表数据"
  319. },
  320. {
  321. "code": 500,
  322. "message": "请求出错,返回JSON: {message:\"错误信息\"}"
  323. },
  324. {
  325. "code": 502,
  326. "message": "缺少ssoToken或ssoToken已过期"
  327. }
  328. ],
  329. "deprecated": "false",
  330. "type": "事件列表数据"
  331. }
  332. ],
  333. "path": "/event/client/getEventList"
  334. },
  335. {
  336. "description": "getLogAlarmList",
  337. "operations": [
  338. {
  339. "method": "POST",
  340. "summary": "获取日志事件列表",
  341. "notes": "getLogAlarmList",
  342. "nickname": "getLogAlarmList",
  343. "produces": [
  344. "*/*"
  345. ],
  346. "consumes": [
  347. "application/json"
  348. ],
  349. "parameters": [
  350. {
  351. "allowMultiple": false,
  352. "description": "是否分页,默认不分页",
  353. "name": "isPageing",
  354. "paramAccess": "",
  355. "paramType": "query",
  356. "type": "string",
  357. "required": false
  358. },
  359. {
  360. "allowMultiple": false,
  361. "description": "列表分页中每页条数,可不传,默认20",
  362. "name": "pageSize",
  363. "paramAccess": "",
  364. "paramType": "query",
  365. "type": "string",
  366. "required": false
  367. },
  368. {
  369. "allowMultiple": false,
  370. "description": "列表分页的请求页数,默认1",
  371. "name": "pageIndex",
  372. "paramAccess": "",
  373. "paramType": "query",
  374. "type": "string",
  375. "required": false
  376. },
  377. {
  378. "allowMultiple": false,
  379. "description": "日志类型(Window:logmonitor-plugin-windows Syslog:logmonitor-plugin-syslog)",
  380. "name": "plugId",
  381. "paramAccess": "",
  382. "paramType": "query",
  383. "type": "string",
  384. "required": false
  385. },
  386. {
  387. "allowMultiple": false,
  388. "description": "告警级别,可穿多个以“,”分割(严重:CRITICAL 主要: MAJOR 次要: MINOR 警告: WARNING 信息: CLEARED)",
  389. "name": "alarmLevels",
  390. "paramAccess": "",
  391. "paramType": "query",
  392. "type": "string",
  393. "required": false
  394. },
  395. {
  396. "allowMultiple": false,
  397. "description": "IP地址",
  398. "name": "alarmsModeContext",
  399. "paramAccess": "",
  400. "paramType": "query",
  401. "type": "string",
  402. "required": false
  403. },
  404. {
  405. "allowMultiple": false,
  406. "description": "_openCLIENT 默认值是RIIL",
  407. "name": "_openCLIENT",
  408. "paramAccess": "",
  409. "paramType": "query",
  410. "type": "string",
  411. "required": true
  412. }
  413. ],
  414. "responseMessages": [
  415. {
  416. "code": 200,
  417. "message": null,
  418. "responseModel": "日志事件列表数据"
  419. },
  420. {
  421. "code": 500,
  422. "message": "请求出错,返回JSON: {message:\"错误信息\"}"
  423. },
  424. {
  425. "code": 502,
  426. "message": "缺少ssoToken或ssoToken已过期"
  427. }
  428. ],
  429. "deprecated": "false",
  430. "type": "日志事件列表数据"
  431. }
  432. ],
  433. "path": "/event/client/getLogAlarmList"
  434. }
  435. ],
  436. "basePath": "/adapter",
  437. "consumes": [
  438. "application/json"
  439. ],
  440. "models": {
  441. "Alarm3rdEventDataVO": {
  442. "description": "",
  443. "id": "Alarm3rdEventDataVO",
  444. "properties": {
  445. "id": {
  446. "description": "告警ID",
  447. "required": false,
  448. "type": "string"
  449. },
  450. "source": {
  451. "description": "告警来源",
  452. "required": false,
  453. "type": "string"
  454. },
  455. "firstTime": {
  456. "description": "告警产生时间",
  457. "required": false,
  458. "type": "string"
  459. },
  460. "resName": {
  461. "description": "资源名称",
  462. "required": false,
  463. "type": "string"
  464. },
  465. "eventState": {
  466. "description": "告警状态,(-1:未恢复,1:恢复)",
  467. "required": false,
  468. "type": "string"
  469. },
  470. "eventType": {
  471. "description": "告警类型,(AVAIL_EVENT:可用性告警,PERF_EVENT:性能预警,CONF_EVENT:配置预警)",
  472. "required": false,
  473. "type": "string"
  474. },
  475. "resTypeName": {
  476. "description": "资源类型名称",
  477. "required": false,
  478. "type": "string"
  479. },
  480. "instId": {
  481. "description": "主资源ID",
  482. "required": false,
  483. "type": "string"
  484. },
  485. "treeNodeId": {
  486. "description": "tree节点ID,如:base为00;host为00.01,AIX就是00.01.01 如果是此模板为子资源模板,此列为空",
  487. "required": false,
  488. "type": "string"
  489. },
  490. "subInstId": {
  491. "description": "子资源ID",
  492. "required": false,
  493. "type": "string"
  494. },
  495. "resTypeId": {
  496. "description": "资源类型ID",
  497. "required": false,
  498. "type": "string"
  499. },
  500. "metricId": {
  501. "description": "指标ID",
  502. "required": false,
  503. "type": "string"
  504. },
  505. "eventName": {
  506. "description": "告警名称",
  507. "required": false,
  508. "type": "string"
  509. },
  510. "recoverTime": {
  511. "description": "告警恢复时间",
  512. "required": false,
  513. "type": "string"
  514. },
  515. "mainTreeNodeId": {
  516. "description": "告警对应资源所属的主资源的tree节点Id, 如果告警对应的资源是主资源,就放它自己的节点Id",
  517. "required": false,
  518. "type": "string"
  519. },
  520. "eventTypeName": {
  521. "description": "告警类型名称,(AVAIL_EVENT:可用性告警,PERF_EVENT:性能预警,CONF_EVENT:配置预警)",
  522. "required": false,
  523. "type": "string"
  524. },
  525. "eventLevelName": {
  526. "description": "告警级别名称,(1:信息,2:未知,3:警告,4:次要,5:主要,6:严重)",
  527. "required": false,
  528. "type": "string"
  529. },
  530. "recoverEventId": {
  531. "description": "恢复的告警ID",
  532. "required": false,
  533. "type": "string"
  534. },
  535. "eventLevel": {
  536. "description": "告警级别,(1:信息,2:未知,3:警告,4:次要,5:主要,6:严重)",
  537. "required": false,
  538. "type": "string"
  539. },
  540. "resIp": {
  541. "description": "资源IP",
  542. "required": false,
  543. "type": "string"
  544. },
  545. "eventMsg": {
  546. "description": "告警信息内容",
  547. "required": false,
  548. "type": "string"
  549. },
  550. "recovered": {
  551. "description": "记录告警是否恢复,(0:未恢复,1:恢复)",
  552. "required": false,
  553. "type": "string"
  554. },
  555. "resIpV6": {
  556. "description": "ipv6地址",
  557. "required": false,
  558. "type": "string"
  559. }
  560. }
  561. },
  562. "第三方获取事件列表": {
  563. "description": "",
  564. "id": "第三方获取事件列表",
  565. "properties": {
  566. "eventDatas": {
  567. "items": {
  568. "type": "Alarm3rdEventDataVO"
  569. },
  570. "required": false,
  571. "type": "array"
  572. }
  573. }
  574. },
  575. "EventVO": {
  576. "description": "",
  577. "id": "EventVO",
  578. "properties": {
  579. "name": {
  580. "description": "事件名称",
  581. "required": false,
  582. "type": "string"
  583. },
  584. "time": {
  585. "description": "事件产生时间, 长整型,毫秒数",
  586. "required": false,
  587. "format": "int64",
  588. "type": "integer"
  589. },
  590. "level": {
  591. "description": "事件级别",
  592. "required": false,
  593. "type": "string"
  594. },
  595. "resName": {
  596. "description": "资源名称",
  597. "required": false,
  598. "type": "string"
  599. },
  600. "viewType": {
  601. "description": "未受理:unaccepted_event_view已受理:accepted_event_view",
  602. "required": false,
  603. "type": "string"
  604. },
  605. "eventState": {
  606. "description": "事件状态",
  607. "required": false,
  608. "type": "string"
  609. },
  610. "eventType": {
  611. "description": "事件类型(AVAIL_EVENT(可用性事件)CONF_EVENT(配置事件)PERF_EVENT(性能事件))",
  612. "required": false,
  613. "type": "string"
  614. },
  615. "resTempId": {
  616. "description": "模板ID",
  617. "required": false,
  618. "type": "string"
  619. },
  620. "eventId": {
  621. "description": "事件ID",
  622. "required": false,
  623. "type": "string"
  624. },
  625. "resType": {
  626. "description": "资源类型",
  627. "required": false,
  628. "type": "string"
  629. },
  630. "ip": {
  631. "description": "IP",
  632. "required": false,
  633. "type": "string"
  634. },
  635. "policyId": {
  636. "description": "策略ID",
  637. "required": false,
  638. "type": "string"
  639. },
  640. "metricId": {
  641. "description": "指标ID",
  642. "required": false,
  643. "type": "string"
  644. },
  645. "metricName": {
  646. "description": "指标名称",
  647. "required": false,
  648. "type": "string"
  649. },
  650. "resId": {
  651. "description": "资源ID",
  652. "required": false,
  653. "type": "string"
  654. },
  655. "collectType": {
  656. "description": "采集类型",
  657. "required": false,
  658. "type": "string"
  659. },
  660. "isApp": {
  661. "description": "是否为基础应用(1:是基础应用,0:非基础应用)",
  662. "required": false,
  663. "type": "string"
  664. },
  665. "createTime": {
  666. "description": "产生时间",
  667. "required": false,
  668. "type": "string"
  669. },
  670. "subResId": {
  671. "description": "子资源ID",
  672. "required": false,
  673. "type": "string"
  674. },
  675. "recovered": {
  676. "description": "recovered",
  677. "required": false,
  678. "type": "string"
  679. },
  680. "showAccept": {
  681. "required": false,
  682. "type": "boolean"
  683. },
  684. "showMaintain": {
  685. "required": false,
  686. "type": "boolean"
  687. },
  688. "recoveredEventId": {
  689. "description": "事件ID",
  690. "required": false,
  691. "type": "string"
  692. }
  693. }
  694. },
  695. "获取事件列表查询对象": {
  696. "description": "",
  697. "id": "获取事件列表查询对象",
  698. "properties": {
  699. "viewType": {
  700. "description": "查询事件类型(未受理:unaccepted_event_view 已受理:accepted_event_view)",
  701. "required": true,
  702. "type": "string"
  703. },
  704. "domainId": {
  705. "description": "域ID,可通过/login接口获得",
  706. "required": false,
  707. "type": "string"
  708. },
  709. "eventName": {
  710. "description": "事件名称",
  711. "required": false,
  712. "type": "string"
  713. },
  714. "resType": {
  715. "description": "资源类型",
  716. "required": false,
  717. "type": "string"
  718. },
  719. "resIp": {
  720. "description": "资源IP地址",
  721. "required": false,
  722. "type": "string"
  723. },
  724. "resName": {
  725. "description": "资源名称",
  726. "required": false,
  727. "type": "string"
  728. },
  729. "relRecoveredEvent": {
  730. "description": "是否显示未受理但已恢复的告警,默认false",
  731. "required": false,
  732. "type": "string"
  733. },
  734. "level": {
  735. "description": "事件级别,默认全部(1:信息,2:未知,3:警告,4:次要,5:主要,6:严重)",
  736. "required": false,
  737. "type": "string"
  738. },
  739. "isPageing": {
  740. "description": "是否分页,默认不分页(0:不分页,1:分页)",
  741. "required": false,
  742. "type": "string"
  743. },
  744. "pageIndex": {
  745. "description": "列表分页的请求页数,默认1",
  746. "required": false,
  747. "type": "string"
  748. },
  749. "ipOrResName": {
  750. "description": "IP或者是资源名称",
  751. "required": false,
  752. "type": "string"
  753. },
  754. "eventTypes": {
  755. "description": "事件类型",
  756. "required": false,
  757. "type": "string"
  758. },
  759. "resRange": {
  760. "required": false,
  761. "type": "string"
  762. },
  763. "sortColumn": {
  764. "description": "选填,排序字段值,只支持一个排序sortColumn和sortType 必须同时不为空才生效字段",
  765. "required": false,
  766. "type": "string"
  767. },
  768. "sortType": {
  769. "description": "选填,排序字段值,只支持一个排序sortColumn和sortType 必须同时不为空才生效字段,无默认值",
  770. "required": false,
  771. "type": "string"
  772. },
  773. "mainTreeNodeId": {
  774. "description": "事件对应资源所属的主资源的treenodeid, 如果事件对应的资源是主资源,就放他自己的",
  775. "required": false,
  776. "type": "string"
  777. },
  778. "treeNodeId": {
  779. "description": "tree节点ID,如:base为00;host为00.01,AIX就是00.01.01 如果是此模板为子资源模板,此列为空",
  780. "required": false,
  781. "type": "string"
  782. },
  783. "pageSize": {
  784. "description": "列表分页中每页条数,可不传,默认20",
  785. "required": false,
  786. "type": "string"
  787. },
  788. "eventTimeType": {
  789. "required": false,
  790. "type": "string"
  791. },
  792. "eventTimeStart": {
  793. "description": "告警首次发生时间",
  794. "required": false,
  795. "type": "string"
  796. },
  797. "eventTimeEnd": {
  798. "description": "告警结束时间",
  799. "required": false,
  800. "type": "string"
  801. }
  802. }
  803. },
  804. "获取登录信息": {
  805. "description": "",
  806. "id": "获取登录信息",
  807. "properties": {
  808. "_openCLIENT": {
  809. "description": "_openCLIENT 默认值是RIIL",
  810. "required": true,
  811. "type": "string"
  812. }
  813. }
  814. },
  815. "事件列表数据": {
  816. "description": "",
  817. "id": "事件列表数据",
  818. "properties": {
  819. "eventCount": {
  820. "items": {
  821. "type": "Entry«string,int»"
  822. },
  823. "required": false,
  824. "type": "array"
  825. },
  826. "totalCount": {
  827. "required": false,
  828. "format": "int32",
  829. "type": "integer"
  830. },
  831. "totalPage": {
  832. "description": "总页数(分页显示时使用)",
  833. "required": false,
  834. "format": "int32",
  835. "type": "integer"
  836. },
  837. "eventList": {
  838. "description": "EventVO对象集合",
  839. "items": {
  840. "type": "EventVO"
  841. },
  842. "required": false,
  843. "type": "array"
  844. },
  845. "pageIndex": {
  846. "description": "当前显示页(分页显示时使用)",
  847. "required": false,
  848. "format": "int32",
  849. "type": "integer"
  850. }
  851. }
  852. },
  853. "Entry«string,int»": {
  854. "description": "",
  855. "id": "Entry«string,int»",
  856. "properties": {
  857. "key": {
  858. "required": false,
  859. "format": "int32",
  860. "type": "integer"
  861. }
  862. }
  863. },
  864. "Void": {
  865. "description": "",
  866. "id": "Void",
  867. "properties": {}
  868. },
  869. "日志事件列表数据": {
  870. "description": "",
  871. "id": "日志事件列表数据",
  872. "properties": {
  873. "logEventList": {
  874. "description": "LogSummaryEventAlarmPojo 对象集合",
  875. "items": {
  876. "type": "LogSummaryEventAlarmVo"
  877. },
  878. "required": false,
  879. "type": "array"
  880. }
  881. }
  882. },
  883. "日志事件列表的查询对象": {
  884. "description": "",
  885. "id": "日志事件列表的查询对象",
  886. "properties": {
  887. "isPageing": {
  888. "description": "是否分页,默认不分页",
  889. "required": false,
  890. "type": "string"
  891. },
  892. "pageSize": {
  893. "description": "列表分页中每页条数,可不传,默认20",
  894. "required": false,
  895. "type": "string"
  896. },
  897. "pageIndex": {
  898. "description": "列表分页的请求页数,默认1",
  899. "required": false,
  900. "type": "string"
  901. },
  902. "plugId": {
  903. "description": "日志类型(Window:logmonitor-plugin-windows Syslog:logmonitor-plugin-syslog)",
  904. "required": false,
  905. "type": "string"
  906. },
  907. "alarmLevels": {
  908. "description": "告警级别,可穿多个以“,”分割(严重:CRITICAL 主要: MAJOR 次要: MINOR 警告: WARNING 信息: CLEARED)",
  909. "required": false,
  910. "type": "string"
  911. },
  912. "alarmsModeContext": {
  913. "description": "IP地址",
  914. "required": false,
  915. "type": "string"
  916. }
  917. }
  918. },
  919. "LogSummaryEventAlarmVo": {
  920. "description": "",
  921. "id": "LogSummaryEventAlarmVo",
  922. "properties": {
  923. "logType": {
  924. "description": "日志类型",
  925. "required": false,
  926. "type": "string"
  927. },
  928. "alarmLevel": {
  929. "description": "告警级别",
  930. "required": false,
  931. "type": "string"
  932. },
  933. "receiver": {
  934. "description": "接收人",
  935. "required": false,
  936. "type": "string"
  937. },
  938. "resourceName": {
  939. "description": "资源名称",
  940. "required": false,
  941. "type": "string"
  942. },
  943. "sendType": {
  944. "description": "消息类型",
  945. "required": false,
  946. "type": "string"
  947. },
  948. "sendTime": {
  949. "description": "发送时间",
  950. "required": false,
  951. "type": "string"
  952. },
  953. "alarmContent": {
  954. "description": "告警内容",
  955. "required": false,
  956. "type": "string"
  957. },
  958. "sendResult": {
  959. "description": "发送结果",
  960. "required": false,
  961. "type": "string"
  962. },
  963. "alarmsId": {
  964. "description": "事件ID",
  965. "required": false,
  966. "type": "string"
  967. },
  968. "logHost": {
  969. "description": "日志主机",
  970. "required": false,
  971. "type": "string"
  972. },
  973. "name": {
  974. "required": false,
  975. "type": "string"
  976. },
  977. "id": {
  978. "required": false,
  979. "type": "string"
  980. },
  981. "companyId": {
  982. "required": false,
  983. "type": "string"
  984. },
  985. "tag1": {
  986. "required": false,
  987. "type": "string"
  988. },
  989. "tag2": {
  990. "required": false,
  991. "type": "string"
  992. },
  993. "tag3": {
  994. "required": false,
  995. "type": "string"
  996. },
  997. "tag4": {
  998. "required": false,
  999. "type": "string"
  1000. },
  1001. "endIndex": {
  1002. "required": false,
  1003. "format": "int32",
  1004. "type": "integer"
  1005. },
  1006. "pageCountSqlId": {
  1007. "required": false,
  1008. "type": "string"
  1009. },
  1010. "pageSqlId": {
  1011. "required": false,
  1012. "type": "string"
  1013. },
  1014. "pageSize": {
  1015. "required": false,
  1016. "format": "int32",
  1017. "type": "integer"
  1018. },
  1019. "sortColumn": {
  1020. "items": {
  1021. "type": "string"
  1022. },
  1023. "required": false,
  1024. "type": "array"
  1025. },
  1026. "customParamers": {
  1027. "required": false,
  1028. "type": "object"
  1029. },
  1030. "pageIndex": {
  1031. "required": false,
  1032. "format": "int32",
  1033. "type": "integer"
  1034. },
  1035. "sortType": {
  1036. "enum": [
  1037. "ASC",
  1038. "DESC"
  1039. ],
  1040. "required": false,
  1041. "type": "string"
  1042. },
  1043. "orderBy": {
  1044. "required": false,
  1045. "type": "string"
  1046. },
  1047. "startIndex": {
  1048. "required": false,
  1049. "format": "int32",
  1050. "type": "integer"
  1051. }
  1052. }
  1053. }
  1054. },
  1055. "produces": [
  1056. "*/*"
  1057. ],
  1058. "resourcePath": "/event/client",
  1059. "swaggerVersion": "1.2"
  1060. }