Skip to content

Commit 0b43a67

Browse files
feat(billing): Update quota endpoints for Seer (#103948)
will follow up in getsentry/getsentry#18917 Adds optional `seat_object` param to `record_seer_run` and adds `check_seer_quota` method.
1 parent 2928baa commit 0b43a67

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/sentry/quotas/base.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,13 @@ def has_available_reserved_budget(self, org_id: int, data_category: DataCategory
694694
"""
695695
return True
696696

697-
def record_seer_run(self, org_id: int, project_id: int, data_category: DataCategory) -> None:
697+
def record_seer_run(
698+
self,
699+
org_id: int,
700+
project_id: int,
701+
data_category: DataCategory,
702+
seat_object: SeatObject | None = None,
703+
) -> None:
698704
"""
699705
Records a seer run for an organization.
700706
"""
@@ -725,3 +731,11 @@ def get_metric_detector_limit(self, org_id: int) -> int:
725731
Returns the maximum number of detectors allowed for the organization's plan type.
726732
"""
727733
return -1
734+
735+
def check_seer_quota(
736+
self, org_id: int, data_category: DataCategory, seat_object: SeatObject | None = None
737+
) -> bool:
738+
"""
739+
Checks if the organization has access to Seer for the given data category and seat object.
740+
"""
741+
return True

0 commit comments

Comments
 (0)