[monitor] 支持PING监控类型
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws...
|
||||
app: exapmle_type
|
||||
app: exapmle
|
||||
# 强制固定必须参数 - host(ipv4,ipv6,域名)
|
||||
param:
|
||||
# field-字段名称标识符
|
||||
|
||||
@@ -24,10 +24,18 @@ param:
|
||||
required: true
|
||||
- field: method
|
||||
name: 请求方式
|
||||
type: text
|
||||
# 当type为text时,用limit表示字符串限制大小
|
||||
limit: 20
|
||||
type: radio
|
||||
required: true
|
||||
# 当type为radio单选框,checkbox复选框时,option表示可选项值列表 {name1:value1,name2:value2}
|
||||
options:
|
||||
- label: GET请求
|
||||
value: GET
|
||||
- label: POST请求
|
||||
value: POST
|
||||
- label: PUT请求
|
||||
value: PUT
|
||||
- label: DELETE请求
|
||||
value: DELETE
|
||||
- field: username
|
||||
name: 用户名
|
||||
type: text
|
||||
@@ -40,8 +48,6 @@ param:
|
||||
required: false
|
||||
- field: ssl
|
||||
name: 使用SSL
|
||||
# 当type为boolean时,前端用switch展示开关
|
||||
type: boolean
|
||||
required: true
|
||||
# 当type为boolean时,前端用switch展示开关
|
||||
# 当type为radio单选框,checkbox复选框时,option表示可选项值列表
|
||||
# option: Yes,No
|
||||
20
manager/src/main/resources/define/param/ping.yml
Normal file
20
manager/src/main/resources/define/param/ping.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws...
|
||||
app: ping
|
||||
# 强制固定必须参数 - host(ipv4,ipv6,域名)
|
||||
param:
|
||||
# field-字段名称标识符
|
||||
- field: host
|
||||
# name-参数字段显示名称
|
||||
name: 主机Host
|
||||
# type-字段类型,样式(大部分映射input标签type属性)
|
||||
type: host
|
||||
# 是否是必输项 true-必填 false-可选
|
||||
required: true
|
||||
- field: timeout
|
||||
name: Ping超时时间
|
||||
type: number
|
||||
# 当type为number时,用range表示范围
|
||||
range: '[0,100000]'
|
||||
required: true
|
||||
placeholder: '请输入超时时间,单位毫秒'
|
||||
defaultValue: 3000
|
||||
Reference in New Issue
Block a user