Entity

class snuba_sdk.entity.Entity(name, alias=None, sample=None, data_model=None)[source]

Bases: snuba_sdk.expressions.Expression

alias: Optional[str] = None
data_model: Optional[snuba_sdk.schema.EntityModel] = None
name: str
sample: Optional[float] = None
validate()[source]
Return type

None

exception snuba_sdk.entity.InvalidEntityError[source]

Bases: Exception

snuba_sdk.entity.get_required_time_column(entity_name)[source]
Return type

Optional[str]