Class: Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1ExponentialBuckets
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1beta1::GoogleApiServicecontrolV1ExponentialBuckets
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/privateca_v1beta1/classes.rb,
lib/google/apis/privateca_v1beta1/representations.rb,
lib/google/apis/privateca_v1beta1/representations.rb
Overview
Describing buckets with exponentially growing width.
Instance Attribute Summary collapse
-
#growth_factor ⇒ Float
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.
-
#num_finite_buckets ⇒ Fixnum
The number of finite buckets.
-
#scale ⇒ Float
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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleApiServicecontrolV1ExponentialBuckets
constructor
A new instance of GoogleApiServicecontrolV1ExponentialBuckets.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleApiServicecontrolV1ExponentialBuckets
Returns a new instance of GoogleApiServicecontrolV1ExponentialBuckets.
1321 1322 1323 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1321 def initialize(**args) update!(**args) end |
Instance Attribute Details
#growth_factor ⇒ Float
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
1305 1306 1307 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1305 def growth_factor @growth_factor end |
#num_finite_buckets ⇒ Fixnum
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
1312 1313 1314 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1312 def num_finite_buckets @num_finite_buckets end |
#scale ⇒ Float
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
1319 1320 1321 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1319 def scale @scale end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1326 1327 1328 1329 1330 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1326 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 |