api.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws...
  2. app: api
  3. # 强制固定必须参数 - host(ipv4,ipv6,域名)
  4. param:
  5. # field-字段名称标识符
  6. - field: host
  7. # name-参数字段显示名称
  8. name: 主机Host
  9. # type-字段类型,样式(大部分映射input标签type属性)
  10. type: host
  11. # 是否是必输项 true-必填 false-可选
  12. required: true
  13. - field: port
  14. name: 端口
  15. type: number
  16. # 当type为number时,用range表示范围
  17. range: '[0,65535]'
  18. required: true
  19. - field: uri
  20. name: URI路径
  21. type: text
  22. # 当type为text时,用limit表示字符串限制大小
  23. limit: 100
  24. required: true
  25. - field: method
  26. name: 请求方式
  27. type: radio
  28. required: true
  29. # 当type为radio单选框,checkbox复选框时,option表示可选项值列表 {name1:value1,name2:value2}
  30. options:
  31. - label: GET请求
  32. value: GET
  33. - label: POST请求
  34. value: POST
  35. - label: PUT请求
  36. value: PUT
  37. - label: DELETE请求
  38. value: DELETE
  39. - field: username
  40. name: 用户名
  41. type: text
  42. # 当type为text时,用limit表示字符串限制大小
  43. limit: 20
  44. required: false
  45. - field: password
  46. name: 密码
  47. type: password
  48. required: false
  49. - field: ssl
  50. name: 开启SSL
  51. # 当type为boolean时,前端用switch展示开关
  52. type: boolean
  53. required: true