Class: Rafflesia::CacheBenchmarkStep
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CacheBenchmarkStep
- Defined in:
- lib/rafflesia/cache/cache_benchmark_step.rb
Constant Summary collapse
- HASH_ATTRS =
{ all_cache_hits: :all_cache_hits, cache_hit_bytes: :cache_hit_bytes, cache_hit_count: :cache_hit_count, cache_miss_bytes: :cache_miss_bytes, cache_miss_count: :cache_miss_count, elapsed_ms: :elapsed_ms, file_count: :file_count, hit_count: :hit_count, lock_wait_ms: :lock_wait_ms, materialize_db_ms: :materialize_db_ms, name: :name, object_read_bytes: :object_read_bytes, object_read_count: :object_read_count, object_storage_backends: :object_storage_backends, pack_access_mode: :pack_access_mode, remaining_size_bytes: :remaining_size_bytes, remote_read_metrics: :remote_read_metrics, removed_count: :removed_count, resolve_query_ms: :resolve_query_ms, search_ms: :search_ms, selected_size_bytes: :selected_size_bytes, shard_count: :shard_count, status: :status, store_output_ms: :store_output_ms, total_size_bytes: :total_size_bytes, warning_count: :warning_count }.freeze
Instance Attribute Summary collapse
-
#all_cache_hits ⇒ Object
Returns the value of attribute all_cache_hits.
-
#cache_hit_bytes ⇒ Object
Returns the value of attribute cache_hit_bytes.
-
#cache_hit_count ⇒ Object
Returns the value of attribute cache_hit_count.
-
#cache_miss_bytes ⇒ Object
Returns the value of attribute cache_miss_bytes.
-
#cache_miss_count ⇒ Object
Returns the value of attribute cache_miss_count.
-
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
-
#file_count ⇒ Object
Returns the value of attribute file_count.
-
#hit_count ⇒ Object
Returns the value of attribute hit_count.
-
#lock_wait_ms ⇒ Object
Returns the value of attribute lock_wait_ms.
-
#materialize_db_ms ⇒ Object
Returns the value of attribute materialize_db_ms.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object_read_bytes ⇒ Object
Returns the value of attribute object_read_bytes.
-
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
-
#object_storage_backends ⇒ Object
Returns the value of attribute object_storage_backends.
-
#pack_access_mode ⇒ Object
Returns the value of attribute pack_access_mode.
-
#remaining_size_bytes ⇒ Object
Returns the value of attribute remaining_size_bytes.
-
#remote_read_metrics ⇒ Object
Returns the value of attribute remote_read_metrics.
-
#removed_count ⇒ Object
Returns the value of attribute removed_count.
-
#resolve_query_ms ⇒ Object
Returns the value of attribute resolve_query_ms.
-
#search_ms ⇒ Object
Returns the value of attribute search_ms.
-
#selected_size_bytes ⇒ Object
Returns the value of attribute selected_size_bytes.
-
#shard_count ⇒ Object
Returns the value of attribute shard_count.
-
#status ⇒ Object
Returns the value of attribute status.
-
#store_output_ms ⇒ Object
Returns the value of attribute store_output_ms.
-
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
-
#warning_count ⇒ Object
Returns the value of attribute warning_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ CacheBenchmarkStep
constructor
A new instance of CacheBenchmarkStep.
Constructor Details
#initialize(json) ⇒ CacheBenchmarkStep
Returns a new instance of CacheBenchmarkStep.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 65 def initialize(json) super() hash = self.class.normalize(json) @all_cache_hits = hash[:all_cache_hits] @cache_hit_bytes = hash[:cache_hit_bytes] @cache_hit_count = hash[:cache_hit_count] @cache_miss_bytes = hash[:cache_miss_bytes] @cache_miss_count = hash[:cache_miss_count] @elapsed_ms = hash[:elapsed_ms] @file_count = hash[:file_count] @hit_count = hash[:hit_count] @lock_wait_ms = hash[:lock_wait_ms] @materialize_db_ms = hash[:materialize_db_ms] @name = hash[:name] @object_read_bytes = hash[:object_read_bytes] @object_read_count = hash[:object_read_count] @object_storage_backends = (hash[:object_storage_backends] || []) @pack_access_mode = hash[:pack_access_mode] @remaining_size_bytes = hash[:remaining_size_bytes] @remote_read_metrics = hash[:remote_read_metrics] ? Rafflesia::BlastRemoteReadMetrics.new(hash[:remote_read_metrics]) : nil @removed_count = hash[:removed_count] @resolve_query_ms = hash[:resolve_query_ms] @search_ms = hash[:search_ms] @selected_size_bytes = hash[:selected_size_bytes] @shard_count = hash[:shard_count] @status = hash[:status] @store_output_ms = hash[:store_output_ms] @total_size_bytes = hash[:total_size_bytes] @warning_count = hash[:warning_count] end |
Instance Attribute Details
#all_cache_hits ⇒ Object
Returns the value of attribute all_cache_hits.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def all_cache_hits @all_cache_hits end |
#cache_hit_bytes ⇒ Object
Returns the value of attribute cache_hit_bytes.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def cache_hit_bytes @cache_hit_bytes end |
#cache_hit_count ⇒ Object
Returns the value of attribute cache_hit_count.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def cache_hit_count @cache_hit_count end |
#cache_miss_bytes ⇒ Object
Returns the value of attribute cache_miss_bytes.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def cache_miss_bytes @cache_miss_bytes end |
#cache_miss_count ⇒ Object
Returns the value of attribute cache_miss_count.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def cache_miss_count @cache_miss_count end |
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def elapsed_ms @elapsed_ms end |
#file_count ⇒ Object
Returns the value of attribute file_count.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def file_count @file_count end |
#hit_count ⇒ Object
Returns the value of attribute hit_count.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def hit_count @hit_count end |
#lock_wait_ms ⇒ Object
Returns the value of attribute lock_wait_ms.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def lock_wait_ms @lock_wait_ms end |
#materialize_db_ms ⇒ Object
Returns the value of attribute materialize_db_ms.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def materialize_db_ms @materialize_db_ms end |
#name ⇒ Object
Returns the value of attribute name.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def name @name end |
#object_read_bytes ⇒ Object
Returns the value of attribute object_read_bytes.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def object_read_bytes @object_read_bytes end |
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def object_read_count @object_read_count end |
#object_storage_backends ⇒ Object
Returns the value of attribute object_storage_backends.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def object_storage_backends @object_storage_backends end |
#pack_access_mode ⇒ Object
Returns the value of attribute pack_access_mode.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def pack_access_mode @pack_access_mode end |
#remaining_size_bytes ⇒ Object
Returns the value of attribute remaining_size_bytes.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def remaining_size_bytes @remaining_size_bytes end |
#remote_read_metrics ⇒ Object
Returns the value of attribute remote_read_metrics.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def remote_read_metrics @remote_read_metrics end |
#removed_count ⇒ Object
Returns the value of attribute removed_count.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def removed_count @removed_count end |
#resolve_query_ms ⇒ Object
Returns the value of attribute resolve_query_ms.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def resolve_query_ms @resolve_query_ms end |
#search_ms ⇒ Object
Returns the value of attribute search_ms.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def search_ms @search_ms end |
#selected_size_bytes ⇒ Object
Returns the value of attribute selected_size_bytes.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def selected_size_bytes @selected_size_bytes end |
#shard_count ⇒ Object
Returns the value of attribute shard_count.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def shard_count @shard_count end |
#status ⇒ Object
Returns the value of attribute status.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def status @status end |
#store_output_ms ⇒ Object
Returns the value of attribute store_output_ms.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def store_output_ms @store_output_ms end |
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def total_size_bytes @total_size_bytes end |
#warning_count ⇒ Object
Returns the value of attribute warning_count.
37 38 39 |
# File 'lib/rafflesia/cache/cache_benchmark_step.rb', line 37 def warning_count @warning_count end |