Class: Rafflesia::ObjectGcData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectGcData
- Defined in:
- lib/rafflesia/objects/object_gc_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ active_query_export_count: :active_query_export_count, candidate_count: :candidate_count, candidate_size_bytes: :candidate_size_bytes, candidates: :candidates, cutoff_modified_before: :cutoff_modified_before, delete: :delete, delete_errors: :delete_errors, deleted_count: :deleted_count, deleted_size_bytes: :deleted_size_bytes, dry_run: :dry_run, expired_query_export_count: :expired_query_export_count, kind: :kind, live_object_count: :live_object_count, live_reference_count: :live_reference_count, max_candidates: :max_candidates, max_delete: :max_delete, max_scan_object_bytes: :max_scan_object_bytes, object_contents_scan_skipped: :object_contents_scan_skipped, object_contents_scanned: :object_contents_scanned, object_count: :object_count, older_than_seconds: :older_than_seconds, query_exports_scanned: :query_exports_scanned, reachability_complete: :reachability_complete, record_files_scanned: :record_files_scanned, retained_live_count: :retained_live_count, retained_young_count: :retained_young_count, schema_version: :schema_version, storage_backend: :storage_backend, store_root: :store_root }.freeze
Instance Attribute Summary collapse
-
#active_query_export_count ⇒ Object
Returns the value of attribute active_query_export_count.
-
#candidate_count ⇒ Object
Returns the value of attribute candidate_count.
-
#candidate_size_bytes ⇒ Object
Returns the value of attribute candidate_size_bytes.
-
#candidates ⇒ Object
Returns the value of attribute candidates.
-
#cutoff_modified_before ⇒ Object
Returns the value of attribute cutoff_modified_before.
-
#delete ⇒ Object
Returns the value of attribute delete.
-
#delete_errors ⇒ Object
Returns the value of attribute delete_errors.
-
#deleted_count ⇒ Object
Returns the value of attribute deleted_count.
-
#deleted_size_bytes ⇒ Object
Returns the value of attribute deleted_size_bytes.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#expired_query_export_count ⇒ Object
Returns the value of attribute expired_query_export_count.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#live_object_count ⇒ Object
Returns the value of attribute live_object_count.
-
#live_reference_count ⇒ Object
Returns the value of attribute live_reference_count.
-
#max_candidates ⇒ Object
Returns the value of attribute max_candidates.
-
#max_delete ⇒ Object
Returns the value of attribute max_delete.
-
#max_scan_object_bytes ⇒ Object
Returns the value of attribute max_scan_object_bytes.
-
#object_contents_scan_skipped ⇒ Object
Returns the value of attribute object_contents_scan_skipped.
-
#object_contents_scanned ⇒ Object
Returns the value of attribute object_contents_scanned.
-
#object_count ⇒ Object
Returns the value of attribute object_count.
-
#older_than_seconds ⇒ Object
Returns the value of attribute older_than_seconds.
-
#query_exports_scanned ⇒ Object
Returns the value of attribute query_exports_scanned.
-
#reachability_complete ⇒ Object
Returns the value of attribute reachability_complete.
-
#record_files_scanned ⇒ Object
Returns the value of attribute record_files_scanned.
-
#retained_live_count ⇒ Object
Returns the value of attribute retained_live_count.
-
#retained_young_count ⇒ Object
Returns the value of attribute retained_young_count.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#storage_backend ⇒ Object
Returns the value of attribute storage_backend.
-
#store_root ⇒ Object
Returns the value of attribute store_root.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectGcData
constructor
A new instance of ObjectGcData.
Constructor Details
#initialize(json) ⇒ ObjectGcData
Returns a new instance of ObjectGcData.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 71 def initialize(json) super() hash = self.class.normalize(json) @active_query_export_count = hash[:active_query_export_count] @candidate_count = hash[:candidate_count] @candidate_size_bytes = hash[:candidate_size_bytes] @candidates = (hash[:candidates] || []).map { |item| item ? Rafflesia::ObjectGcCandidate.new(item) : nil } @cutoff_modified_before = hash[:cutoff_modified_before] @delete = hash[:delete] @delete_errors = (hash[:delete_errors] || []).map { |item| item ? Rafflesia::ObjectGcDeleteError.new(item) : nil } @deleted_count = hash[:deleted_count] @deleted_size_bytes = hash[:deleted_size_bytes] @dry_run = hash[:dry_run] @expired_query_export_count = hash[:expired_query_export_count] @kind = hash[:kind] @live_object_count = hash[:live_object_count] @live_reference_count = hash[:live_reference_count] @max_candidates = hash[:max_candidates] @max_delete = hash[:max_delete] @max_scan_object_bytes = hash[:max_scan_object_bytes] @object_contents_scan_skipped = hash[:object_contents_scan_skipped] @object_contents_scanned = hash[:object_contents_scanned] @object_count = hash[:object_count] @older_than_seconds = hash[:older_than_seconds] @query_exports_scanned = hash[:query_exports_scanned] @reachability_complete = hash[:reachability_complete] @record_files_scanned = hash[:record_files_scanned] @retained_live_count = hash[:retained_live_count] @retained_young_count = hash[:retained_young_count] @schema_version = hash[:schema_version] @storage_backend = hash[:storage_backend] @store_root = hash[:store_root] end |
Instance Attribute Details
#active_query_export_count ⇒ Object
Returns the value of attribute active_query_export_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def active_query_export_count @active_query_export_count end |
#candidate_count ⇒ Object
Returns the value of attribute candidate_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def candidate_count @candidate_count end |
#candidate_size_bytes ⇒ Object
Returns the value of attribute candidate_size_bytes.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def candidate_size_bytes @candidate_size_bytes end |
#candidates ⇒ Object
Returns the value of attribute candidates.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def candidates @candidates end |
#cutoff_modified_before ⇒ Object
Returns the value of attribute cutoff_modified_before.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def cutoff_modified_before @cutoff_modified_before end |
#delete ⇒ Object
Returns the value of attribute delete.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def delete @delete end |
#delete_errors ⇒ Object
Returns the value of attribute delete_errors.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def delete_errors @delete_errors end |
#deleted_count ⇒ Object
Returns the value of attribute deleted_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def deleted_count @deleted_count end |
#deleted_size_bytes ⇒ Object
Returns the value of attribute deleted_size_bytes.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def deleted_size_bytes @deleted_size_bytes end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def dry_run @dry_run end |
#expired_query_export_count ⇒ Object
Returns the value of attribute expired_query_export_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def expired_query_export_count @expired_query_export_count end |
#kind ⇒ Object
Returns the value of attribute kind.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def kind @kind end |
#live_object_count ⇒ Object
Returns the value of attribute live_object_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def live_object_count @live_object_count end |
#live_reference_count ⇒ Object
Returns the value of attribute live_reference_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def live_reference_count @live_reference_count end |
#max_candidates ⇒ Object
Returns the value of attribute max_candidates.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def max_candidates @max_candidates end |
#max_delete ⇒ Object
Returns the value of attribute max_delete.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def max_delete @max_delete end |
#max_scan_object_bytes ⇒ Object
Returns the value of attribute max_scan_object_bytes.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def max_scan_object_bytes @max_scan_object_bytes end |
#object_contents_scan_skipped ⇒ Object
Returns the value of attribute object_contents_scan_skipped.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def object_contents_scan_skipped @object_contents_scan_skipped end |
#object_contents_scanned ⇒ Object
Returns the value of attribute object_contents_scanned.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def object_contents_scanned @object_contents_scanned end |
#object_count ⇒ Object
Returns the value of attribute object_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def object_count @object_count end |
#older_than_seconds ⇒ Object
Returns the value of attribute older_than_seconds.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def older_than_seconds @older_than_seconds end |
#query_exports_scanned ⇒ Object
Returns the value of attribute query_exports_scanned.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def query_exports_scanned @query_exports_scanned end |
#reachability_complete ⇒ Object
Returns the value of attribute reachability_complete.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def reachability_complete @reachability_complete end |
#record_files_scanned ⇒ Object
Returns the value of attribute record_files_scanned.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def record_files_scanned @record_files_scanned end |
#retained_live_count ⇒ Object
Returns the value of attribute retained_live_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def retained_live_count @retained_live_count end |
#retained_young_count ⇒ Object
Returns the value of attribute retained_young_count.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def retained_young_count @retained_young_count end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def schema_version @schema_version end |
#storage_backend ⇒ Object
Returns the value of attribute storage_backend.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def storage_backend @storage_backend end |
#store_root ⇒ Object
Returns the value of attribute store_root.
40 41 42 |
# File 'lib/rafflesia/objects/object_gc_data.rb', line 40 def store_root @store_root end |