Browse Source

feat(statistical-detectors): register timeseries query window option (#58387)

Registers the `statistical_detectors.query.transactions.timeseries_days`
option, containing an integer number of days of timeseries data to send
to the breakpoint microservice. (More days is a tradeoff of scalability
vs detection accuracy).

Spun out of https://github.com/getsentry/sentry/pull/58192 via
https://github.com/getsentry/sentry/pull/58192/files#r1364475401.
Matt Quinn 1 year ago
parent
commit
70000f2dd7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/sentry/options/defaults.py

+ 6 - 0
src/sentry/options/defaults.py

@@ -1586,6 +1586,12 @@ register(
     default=100,
     flags=FLAG_PRIORITIZE_DISK | FLAG_AUTOMATOR_MODIFIABLE,
 )
+register(
+    "statistical_detectors.query.transactions.timeseries_days",
+    type=Int,
+    default=14,
+    flags=FLAG_PRIORITIZE_DISK | FLAG_AUTOMATOR_MODIFIABLE,
+)
 
 register(
     "options_automator_slack_webhook_enabled",