A-example.yml 958 B

12345678910111213141516171819202122232425262728293031323334
  1. # 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws...
  2. app: TanCloud
  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,255]'
  18. required: true
  19. - field: username
  20. name: 用户名
  21. type: text
  22. # 当type为text时,用limit表示字符串限制大小
  23. limit: 20
  24. required: false
  25. - field: password
  26. name: 密码
  27. type: password
  28. required: false
  29. - field: ssl
  30. name: 启动SSL
  31. type: radio
  32. required: false
  33. # 当type为radio单选框,checkbox复选框时,option表示可选项值列表
  34. option: Yes,No