discourse-ai/lib/ai_moderation
Natalie Tay fe44d78156
DEV: Expose AI spam scanning metrics (#1077)
This should give us a better idea on how our scanner is faring across sites.

```
# HELP discourse_discourse_ai_spam_detection AI spam scanning statistics
# TYPE discourse_discourse_ai_spam_detection counter
discourse_discourse_ai_spam_detection{db="default",type="scanned"} 16
discourse_discourse_ai_spam_detection{db="default",type="is_spam"} 7
discourse_discourse_ai_spam_detection{db="default",type="false_positive"} 1
discourse_discourse_ai_spam_detection{db="default",type="false_negative"} 2
```
2025-01-27 11:57:01 +08:00
..
entry_point.rb FEATURE: link correctly to filters to assist in debugging spam (#1031) 2024-12-17 11:02:18 +11:00
spam_metric.rb DEV: Expose AI spam scanning metrics (#1077) 2025-01-27 11:57:01 +08:00
spam_report.rb FEATURE: link correctly to filters to assist in debugging spam (#1031) 2024-12-17 11:02:18 +11:00
spam_scanner.rb FEATURE: Add user location info to spam scanner context (#1076) 2025-01-21 17:51:21 +11:00