Skip to content

Commit

Permalink
update app-api_code.yml (#816)
Browse files Browse the repository at this point in the history
pls check
  • Loading branch information
suncqujsj authored Mar 29, 2023
1 parent ec49cee commit 9a491a8
Showing 1 changed file with 183 additions and 1 deletion.
184 changes: 183 additions & 1 deletion manager/src/main/resources/define/app-api_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,69 @@
# See the License for the specific language governing permissions and
# limitations under the License.


# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring
# 此监控类型所属类别:service-应用服务监控 db-数据库监控 custom-自定义监控 os-操作系统监控
category: custom
# 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws...
app: api_code
# The app api i18n name
# app api国际化名称
name:
zh-CN: API Code
en-US: API Code
# app api所需输入参数定义(根据定义渲染页面UI)
# Input params define for app api(render web ui by the definition)
params:
# field-param field key
# field-变量字段标识符
- field: host
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 主机Host
en-US: Host
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: host
# required-true or false
# 是否是必输项 true-必填 false-可选
required: true
# field-param field key
# field-变量字段标识符
- field: port
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 端口
en-US: Port
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: number
# when type is number, range is required
# 当type为number时,用range表示范围
range: '[0,65535]'
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: true
# default value
# 默认值
defaultValue: 80
# field-param field key
# field-变量字段标识
- field: method
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 请求方式
en-US: Method
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: radio
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: true
# when type is radio checkbox, use option to show optional values {name1:value1,name2:value2}
# 当type为radio单选框, checkbox复选框时, option表示可选项值列表 {name1:value1,name2:value2}
options:
- label: GET
value: GET
Expand All @@ -51,112 +85,260 @@ params:
value: PUT
- label: DELETE
value: DELETE
# field-param field key
# field-变量字段标识
- field: uri
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 相对路径
en-US: URI
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: text
# when type is text, use limit to limit string length
# 当type为text时,用limit表示字符串限制大小
limit: 200
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# 参数输入框提示信息
# param field input placeholder
placeholder: 'Website uri path(no ip port) EG:/v2/book/bar'
# field-param field key
# field-变量字段标识
- field: ssl
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 启用HTTPS
en-US: HTTPS
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: boolean
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: true
# field-param field key
# field-变量字段标识
- field: timeout
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 超时时间(ms)
en-US: Timeout(ms)
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: number
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# field-param field key
# field-变量字段标识
- field: jsonPath
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: JsonPath解析路径
en-US: JsonPath
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: text
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: true
# default value
# 默认值
defaultValue: $.code
# 参数输入框提示信息
# param field input placeholder
placeholder: 'The jsonPath to parse code field in response data'
# field-param field key
# field-变量字段标识
- field: headers
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 请求Headers
en-US: Headers
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: key-value
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# when type is key-value, use keyAlias to config key alias name
# 当字段类型为key-value时, 使用keyAlias配置key的展示别名
keyAlias: Header Name
# when type is key-value, use valueAlias to config value alias name
# 当字段类型为key-value时, 使用valueAlias配置value的展示别名
valueAlias: Header Value
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
- field: params
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 查询Params
en-US: Params
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: key-value
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# when type is key-value, use keyAlias to config key alias name
# 当字段类型为key-value时, 使用keyAlias配置key的展示别名
keyAlias: Param Key
# when type is key-value, use valueAlias to config value alias name
# 当字段类型为key-value时, 使用valueAlias配置value的展示别名
valueAlias: Param Value
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# field-param field key
# field-变量字段标识
- field: contentType
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: Content-Type
en-US: Content-Type
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: text
# 参数输入框提示信息
# param field input placeholder
placeholder: 'Request Body Type'
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# field-param field key
# field-变量字段标识
- field: payload
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 请求BODY
en-US: BODY
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: textarea
# 参数输入框提示信息
# param field input placeholder
placeholder: 'Available When POST PUT'
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# field-param field key
# field-变量字段标识
- field: authType
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 认证方式
en-US: Auth Type
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: radio
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# when type is radio checkbox, use option to show optional values {name1:value1,name2:value2}
# 当type为radio单选框, checkbox复选框时, option表示可选项值列表 {name1:value1,name2:value2}
options:
- label: Basic Auth
value: Basic Auth
- label: Digest Auth
value: Digest Auth
- label: Bearer Token
value: Bearer Token
# field-param field key
# field-变量字段标识
- field: username
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 用户名
en-US: Username
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: text
# when type is text, use limit to limit string length
# 当type为text时,用limit表示字符串限制大小
limit: 20
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# field-param field key
# field-变量字段标识
- field: password
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 密码
en-US: Password
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: password
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# field-param field key
# field-变量字段标识
- field: token
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 认证Token
en-US: Access Token
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: text
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# field-param field key
# field-变量字段标识
- field: keyword
# name-param field display i18n name
# name-参数字段显示名称
name:
zh-CN: 关键字计数
en-US: Keyword Num
# type-param field type(most mapping the html input type)
# type-字段类型,样式(大部分映射input标签type属性)
type: text
# 参数输入框提示信息
# param field input placeholder
placeholder: 'Input Keyword'
# required-true or false
# required-是否是必输项 true-必填 false-可选
required: false
# hide param-true or false
# 是否隐藏字段 true or false
hide: true
# 指标组列表
metrics:
Expand Down

0 comments on commit 9a491a8

Please sign in to comment.