Class: Google::Apis::DataflowV1b3::LogBucket

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#countFixnum

Number of values in this bucket. Corresponds to the JSON property count

Returns:

  • (Fixnum)


44
45
46
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 44

def count
  @count
end

#logFixnum

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

Returns:

  • (Fixnum)


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