Class: Rafflesia::BlastRemoteReadMetrics
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BlastRemoteReadMetrics
- Defined in:
- lib/rafflesia/cache/blast_remote_read_metrics.rb
Constant Summary collapse
- HASH_ATTRS =
{ block_cache_hits: :block_cache_hits, block_cache_misses: :block_cache_misses, http_bytes_read: :http_bytes_read, http_full_read_request_count: :http_full_read_request_count, http_range_request_count: :http_range_request_count, http_request_count: :http_request_count, sequence_bytes_read: :sequence_bytes_read, sequence_read_count: :sequence_read_count }.freeze
Instance Attribute Summary collapse
-
#block_cache_hits ⇒ Object
Returns the value of attribute block_cache_hits.
-
#block_cache_misses ⇒ Object
Returns the value of attribute block_cache_misses.
-
#http_bytes_read ⇒ Object
Returns the value of attribute http_bytes_read.
-
#http_full_read_request_count ⇒ Object
Returns the value of attribute http_full_read_request_count.
-
#http_range_request_count ⇒ Object
Returns the value of attribute http_range_request_count.
-
#http_request_count ⇒ Object
Returns the value of attribute http_request_count.
-
#sequence_bytes_read ⇒ Object
Returns the value of attribute sequence_bytes_read.
-
#sequence_read_count ⇒ Object
Returns the value of attribute sequence_read_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ BlastRemoteReadMetrics
constructor
A new instance of BlastRemoteReadMetrics.
Constructor Details
#initialize(json) ⇒ BlastRemoteReadMetrics
Returns a new instance of BlastRemoteReadMetrics.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @block_cache_hits = hash[:block_cache_hits] @block_cache_misses = hash[:block_cache_misses] @http_bytes_read = hash[:http_bytes_read] @http_full_read_request_count = hash[:http_full_read_request_count] @http_range_request_count = hash[:http_range_request_count] @http_request_count = hash[:http_request_count] @sequence_bytes_read = hash[:sequence_bytes_read] @sequence_read_count = hash[:sequence_read_count] end |
Instance Attribute Details
#block_cache_hits ⇒ Object
Returns the value of attribute block_cache_hits.
19 20 21 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 19 def block_cache_hits @block_cache_hits end |
#block_cache_misses ⇒ Object
Returns the value of attribute block_cache_misses.
19 20 21 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 19 def block_cache_misses @block_cache_misses end |
#http_bytes_read ⇒ Object
Returns the value of attribute http_bytes_read.
19 20 21 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 19 def http_bytes_read @http_bytes_read end |
#http_full_read_request_count ⇒ Object
Returns the value of attribute http_full_read_request_count.
19 20 21 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 19 def http_full_read_request_count @http_full_read_request_count end |
#http_range_request_count ⇒ Object
Returns the value of attribute http_range_request_count.
19 20 21 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 19 def http_range_request_count @http_range_request_count end |
#http_request_count ⇒ Object
Returns the value of attribute http_request_count.
19 20 21 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 19 def http_request_count @http_request_count end |
#sequence_bytes_read ⇒ Object
Returns the value of attribute sequence_bytes_read.
19 20 21 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 19 def sequence_bytes_read @sequence_bytes_read end |
#sequence_read_count ⇒ Object
Returns the value of attribute sequence_read_count.
19 20 21 |
# File 'lib/rafflesia/cache/blast_remote_read_metrics.rb', line 19 def sequence_read_count @sequence_read_count end |