Class: Rafflesia::CacheBenchmarkSuiteRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CacheBenchmarkSuiteRequest
- Defined in:
- lib/rafflesia/cache/cache_benchmark_suite_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ benchmarks: :benchmarks, max_total_lock_wait_ms: :max_total_lock_wait_ms, max_warm_object_read_bytes: :max_warm_object_read_bytes, require_cold_object_reads: :require_cold_object_reads, require_pressure_plan: :require_pressure_plan, require_warm_cache_hits: :require_warm_cache_hits, require_zero_warm_object_reads: :require_zero_warm_object_reads, store_artifact: :store_artifact, suite_name: :suite_name, suite_version: :suite_version, workload_profile: :workload_profile }.freeze
Instance Attribute Summary collapse
-
#benchmarks ⇒ Object
Returns the value of attribute benchmarks.
-
#max_total_lock_wait_ms ⇒ Object
Returns the value of attribute max_total_lock_wait_ms.
-
#max_warm_object_read_bytes ⇒ Object
Returns the value of attribute max_warm_object_read_bytes.
-
#require_cold_object_reads ⇒ Object
Returns the value of attribute require_cold_object_reads.
-
#require_pressure_plan ⇒ Object
Returns the value of attribute require_pressure_plan.
-
#require_warm_cache_hits ⇒ Object
Returns the value of attribute require_warm_cache_hits.
-
#require_zero_warm_object_reads ⇒ Object
Returns the value of attribute require_zero_warm_object_reads.
-
#store_artifact ⇒ Object
Returns the value of attribute store_artifact.
-
#suite_name ⇒ Object
Returns the value of attribute suite_name.
-
#suite_version ⇒ Object
Returns the value of attribute suite_version.
-
#workload_profile ⇒ Object
Returns the value of attribute workload_profile.
Instance Method Summary collapse
-
#initialize(json) ⇒ CacheBenchmarkSuiteRequest
constructor
A new instance of CacheBenchmarkSuiteRequest.
Constructor Details
#initialize(json) ⇒ CacheBenchmarkSuiteRequest
Returns a new instance of CacheBenchmarkSuiteRequest.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @benchmarks = (hash[:benchmarks] || []).map { |item| item ? Rafflesia::CacheBenchmarkRequest.new(item) : nil } @max_total_lock_wait_ms = hash[:max_total_lock_wait_ms] @max_warm_object_read_bytes = hash[:max_warm_object_read_bytes] @require_cold_object_reads = hash[:require_cold_object_reads] @require_pressure_plan = hash[:require_pressure_plan] @require_warm_cache_hits = hash[:require_warm_cache_hits] @require_zero_warm_object_reads = hash[:require_zero_warm_object_reads] @store_artifact = hash[:store_artifact] @suite_name = hash[:suite_name] @suite_version = hash[:suite_version] @workload_profile = hash[:workload_profile] end |
Instance Attribute Details
#benchmarks ⇒ Object
Returns the value of attribute benchmarks.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def benchmarks @benchmarks end |
#max_total_lock_wait_ms ⇒ Object
Returns the value of attribute max_total_lock_wait_ms.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def max_total_lock_wait_ms @max_total_lock_wait_ms end |
#max_warm_object_read_bytes ⇒ Object
Returns the value of attribute max_warm_object_read_bytes.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def max_warm_object_read_bytes @max_warm_object_read_bytes end |
#require_cold_object_reads ⇒ Object
Returns the value of attribute require_cold_object_reads.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def require_cold_object_reads @require_cold_object_reads end |
#require_pressure_plan ⇒ Object
Returns the value of attribute require_pressure_plan.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def require_pressure_plan @require_pressure_plan end |
#require_warm_cache_hits ⇒ Object
Returns the value of attribute require_warm_cache_hits.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def require_warm_cache_hits @require_warm_cache_hits end |
#require_zero_warm_object_reads ⇒ Object
Returns the value of attribute require_zero_warm_object_reads.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def require_zero_warm_object_reads @require_zero_warm_object_reads end |
#store_artifact ⇒ Object
Returns the value of attribute store_artifact.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def store_artifact @store_artifact end |
#suite_name ⇒ Object
Returns the value of attribute suite_name.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def suite_name @suite_name end |
#suite_version ⇒ Object
Returns the value of attribute suite_version.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def suite_version @suite_version end |
#workload_profile ⇒ Object
Returns the value of attribute workload_profile.
22 23 24 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_request.rb', line 22 def workload_profile @workload_profile end |