Class: Google::Apis::NetworkconnectivityV1alpha1::LinearBuckets
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1alpha1::LinearBuckets
- 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 constant width.
Instance Attribute Summary collapse
-
#num_finite_buckets ⇒ Fixnum
The number of finite buckets.
-
#offset ⇒ Float
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive.
-
#width ⇒ Float
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LinearBuckets
constructor
A new instance of LinearBuckets.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LinearBuckets
Returns a new instance of LinearBuckets.
862 863 864 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 862 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
847 848 849 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 847 def num_finite_buckets @num_finite_buckets end |
#offset ⇒ Float
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i
- width) where i ranges from 1 to num_finite_buckets, inclusive.
Corresponds to the JSON property
offset
853 854 855 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 853 def offset @offset end |
#width ⇒ Float
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i
- width) where i ranges from 1 to num_finite_buckets, inclusive. Must be
strictly positive.
Corresponds to the JSON property
width
860 861 862 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 860 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
867 868 869 870 871 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 867 def update!(**args) @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets) @offset = args[:offset] if args.key?(:offset) @width = args[:width] if args.key?(:width) end |