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.



2010
2011
2012
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2010

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)


1994
1995
1996
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1994

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)


2001
2002
2003
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2001

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)


2007
2008
2009
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2007

def key_truncated
  @key_truncated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2015
2016
2017
2018
2019
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2015

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