* better default types Signed-off-by: Jess Frazelle <github@jessfraz.com> * more mypy fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * more fixes for mypy Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix mypy; Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix mypy; Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
24 lines
460 B
Python
24 lines
460 B
Python
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.jetstream_api_stats import JetstreamApiStats
|
|
|
|
|
|
class JetstreamStats(BaseModel):
|
|
"""Jetstream statistics."""
|
|
|
|
accounts: int = 0
|
|
|
|
api: JetstreamApiStats = {"errors": 0, "inflight": 0, "total": 0} # type: ignore
|
|
|
|
ha_assets: int = 0
|
|
|
|
memory: int = 0
|
|
|
|
reserved_memory: int = 0
|
|
|
|
reserved_store: int = 0
|
|
|
|
store: int = 0
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|