Class: Google::Apis::DataflowV1b3::HotKeyInfo

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HotKeyInfo

Returns a new instance of HotKeyInfo.



1905
1906
1907
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1905

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

Instance Attribute Details

#hot_key_ageString

The age of the hot key measured from when it was first detected. Corresponds to the JSON property hotKeyAge

Returns:

  • (String)


1889
1890
1891
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1889

def hot_key_age
  @hot_key_age
end

#keyString

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

Returns:

  • (String)


1896
1897
1898
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1896

def key
  @key
end

#key_truncatedBoolean 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

Returns:

  • (Boolean)


1902
1903
1904
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1902

def key_truncated
  @key_truncated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1910
1911
1912
1913
1914
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1910

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