Skip to content

BucketInfo

Bases: BaseModel

Information about each bucket

Source code in reduct/bucket.py
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
class BucketInfo(BaseModel):
    """Information about each bucket"""

    name: str
    """name of bucket"""

    entry_count: int
    """number of entries in the bucket"""

    size: int
    """size of bucket data in bytes"""

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

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

    is_provisioned: bool = False
    """bucket is provisioned amd you can't remove it or change its settings"""

entry_count: int instance-attribute

number of entries in the bucket

is_provisioned: bool = False class-attribute instance-attribute

bucket is provisioned amd you can't remove it or change its settings

latest_record: int instance-attribute

UNIX timestamp of the latest record in microseconds

name: str instance-attribute

name of bucket

oldest_record: int instance-attribute

UNIX timestamp of the oldest record in microseconds

size: int instance-attribute

size of bucket data in bytes

Bases: BaseModel

List of buckets

Source code in reduct/client.py
74
75
76
77
class BucketList(BaseModel):
    """List of buckets"""

    buckets: List[BucketInfo]