Skip to content

Commit

Permalink
ref(doc): add documentation for the ReadinessState enum (#6295)
Browse files Browse the repository at this point in the history
Adding some doc for the `ReadinessState` _Enum_ class to explain its use
and the meaning of each of its members.
  • Loading branch information
viglia committed Sep 12, 2024
1 parent 81a5359 commit bdfe450
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions snuba/datasets/readiness_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@


class ReadinessState(Enum):
"""
Readiness states are essentially feature flags for snuba datasets.
The readiness state defines whether or not a dataset is made available
in specific sentry environments.
Currently, sentry environments include the following:
* local/CI
* SaaS
* S4S
* Self-Hosted
* Single-Tenant
The following is a list of readiness states and the environments
they map to:
* limited -> local/CI
* experimental -> local/CI, S4S
* partial -> local/CI, SaaS, S4S
* deprecate -> local/CI, Self-Hosted
* complete -> local/CI, SaaS, S4S, Self-Hosted, Single-Tenant
"""

LIMITED = "limited"
DEPRECATE = "deprecate"
PARTIAL = "partial"
Expand Down

0 comments on commit bdfe450

Please sign in to comment.