Query language: Uses SLS SQL syntax.
Required parameters: Each query must specify sls.project and sls.logstore parameters.
Time range: The SLS query time range is controlled by API parameters (configured via sls.timespan). You do not need to write WHERE __time__ > ... in the SQL statement.
Field handling: By default, __source__ and __time__ fields are ignored (unless explicitly specified as value fields).
sls.project: (Required) Project name.
sls.logstore: (Required) Logstore name.
sls.timespan.value: (Optional) Time span value, defaults to 15.
sls.timespan.unit: (Optional) Time span unit, supports s (seconds), m (minutes), h (hours), d (days). Defaults to m.
Label fields: Fields used to distinguish different alert objects. In the example above, this is host. This field can be left empty, and Monitors will automatically treat all fields except value fields as label fields.
Value fields: Numeric fields used for threshold evaluation. In the example above, this is error_cnt.