{ "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": "data", "label": "数据来源", "value": "1", "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" }, "action_start": { "type": "exp", "label": "动作", "value": "p1<110&&tag1>=110", "value_type": "bool", "param": { "hold": { "type": "switch", "label": "保持", "value": "1", "value_type": "bool" } } }, "action_end": { "type": "exp", "label": "反馈", "value": "tag1>120", "value_type": "bool", "param": { "timeout": { "type": "input", "label": "超时时间", "value": "3000", "value_type": "int" } } }, "result": { "type": "exp", "label": "监控变量", "value": "tag1-tag2", "value_type": "double", "param": { "unit": { "type": "input", "label": "单位", "value": "", "value_type": "string" }, "limit_down": { "type": "input", "label": "下限", "value": "10", "value_type": "double" }, "limit_up": { "type": "input", "label": "上限", "value": "20", "value_type": "double" } } } }, "output": { "reason": { "type": "input", "label": "报警原因", "value": "", "value_type": "string" }, "error": { "type": "input", "label": "报警内容", "value": "超阈值", "value_type": "string" } }, "self_learning": { "mode": 0, "mode_descripiton": "0-手动设置的区间;1-在线更新的区间;2-离线分析的区间", "is_learning": true } }