feat(alerts): Support apdex alerts for anomaly detection
Add support for apdex type metric alerts for anomaly detection
Closes https://getsentry.atlassian.net/browse/ALRT-245
:x: 2 Tests Failed:
| Tests completed | Failed | Passed | Skipped |
|---|---|---|---|
| 21659 | 2 | 21657 | 209 |
View the top 2 failed tests by shortest run time
tests.sentry.seer.anomaly_detection.test_store_data.AnomalyDetectionStoreDataTest test_anomaly_detection_fetch_historical_data_apdex_alertStack Traces | 4.75s run time
#x1B[1m#x1B[.../seer/anomaly_detection/test_store_data.py#x1B[0m:187: in test_anomaly_detection_fetch_historical_data_apdex_alert assert {"time": int(self.time_1_ts)} in result.data.get("data") #x1B[1m#x1B[31mE AssertionError: assert {'time': 1724889600} in [{'time': 1723078380}, {'time': 1723078440}, {'time': 1723078500}, {'time': 1723078560}, {'time': 1723078620}, {'time': 1723078680}, ...]#x1B[0m #x1B[1m#x1B[31mE + where [{'time': 1723078380}, {'time': 1723078440}, {'time': 1723078500}, {'time': 1723078560}, {'time': 1723078620}, {'time': 1723078680}, ...] = <built-in method get of dict object at 0x7f100d491640>('data')#x1B[0m #x1B[1m#x1B[31mE + where <built-in method get of dict object at 0x7f100d491640> = {'data': [{'time': 1723078380}, {'time': 1723078440}, {'time': 1723078500}, {'time': 1723078560}, {'time': 1723078620}, {'time': 1723078680}, ...], 'meta': {'fields': {'apdex_300': 'number', 'time': 'date'}}}.get#x1B[0m #x1B[1m#x1B[31mE + where {'data': [{'time': 1723078380}, {'time': 1723078440}, {'time': 1723078500}, {'time': 1723078560}, {'time': 1723078620}, {'time': 1723078680}, ...], 'meta': {'fields': {'apdex_300': 'number', 'time': 'date'}}} = SnubaTSResult(data={'data': [{'time': 1723078380}, {'time': 1723078440}, {'time': 1723078500}, {'time': 1723078560}, {...=datetime.timezone.utc), end=datetime.datetime(2024, 9, 5, 0, 53, 22, 355695, tzinfo=datetime.timezone.utc), rollup=60).data#x1B[0m
tests.sentry.incidents.test_subscription_processor.ProcessUpdateTest test_seer_call_performance_ruleStack Traces | 6.58s run time
#x1B[1m#x1B[.../sentry/incidents/test_subscription_processor.py#x1B[0m:634: in test_seer_call_performance_rule assert deserialized_body["config"]["seasonality"] == throughput_rule.seasonality #x1B[1m#x1B[31mE KeyError: 'seasonality'#x1B[0m
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard
This pull request has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀