监测类别新增的请求参数结构更改
This commit is contained in:
17
nezha接口文档.md
17
nezha接口文档.md
@@ -2820,16 +2820,14 @@ data |Object |R |
|
|||||||
参数名称 |类型 |出现要求 |描述
|
参数名称 |类型 |出现要求 |描述
|
||||||
:---- |:--- |:------ |:---
|
:---- |:--- |:------ |:---
|
||||||
name |String |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
|
method |String |R |1、脚本,2、snmp,3、内置,默认:1
|
||||||
deteInterval |Integer |R |监控间隔,单位:s,默认:60
|
deteInterval |Integer |R |监控间隔,单位:s,默认:60
|
||||||
content |String |R |1、脚本储存路径,2、oid,可以为空,3、类全路径
|
content |String |R |1、脚本储存路径,2、oid,可以为空,3、类全路径
|
||||||
i18nCode |String |R |name 的国际化 code,不为空时name显示翻译后的内容,为空直接显示
|
i18nCode |String |R |name 的国际化 code,不为空时name显示翻译后的内容,为空直接显示
|
||||||
remark |String |R |备注
|
remark |String |R |备注
|
||||||
deteTypeMetas |Object[] |R |元数据数据
|
deteTypeMetas |Object[] |R |元数据数据
|
||||||
 id |Integer |R |
|
|
||||||
 name |String |R |显示名称,唯一索引
|
 name |String |R |显示名称,唯一索引
|
||||||
 typeId |Integer |R |类别id
|
|
||||||
 fieldType |String |R |字段分类,1:Tag 数据库添加索引 ,2:field 普通字段, 3:temp 临时字段,数据传输不入库, 4:cal 计算字段,根据field,temp计算得出
|
 fieldType |String |R |字段分类,1:Tag 数据库添加索引 ,2:field 普通字段, 3:temp 临时字段,数据传输不入库, 4:cal 计算字段,根据field,temp计算得出
|
||||||
 dataType |String |R |数据类型,1:counter,需要根据上一个监测周期的数据差值计算2:gauge瞬时值 3:string 字符类型
|
 dataType |String |R |数据类型,1:counter,需要根据上一个监测周期的数据差值计算2:gauge瞬时值 3:string 字符类型
|
||||||
 dataLenth |Integer |R |数据长度
|
 dataLenth |Integer |R |数据长度
|
||||||
@@ -2837,13 +2835,10 @@ deteTypeMetas |Object[] |R |元数据数据
|
|||||||
 oid |String |R |snmp oid
|
 oid |String |R |snmp oid
|
||||||
 unit |String |R |单位
|
 unit |String |R |单位
|
||||||
 dicType |Integer |O |字典类型
|
 dicType |Integer |O |字典类型
|
||||||
 i18nCode |String |R |name 的国际化 code,不为空时name显示翻译后的内容,为空直接显示name
|
|
||||||
 remark |String |R |备注
|
 remark |String |R |备注
|
||||||
deteTypeParams |Object[] |R |类别参数数组
|
deteTypeParams |Object[] |R |类别参数数组
|
||||||
 id |Integer |R |
|
|
||||||
 name |String |R |参数名称
|
 name |String |R |参数名称
|
||||||
 typeId |Integer |R |类别id
|
 paramIndex |Integer |R |参数索引
|
||||||
 param_index |Integer |R |参数索引
|
|
||||||
 defVal |String |R |参数默认值
|
 defVal |String |R |参数默认值
|
||||||
 remark |String |R |备注
|
 remark |String |R |备注
|
||||||
|
|
||||||
@@ -2852,7 +2847,6 @@ deteTypeParams |Object[] |R |类别参数数组
|
|||||||
```
|
```
|
||||||
{
|
{
|
||||||
"name": "enc",
|
"name": "enc",
|
||||||
"typeId": 1,
|
|
||||||
"fieldType": "1",
|
"fieldType": "1",
|
||||||
"dataType": "2",
|
"dataType": "2",
|
||||||
"dataLenth": 1,
|
"dataLenth": 1,
|
||||||
@@ -2864,9 +2858,7 @@ deteTypeParams |Object[] |R |类别参数数组
|
|||||||
"i18nCode": "",
|
"i18nCode": "",
|
||||||
"remark": "",
|
"remark": "",
|
||||||
"deteTypeMetas": [{
|
"deteTypeMetas": [{
|
||||||
"id": 1,
|
|
||||||
"name": "earae",
|
"name": "earae",
|
||||||
"typeId": 1,
|
|
||||||
"fieldType": "",
|
"fieldType": "",
|
||||||
"dataType": "",
|
"dataType": "",
|
||||||
"dataLenth": 1,
|
"dataLenth": 1,
|
||||||
@@ -2874,14 +2866,11 @@ deteTypeParams |Object[] |R |类别参数数组
|
|||||||
"oid": "",
|
"oid": "",
|
||||||
"unit": "",
|
"unit": "",
|
||||||
"dicType": 2,
|
"dicType": 2,
|
||||||
"i18nCode": "",
|
|
||||||
"remark": ""
|
"remark": ""
|
||||||
}],
|
}],
|
||||||
"deteTypeParams": [{
|
"deteTypeParams": [{
|
||||||
"id": 1,
|
|
||||||
"name": "cc",
|
"name": "cc",
|
||||||
"typeId": 1,
|
"paramIndex": 1,
|
||||||
"param_index": 1,
|
|
||||||
"defVal": "",
|
"defVal": "",
|
||||||
"remark": ""
|
"remark": ""
|
||||||
}]
|
}]
|
||||||
|
|||||||
Reference in New Issue
Block a user