Skip to content

Commit

Permalink
🔧 chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrajjoshi committed Feb 26, 2025
1 parent 710007f commit faf8df5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/sentry/integrations/metric_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
from sentry import features
from sentry.constants import CRASH_RATE_ALERT_AGGREGATE_ALIAS
from sentry.incidents.logic import get_incident_aggregates
from sentry.incidents.models.alert_rule import (
AlertRule,
AlertRuleThresholdType,
ComparisonDeltaChoices,
)
from sentry.incidents.models.alert_rule import AlertRule, AlertRuleThresholdType
from sentry.incidents.models.incident import (
INCIDENT_STATUS,
Incident,
Expand Down Expand Up @@ -271,11 +267,7 @@ def metric_alert_unfurl_attachment_info(
if alert_rule.threshold_type is not None
else None
),
(
ComparisonDeltaChoices(alert_rule.comparison_delta)
if alert_rule.comparison_delta is not None
else None
),
alert_rule.comparison_delta,
str(metric_value),
)

Expand Down

0 comments on commit faf8df5

Please sign in to comment.