Skip to content

Commit

Permalink
created the DataCondition model
Browse files Browse the repository at this point in the history
  • Loading branch information
saponifi3d committed Sep 13, 2024
1 parent 261f6b0 commit 7e4c968
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/sentry/workflow_engine/models/data_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ class DataCondition(DefaultFieldsModel):
"""

__relocation_scope__ = RelocationScope.Organization
__repr__ = sane_repr("name", "organization_id")
__repr__ = sane_repr("type", "condition")

# TODO - map this to snuba Condition
condition = models.CharField(max_length=200)

# This should only store primitives; it may be boolean, string, number, etc.
condition_result = models.JSONField()

threshold = models.FloatField()
condition_result = models.JSONField()
type = models.CharField(max_length=200)

0 comments on commit 7e4c968

Please sign in to comment.