Interface BackendDatabaseUsage.Builder

  • Method Details

    • lastUsedAt

      BackendDatabaseUsage.Builder lastUsedAt(Instant lastUsedAt)

      The time at which any of the backend's databases was last used, either by a new connection or by load on an existing connection. An open idle connection doesn't count as use. The value lags by a few minutes and is in ISO-8601 format. Absent when it isn't reported.

      Parameters:
      lastUsedAt - The time at which any of the backend's databases was last used, either by a new connection or by load on an existing connection. An open idle connection doesn't count as use. The value lags by a few minutes and is in ISO-8601 format. Absent when it isn't reported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • monthlyBackendCapacityUnitHours

      BackendDatabaseUsage.Builder monthlyBackendCapacityUnitHours(Double monthlyBackendCapacityUnitHours)

      The backend capacity unit hours (BCU-hours) that the backend's databases used in the current calendar month (UTC), across all branches. The value is 0 when the databases 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. Only the Basic plan has a per-backend allowance that this value is compared with.

      Parameters:
      monthlyBackendCapacityUnitHours - The backend capacity unit hours (BCU-hours) that the backend's databases used in the current calendar month (UTC), across all branches. The value is 0 when the databases 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. Only the Basic plan has a per-backend allowance that this value is compared with.
      Returns:
      Returns a reference to this object so that method calls can be chained together.