Class: Google::Apis::BigtableadminV2::HotTablet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb

Overview

A tablet is a defined by a start and end key and is explained in https://cloud. google.com/bigtable/docs/overview#architecture and https://cloud.google.com/ bigtable/docs/performance#optimization. A Hot tablet is a tablet that exhibits high average cpu usage during the time interval from start time to end time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HotTablet

Returns a new instance of HotTablet.



2235
2236
2237
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2235

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

Instance Attribute Details

#end_keyString

Tablet End Key (inclusive). Corresponds to the JSON property endKey

Returns:

  • (String)


2198
2199
2200
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2198

def end_key
  @end_key
end

#end_timeString

Output only. The end time of the hot tablet. Corresponds to the JSON property endTime

Returns:

  • (String)


2203
2204
2205
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2203

def end_time
  @end_time
end

#nameString

The unique name of the hot tablet. Values are of the form projects/project/ instances/instance/clusters/cluster/hotTablets/[a-zA-Z0-9_-]*. Corresponds to the JSON property name

Returns:

  • (String)


2209
2210
2211
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2209

def name
  @name
end

#node_cpu_usage_percentFloat

Output only. The average CPU usage spent by a node on this tablet over the start_time to end_time time range. The percentage is the amount of CPU used by the node to serve the tablet, from 0% (tablet was not interacted with) to 100% (the node spent all cycles serving the hot tablet). Corresponds to the JSON property nodeCpuUsagePercent

Returns:

  • (Float)


2217
2218
2219
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2217

def node_cpu_usage_percent
  @node_cpu_usage_percent
end

#start_keyString

Tablet Start Key (inclusive). Corresponds to the JSON property startKey

Returns:

  • (String)


2222
2223
2224
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2222

def start_key
  @start_key
end

#start_timeString

Output only. The start time of the hot tablet. Corresponds to the JSON property startTime

Returns:

  • (String)


2227
2228
2229
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2227

def start_time
  @start_time
end

#table_nameString

Name of the table that contains the tablet. Values are of the form projects/ project/instances/instance/tables/_a-zA-Z0-9*. Corresponds to the JSON property tableName

Returns:

  • (String)


2233
2234
2235
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2233

def table_name
  @table_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2240
2241
2242
2243
2244
2245
2246
2247
2248
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2240

def update!(**args)
  @end_key = args[:end_key] if args.key?(:end_key)
  @end_time = args[:end_time] if args.key?(:end_time)
  @name = args[:name] if args.key?(:name)
  @node_cpu_usage_percent = args[:node_cpu_usage_percent] if args.key?(:node_cpu_usage_percent)
  @start_key = args[:start_key] if args.key?(:start_key)
  @start_time = args[:start_time] if args.key?(:start_time)
  @table_name = args[:table_name] if args.key?(:table_name)
end