Class: Google::Apis::DataflowV1b3::LogBucket
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::LogBucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb
Overview
Bucket of values for Distribution's logarithmic histogram.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Number of values in this bucket.
-
#log ⇒ Fixnum
floor(log2(value)); defined to be zero for nonpositive values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogBucket
constructor
A new instance of LogBucket.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LogBucket
Returns a new instance of LogBucket
46 47 48 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 46 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Number of values in this bucket.
Corresponds to the JSON property count
44 45 46 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 44 def count @count end |
#log ⇒ Fixnum
floor(log2(value)); defined to be zero for nonpositive values.
log(-1) = 0
log(0) = 0
log(1) = 0
log(2) = 1
log(3) = 1
log(4) = 2
log(5) = 2
Corresponds to the JSON property log
39 40 41 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 39 def log @log end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
51 52 53 54 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 51 def update!(**args) @log = args[:log] if args.key?(:log) @count = args[:count] if args.key?(:count) end |