Interface BranchDatabaseUsage.Builder

  • Method Details

    • storageBytes

      BranchDatabaseUsage.Builder storageBytes(Long storageBytes)

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

      Parameters:
      storageBytes - The size of the database, in bytes. The database's storage limit applies to this size.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • connections

      BranchDatabaseUsage.Builder connections(Integer connections)

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

      Parameters:
      connections - The number of sessions, including idle sessions, that were connected to the database at the time of SampledAt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUsedAt

      BranchDatabaseUsage.Builder lastUsedAt(Instant lastUsedAt)

      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.

      Parameters:
      lastUsedAt - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampledAt

      BranchDatabaseUsage.Builder sampledAt(Instant sampledAt)

      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.

      Parameters:
      sampledAt - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • monthlyBackendCapacityUnitHours

      BranchDatabaseUsage.Builder monthlyBackendCapacityUnitHours(Double monthlyBackendCapacityUnitHours)

      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.

      Parameters:
      monthlyBackendCapacityUnitHours - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.