Skip to content

BranchDatabaseUsage

Source code in docs_src/capo_amplifygen3/types/branch_database_usage.py
class BranchDatabaseUsage(TypedDict, closed=True):
    storage_bytes: NotRequired["int"]
    """<p>The size of the database, in bytes. The database's storage limit applies to this size.</p>"""
    connections: NotRequired["int"]
    """<p>The number of sessions, including idle sessions, that were connected to the database at the time of SampledAt.</p>"""
    last_used_at: NotRequired["datetime.datetime"]
    """<p>The end of the most recent sampling window in which the database was used, either by a new connection or by load on an existing connection. The value is in ISO-8601 format.</p>"""
    sampled_at: NotRequired["datetime.datetime"]
    """<p>The end of the most recent sampling window in which one of these values changed. For a branch with steady usage, this time can be old even though the values are current. The value is in ISO-8601 format.</p>"""
    monthly_backend_capacity_unit_hours: NotRequired["float"]
    """<p>The backend capacity unit hours (BCU-hours) that the branch's database used in the current calendar month (UTC). This value is the branch's share of the backend's MonthlyBackendCapacityUnitHours and is counted the same way. The value is 0 when the database used none this month, resets to 0 at 00:00 UTC on the first day of each month, and lags actual use by about one hour. It is absent when the value can't be read.</p>"""

connections instance-attribute

connections: NotRequired[int]

The number of sessions, including idle sessions, that were connected to the database at the time of SampledAt.

last_used_at instance-attribute

last_used_at: NotRequired[datetime]

The end of the most recent sampling window in which the database was used, either by a new connection or by load on an existing connection. The value is in ISO-8601 format.

monthly_backend_capacity_unit_hours instance-attribute

monthly_backend_capacity_unit_hours: NotRequired[float]

The backend capacity unit hours (BCU-hours) that the branch's database used in the current calendar month (UTC). This value is the branch's share of the backend's MonthlyBackendCapacityUnitHours and is counted the same way. The value is 0 when the database used none this month, resets to 0 at 00:00 UTC on the first day of each month, and lags actual use by about one hour. It is absent when the value can't be read.

sampled_at instance-attribute

sampled_at: NotRequired[datetime]

The end of the most recent sampling window in which one of these values changed. For a branch with steady usage, this time can be old even though the values are current. The value is in ISO-8601 format.

storage_bytes instance-attribute

storage_bytes: NotRequired[int]

The size of the database, in bytes. The database's storage limit applies to this size.