{
"name": "转发规则B",
"serverId": "4051179d85644928a23d61247aa38751",
"productModel": "",
"devSn": "0638633006916920",
"variableMap": {
"temprature": "a",
"humidity": "b",
"runtime.cpu": "c",
"runtime.mem": "d",
"temprature;humidity": "data",
"sn": "sn",
"msgType": "msg_type",
"updateTime": "update_time"
}
}curl --location 'ssiot.cc/api/forward/rule/add' \
--header 'Authentication: 在用户管理中创建或通过login接口获取' \
--header 'Authentication: 在用户管理中创建或通过login接口获取' \
--header 'Content-Type: application/json' \
--data '{
"name": "转发规则B",
"serverId": "4051179d85644928a23d61247aa38751",
"productModel": "",
"devSn": "0638633006916920",
"variableMap": {
"temprature": "a",
"humidity": "b",
"runtime.cpu": "c",
"runtime.mem": "d",
"temprature;humidity": "data",
"sn": "sn",
"msgType": "msg_type",
"updateTime": "update_time"
}
}'{"code":200,"message":"操作成功","result":{"id":"721212f00ed04725ad480be55a8f30d0","name":"liuzhou转发mq","type":"MQTT","host":"120.25.223.131","port":41883,"url":"","username":"","password":"","dbName":"","creatorId":"","agencyId":"","createTime":"2023-03-14T16:49:12.5012247+08:00","updateTime":"2023-03-14T16:49:12.5012247+08:00","connectStatus":"","lastForwardTime":null,"forwardCount":0},"success":true,"timestamp":1678783752552}