Class: Google::Apis::NetworkconnectivityV1alpha1::ExponentialBuckets

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkconnectivity_v1alpha1/classes.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb

Overview

Describing buckets with exponentially growing width.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExponentialBuckets

Returns a new instance of ExponentialBuckets.



448
449
450
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 448

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#growth_factorFloat

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be larger than 1.0. Corresponds to the JSON property growthFactor

Returns:

  • (Float)


432
433
434
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 432

def growth_factor
  @growth_factor
end

#num_finite_bucketsFixnum

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2. See comments on bucket_options for details. Corresponds to the JSON property numFiniteBuckets

Returns:

  • (Fixnum)


439
440
441
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 439

def num_finite_buckets
  @num_finite_buckets
end

#scaleFloat

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be > 0. Corresponds to the JSON property scale

Returns:

  • (Float)


446
447
448
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 446

def scale
  @scale
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



453
454
455
456
457
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 453

def update!(**args)
  @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
  @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
  @scale = args[:scale] if args.key?(:scale)
end