2024-07-28 15:21:51 -07:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2022-04-27 12:14:58 -07:00
|
|
|
|
|
|
|
from ..models.jetstream_api_stats import JetstreamApiStats
|
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class JetstreamStats(BaseModel):
|
|
|
|
"""Jetstream statistics."""
|
2022-04-27 12:14:58 -07:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
accounts: int = 0
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-09-10 14:35:25 -07:00
|
|
|
api: JetstreamApiStats = {"errors": 0, "inflight": 0, "total": 0} # type: ignore
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
ha_assets: int = 0
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
memory: int = 0
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
reserved_memory: int = 0
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
reserved_store: int = 0
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
store: int = 0
|
2024-01-06 18:32:21 -08:00
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|