mirror of
https://github.com/FlipsideCrypto/sdk.git
synced 2026-02-06 18:56:44 +00:00
11 lines
641 B
Python
11 lines
641 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class QueryDefaults(BaseModel):
|
|
ttl_minutes: int = Field(None, description="The number of minutes to cache the query results")
|
|
cached: bool = Field(False, description="Whether or not to cache the query results")
|
|
timeout_minutes: int = Field(None, description="The number of minutes to timeout the query")
|
|
retry_interval_seconds: float = Field(None, description="The number of seconds to wait before retrying the query")
|
|
page_size: int = Field(None, description="The number of results to return per page")
|
|
page_number: int = Field(None, description="The page number to return")
|