ekuiper规则状态异常。

首先通过api创建一个流,body内容如下,此时这个流的状态是停止的。

{
    "triggered": false,
    "id": "00112070-01",
    "name": "00112070-01",
    "sql": "SELECT window_start(),window_end(),rule_id(),deviceId,avg(json_path_query(data, \"$.Pb.value\")) as avg_Pb FROM mqtt_stream where deviceId = \"01\" and messageType = \"PROPERTY_REPORT\" and json_path_exists(data, \"$.Pb\") = true GROUP BY TUMBLINGWINDOW(ss, 300) HAVING avg_Pb >= 20",
    "actions": [
        {
            "rest": {
                "bodyType": "json",
                "enableCache": false,
                "format": "json",
                "method": "POST",
                "omitIfEmpty": false,
                "runAsync": false,
                "sendSingle": true,
                "timeout": 5000,
                "url": "http://hummingbird-core:58081/api/v1/ekuiper/alert"
            }
        }
    ]
}

在对这个流进行更新,body内容如下,更新成功后规则的状态变为运行中,请问是什么原因影响到的。ekuiber版本为:ekuiper:1.10.0-slim,请问需要更新ekuiper版本吗?triggered这个字段是否有用呢?

{
    "triggered": false,
    "id": "00112070-01",
    "name": "00112070-01",
    "sql": "SELECT window_start(),window_end(),rule_id(),deviceId,avg(json_path_query(data, \"$.Pb.value\")) as avg_Pb FROM mqtt_stream where deviceId = \"01\" and messageType = \"PROPERTY_REPORT\" and json_path_exists(data, \"$.Pb\") = true GROUP BY TUMBLINGWINDOW(ss, 300) HAVING avg_Pb >= 20",
    "actions": [
        {
            "rest": {
                "bodyType": "json",
                "enableCache": false,
                "format": "json",
                "method": "POST",
                "omitIfEmpty": false,
                "runAsync": false,
                "sendSingle": true,
                "timeout": 5000,
                "url": "http://hummingbird-core:58081/api/v1/ekuiper/alert"
            }
        }
    ]
}

triggered 就是是否启动的意思。默认不设置会启动。你是想更新后也不启动?那就更新的payload里显式指定 triggered=false

:handshake:感谢