id: "syslog-access-log.apinto.com" name: "syslog-access-log" cname: "Syslog日志" resume: "将请求和响应日志发送到Syslog中" version: "v1.0.0" icon: "SYSLOG日志.png" driver: "dynamic.apinto.com" front: template/syslog-access-log navigation: "navigation.system" group_id: "log" frontend: - name: syslog-access-log driver: apinto.intelligent.normal router: - path: template/syslog-access-log type: normal define: # 动态模块定义 profession: output drivers: - name: syslog_output title: Syslog skill: Access-Output fields: - name: title # 定义从响应中对应字段中获取显示值 title: 名称 - name: id title: ID - name: driver title: 驱动名称 - name: description title: 描述 render: syslog_output: | { "type": "object", "properties": { "scopes": { "type": "array", "title": "作用范围", "x-decorator": "FormItem", "x-component": "ArrayItems", "x-decorator-props": { "labelCol": 6, "wrapperCol": 10 }, "name": "scopes", "x-index": 0, "required": true, "items": { "type": "void", "x-component": "Space", "properties": { "sort": { "type": "void", "x-decorator": "FormItem", "x-component": "ArrayItems.SortHandle", "name": "sort", "x-index": 0 }, "select": { "type": "string", "x-decorator": "FormItem", "x-component": "Select", "enum": [ { "label": "Access日志", "value": "access_log" } ], "name": "select", "x-index": 1 }, "remove": { "type": "void", "x-decorator": "FormItem", "x-component": "ArrayItems.Remove", "name": "remove", "x-index": 2 } } }, "properties": { "add": { "type": "void", "title": "添加条目", "x-component": "ArrayItems.Addition", "x-component-props": { "defaultValue": "access_log" }, "name": "add", "x-index": 0 } } }, "network": { "title": "网络协议", "x-decorator": "FormItem", "x-component": "Select", "x-validator": [], "x-component-props": {}, "x-decorator-props": { "labelCol": 6, "wrapperCol": 10 }, "name": "network", "required": true, "enum": [ { "children": [], "label": "TCP", "value": "tcp" }, { "children": [], "label": "UDP", "value": "udp" }, { "children": [], "label": "UNIX", "value": "unix" } ], "x-index": 1 }, "address": { "type": "string", "title": "服务器地址", "x-decorator": "FormItem", "x-component": "Input", "x-validator": [], "x-component-props": {}, "x-decorator-props": { "labelCol": 6, "wrapperCol": 10 }, "name": "address", "x-index": 2, "required": true }, "level": { "title": "日志等级", "x-decorator": "FormItem", "x-component": "Select", "x-validator": [], "x-component-props": {}, "required": true, "name": "level", "enum": [ { "children": [], "label": "ERROR", "value": "error" }, { "children": [], "label": "WARN", "value": "warn" }, { "children": [], "label": "INFO", "value": "info" }, { "children": [], "label": "DEBUG", "value": "debug" }, { "children": [], "label": "TRACE", "value": "trace" } ], "x-decorator-props": { "labelCol": 6, "wrapperCol": 10 }, "x-index": 3 }, "type": { "title": "输出格式", "x-decorator": "FormItem", "x-component": "Select", "x-validator": [], "x-component-props": {}, "x-decorator-props": { "labelCol": 6, "wrapperCol": 10 }, "enum": [ { "children": [], "label": "单行", "value": "line" }, { "children": [], "label": "Json", "value": "json" } ], "default": "line", "name": "type", "x-index": 4, "required": true }, "formatter": { "type": "object", "title": "格式化配置", "x-decorator": "FormItem", "x-component": "CustomCodeboxComponent", "x-component-props": { "mode": "json" }, "x-decorator-props": { "labelCol": 6, "wrapperCol": 10 }, "name": "formatter", "x-index": 5 } } }