sls.project 和 sls.logstore 参数。sls.timespan 配置),不需要 在 SQL 语句中写 WHERE __time__ > ...。__source__ 和 __time__ 字段会被忽略(除非显式指定为值字段)。sls.project:(必填)项目名称。sls.logstore:(必填)日志库名称。sls.timespan.value:(选填)时间跨度数值,默认为 15。sls.timespan.unit:(选填)时间跨度单位,支持 s(秒)、m(分)、h(时)、d(天)。默认为 m。host。该字段可以留空,Monitors 会自动把除了值字段外的所有字段都作为标签字段。error_cnt。$A.field_name 引用数值。Critical: $A.error_cnt > 50,Warning: $A.error_cnt > 10。$A.error_cnt < 5)。${label_name} 变量替换。network_host="a", interface="b" 的网卡挂了。恢复 SQL 可以写:${network_host} 和 ${interface} 替换为实际值后执行查询,如果查到数据,则判定恢复。HAVING 子句过滤异常数据。sls.project 和 sls.logstore。host 在之前的周期中出现过,但在当前及连续 N 个周期中查不到数据,则触发"数据缺失"告警。sls.powersql:truesls.timespan.value:60sls.timespan.unit:m__time__ 进行过滤,除非您有特殊需求。引擎会自动根据上述参数设置 API 请求的 from 和 to 时间戳。sls.from:开始时间戳(秒)。sls.to:结束时间戳(秒)。