Threshold detection
A threshold rule runs a query and compares a count or aggregate against a threshold.Code detection
A code detection runs custom logic against the data. Test it before saving —POST /v1/admin/detections/test dry-runs the code and returns its output and logs without creating a rule.
"kind": "code" and the code field set.