@@ -42,7 +42,7 @@ def get_anomaly_data_from_seer_legacy(
42
42
snuba_query = alert_rule .snuba_query
43
43
extra_data = {
44
44
"subscription_id" : subscription .id ,
45
- "organization_id" : subscription .project .organization . id ,
45
+ "organization_id" : subscription .project .organization_id ,
46
46
"project_id" : subscription .project_id ,
47
47
"alert_rule_id" : alert_rule .id ,
48
48
"threshold_type" : alert_rule .threshold_type ,
@@ -180,7 +180,7 @@ def get_anomaly_data_from_seer(
180
180
181
181
extra_data = {
182
182
"subscription_id" : subscription .id ,
183
- "organization_id" : subscription .project .organization . id ,
183
+ "organization_id" : subscription .project .organization_id ,
184
184
"project_id" : subscription .project_id ,
185
185
"source_id" : source_id ,
186
186
"source_type" : source_type ,
@@ -201,7 +201,7 @@ def get_anomaly_data_from_seer(
201
201
cur_window = TimeSeriesPoint (timestamp = timestamp .timestamp (), value = aggregation_value ),
202
202
)
203
203
detect_anomalies_request = DetectAnomaliesRequest (
204
- organization_id = subscription .project .organization . id ,
204
+ organization_id = subscription .project .organization_id ,
205
205
project_id = subscription .project_id ,
206
206
config = anomaly_detection_config ,
207
207
context = context ,
0 commit comments