Class: Aws::AmplifyGen3::Types::BranchDatabaseUsage

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/types.rb

Overview

The usage of a branch's database, sampled once per sampling window of a few minutes. Sampling stops while the backend is paused. A member is absent when its value isn't reported.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#connections ⇒ Integer

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

Returns:

  • (Integer)


932
933
934
935
936
937
938
939
940
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/types.rb', line 932

class BranchDatabaseUsage < Struct.new(
  :storage_bytes,
  :connections,
  :last_used_at,
  :sampled_at,
  :monthly_backend_capacity_unit_hours)
  SENSITIVE = []
  include Aws::Structure
end

#last_used_at ⇒ Time

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:

  • (Time)


932
933
934
935
936
937
938
939
940
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/types.rb', line 932

class BranchDatabaseUsage < Struct.new(
  :storage_bytes,
  :connections,
  :last_used_at,
  :sampled_at,
  :monthly_backend_capacity_unit_hours)
  SENSITIVE = []
  include Aws::Structure
end

#monthly_backend_capacity_unit_hours ⇒ 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.

Returns:

  • (Float)


932
933
934
935
936
937
938
939
940
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/types.rb', line 932

class BranchDatabaseUsage < Struct.new(
  :storage_bytes,
  :connections,
  :last_used_at,
  :sampled_at,
  :monthly_backend_capacity_unit_hours)
  SENSITIVE = []
  include Aws::Structure
end

#sampled_at ⇒ Time

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:

  • (Time)


932
933
934
935
936
937
938
939
940
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/types.rb', line 932

class BranchDatabaseUsage < Struct.new(
  :storage_bytes,
  :connections,
  :last_used_at,
  :sampled_at,
  :monthly_backend_capacity_unit_hours)
  SENSITIVE = []
  include Aws::Structure
end

#storage_bytes ⇒ Integer

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

Returns:

  • (Integer)


932
933
934
935
936
937
938
939
940
# File 'gems/aws-sdk-amplifygen3/lib/aws-sdk-amplifygen3/types.rb', line 932

class BranchDatabaseUsage < Struct.new(
  :storage_bytes,
  :connections,
  :last_used_at,
  :sampled_at,
  :monthly_backend_capacity_unit_hours)
  SENSITIVE = []
  include Aws::Structure
end