Class: Google::Apis::BigtableadminV2::HotTablet
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::HotTablet
- 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
-
#end_key ⇒ String
Tablet End Key (inclusive).
-
#end_time ⇒ String
Output only.
-
#name ⇒ String
The unique name of the hot tablet.
-
#node_cpu_usage_percent ⇒ Float
Output only.
-
#start_key ⇒ String
Tablet Start Key (inclusive).
-
#start_time ⇒ String
Output only.
-
#table_name ⇒ String
Name of the table that contains the tablet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HotTablet
constructor
A new instance of HotTablet.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_key ⇒ String
Tablet End Key (inclusive).
Corresponds to the JSON property endKey
2198 2199 2200 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2198 def end_key @end_key end |
#end_time ⇒ String
Output only. The end time of the hot tablet.
Corresponds to the JSON property endTime
2203 2204 2205 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2203 def end_time @end_time end |
#name ⇒ String
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
2209 2210 2211 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2209 def name @name end |
#node_cpu_usage_percent ⇒ Float
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
2217 2218 2219 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2217 def node_cpu_usage_percent @node_cpu_usage_percent end |
#start_key ⇒ String
Tablet Start Key (inclusive).
Corresponds to the JSON property startKey
2222 2223 2224 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2222 def start_key @start_key end |
#start_time ⇒ String
Output only. The start time of the hot tablet.
Corresponds to the JSON property startTime
2227 2228 2229 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2227 def start_time @start_time end |
#table_name ⇒ String
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
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 |