Skip to content

ServerInfo

Bases: BaseModel

Server stats

Source code in reduct/client.py
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
class ServerInfo(BaseModel):
    """Server stats"""

    version: str
    """version of the storage in x.y.z format"""

    bucket_count: int
    """number of buckets in the storage"""

    usage: int
    """stored data in bytes"""

    uptime: int
    """storage uptime in seconds"""

    oldest_record: int
    """UNIX timestamp of the oldest record in microseconds"""

    latest_record: int
    """UNIX timestamp of the latest record in microseconds"""

    license: Optional[LicenseInfo] = None
    """license information"""

    defaults: Defaults
    """Default server settings"""

bucket_count: int instance-attribute

number of buckets in the storage

defaults: Defaults instance-attribute

Default server settings

latest_record: int instance-attribute

UNIX timestamp of the latest record in microseconds

license: Optional[LicenseInfo] = None class-attribute instance-attribute

license information

oldest_record: int instance-attribute

UNIX timestamp of the oldest record in microseconds

uptime: int instance-attribute

storage uptime in seconds

usage: int instance-attribute

stored data in bytes

version: str instance-attribute

version of the storage in x.y.z format