eis/eqpalg/alg_json/13-json.json

84 lines
2.1 KiB
JSON
Raw Normal View History

{
"exp_flag": true,
"tags": {
"tag1": {
"type": "data",
"label": "tag1",
"value": "szTagName",
"value_type": "auto"
},
"tag2": {
"type": "data",
"label": "tag2",
"value": "szTagName",
"value_type": "auto"
}
},
"datasource": {
"type": "const_data",
"label": "数据来源",
"value": "0",
"value_type": "string"
},
"trigger": {
"type": "interval",
"label": "执行周期ms",
"value": "50",
"value_type": "string"
},
"before_exec": "0",
"function": {
"pre_result": {
"type": "exp",
"label": "执行前置条件",
"value": "tag1>0",
"value_type": "bool"
},
"result": {
"type": "exp",
"label": "筛选条件",
"value": "tag1>30",
"value_type": "bool"
},
"sample_X": {
"type": "exp",
"label": "X",
"value": "tag1-tag2",
"value_type": "double"
},
"sample_Y": {
"type": "exp",
"label": "Y",
"value": "tag1+tag2",
"value_type": "double",
"param": {
"scale": {
"type": "input",
"label": "数据误差比(0~1)",
"value": "0.1",
"value_type": "double"
},
"min_len": {
"type": "input",
"label": "相关性计算数据最小长度",
"value": "1000",
"value_type": "int"
}
}
}
},
"output": {
"reason": {
"type": "input",
"label": "报警原因",
"value": "",
"value_type": "string"
},
"error": {
"type": "input",
"label": "报警内容",
"value": "超阈值",
"value_type": "string"
}
}
}