Class: Google::Apis::DataflowV1b3::HotKeyInfo
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::HotKeyInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Information about a hot key.
Instance Attribute Summary collapse
-
#hot_key_age ⇒ String
The age of the hot key measured from when it was first detected.
-
#key ⇒ String
A detected hot key that is causing limited parallelism.
-
#key_truncated ⇒ Boolean
(also: #key_truncated?)
If true, then the above key is truncated and cannot be deserialized.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HotKeyInfo
constructor
A new instance of HotKeyInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HotKeyInfo
Returns a new instance of HotKeyInfo.
2124 2125 2126 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hot_key_age ⇒ String
The age of the hot key measured from when it was first detected.
Corresponds to the JSON property hotKeyAge
2108 2109 2110 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2108 def hot_key_age @hot_key_age end |
#key ⇒ String
A detected hot key that is causing limited parallelism. This field will be
populated only if the following flag is set to true: "--enable_hot_key_logging"
.
Corresponds to the JSON property key
2115 2116 2117 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2115 def key @key end |
#key_truncated ⇒ Boolean Also known as: key_truncated?
If true, then the above key is truncated and cannot be deserialized. This
occurs if the key above is populated and the key size is >5MB.
Corresponds to the JSON property keyTruncated
2121 2122 2123 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2121 def key_truncated @key_truncated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2129 2130 2131 2132 2133 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2129 def update!(**args) @hot_key_age = args[:hot_key_age] if args.key?(:hot_key_age) @key = args[:key] if args.key?(:key) @key_truncated = args[:key_truncated] if args.key?(:key_truncated) end |