Complete YAML DSL schema reference for stupid-db anomaly detection rules. Covers rule structure, detection templates (spike/drift/absence/threshold), signal composition (AND/OR/NOT), OpenSearch enrichment, notification channels (webhook/email/telegram), scheduling, and filtering. Use when creating, editing, or validating anomaly rules.
Rules live as individual YAML files in {data_dir}/rules/. The Rust rules crate watches this directory and hot-reloads on change. The dashboard writes YAML files directly through the REST API.
apiVersion: v1 # Required. Always "v1"