Class AWS::SimpleDB::DomainMetadata
In: lib/aws/simple_db/domain_metadata.rb
Parent: Object

SimpleDB can report on the amount of data stored in a domain, the number of items, etc.

@example

 sdb = SimpleDB.new
 sdb.domains['mydomain'].metadata.to_h

 # the hash returned above might look like:
 {
   :timestamp => 1300841880,
   :attribute_names_size_bytes => 12,
   :item_count => 1,
   :attribute_value_count => 6,
   :attribute_values_size_bytes => 25,
   :item_names_size_bytes => 3,
   :attribute_name_count => 3
 }

Methods

Included Modules

Core::Model

Constants

ATTRIBUTES = [ :item_count, :item_names_size_bytes, :attribute_name_count, :attribute_names_size_bytes, :attribute_value_count, :attribute_values_size_bytes, :timestamp, ]   @private

Attributes

domain  [R]  @return [Domain] The domain this metadata is describing.

Public Class methods

@param [Domain] The domain to fetch metadata for. @return [DomainMetadata]

Public Instance methods

@return [Integer] The number of unique attribute names in the

  {#domain}.

@return [Integer] The total size of all unique attribute names,

  in bytes.

@return [Integer] The number of all attribute name/value pairs in

  the {#domain}.

@return [Integer] The total size of all attribute values, in bytes.

@return [Integer] The number of all items in the {domain}.

@return [Integer] The total size of all item names in the {domain},

  in bytes.

@return [Integer] The data and time when metadata was calculated

  in Epoch (UNIX) time.

@return [Hash] A hash of all of the metadata attributes for

  this {#domain}.

[Validate]