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.



1344
1345
1346
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1344

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

Instance Attribute Details

#end_keyString

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

Returns:

  • (String)


1307
1308
1309
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1307

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)


1312
1313
1314
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1312

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)


1318
1319
1320
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1318

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)


1326
1327
1328
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1326

def node_cpu_usage_percent
  @node_cpu_usage_percent
end

#start_keyString

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

Returns:

  • (String)


1331
1332
1333
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1331

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)


1336
1337
1338
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1336

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)


1342
1343
1344
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1342

def table_name
  @table_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1349
1350
1351
1352
1353
1354
1355
1356
1357
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1349

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