From 6fec4ff619d1b3660b0b4d00c6d6ac401da5e152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Thu, 8 Aug 2019 17:55:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=B5=8B=E7=B1=BB=E5=88=AB=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E7=9A=84=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha接口文档.md | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/nezha接口文档.md b/nezha接口文档.md index 62ba358..888b1de 100644 --- a/nezha接口文档.md +++ b/nezha接口文档.md @@ -2820,16 +2820,14 @@ data |Object |R |  参数名称 |类型 |出现要求 |描述 :---- |:--- |:------ |:--- name |String |R |唯一索引 -viewLevel |String |R |1:用户组,2:系统内全部人员,3:无限制,默认2 +viewLevel |String |R |1:用户组,2:系统内全部人员,3:无限制,默认3(此字段目前不用,预留) method |String |R |1、脚本,2、snmp,3、内置,默认:1 deteInterval |Integer |R |监控间隔,单位:s,默认:60 content |String |R |1、脚本储存路径,2、oid,可以为空,3、类全路径 i18nCode |String |R |name 的国际化 code,不为空时name显示翻译后的内容,为空直接显示 remark |String |R |备注 deteTypeMetas |Object[] |R |元数据数据 - id |Integer |R |  name |String |R |显示名称,唯一索引 - typeId |Integer |R |类别id  fieldType |String |R |字段分类,1:Tag 数据库添加索引 ,2:field 普通字段, 3:temp 临时字段,数据传输不入库, 4:cal 计算字段,根据field,temp计算得出  dataType |String |R |数据类型,1:counter,需要根据上一个监测周期的数据差值计算2:gauge瞬时值 3:string 字符类型  dataLenth |Integer |R |数据长度 @@ -2837,13 +2835,10 @@ deteTypeMetas |Object[] |R |元数据数据  oid |String |R |snmp oid  unit |String |R |单位  dicType |Integer |O |字典类型 - i18nCode |String |R |name 的国际化 code,不为空时name显示翻译后的内容,为空直接显示name  remark |String |R |备注 deteTypeParams |Object[] |R |类别参数数组 - id |Integer |R |  name |String |R |参数名称 - typeId |Integer |R |类别id - param_index |Integer |R |参数索引 + paramIndex |Integer |R |参数索引  defVal |String |R |参数默认值  remark |String |R |备注 @@ -2852,7 +2847,6 @@ deteTypeParams |Object[] |R |类别参数数组 ``` { "name": "enc", - "typeId": 1, "fieldType": "1", "dataType": "2", "dataLenth": 1, @@ -2864,9 +2858,7 @@ deteTypeParams |Object[] |R |类别参数数组 "i18nCode": "", "remark": "", "deteTypeMetas": [{ - "id": 1, "name": "earae", - "typeId": 1, "fieldType": "", "dataType": "", "dataLenth": 1, @@ -2874,14 +2866,11 @@ deteTypeParams |Object[] |R |类别参数数组 "oid": "", "unit": "", "dicType": 2, - "i18nCode": "", "remark": "" }], "deteTypeParams": [{ - "id": 1, "name": "cc", - "typeId": 1, - "param_index": 1, + "paramIndex": 1, "defVal": "", "remark": "" }]