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.
2215 2216 2217 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2215 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_key ⇒ String
Tablet End Key (inclusive).
Corresponds to the JSON property endKey
2178 2179 2180 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2178 def end_key @end_key end |
#end_time ⇒ String
Output only. The end time of the hot tablet.
Corresponds to the JSON property endTime
2183 2184 2185 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2183 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
2189 2190 2191 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2189 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
2197 2198 2199 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2197 def node_cpu_usage_percent @node_cpu_usage_percent end |
#start_key ⇒ String
Tablet Start Key (inclusive).
Corresponds to the JSON property startKey
2202 2203 2204 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2202 def start_key @start_key end |
#start_time ⇒ String
Output only. The start time of the hot tablet.
Corresponds to the JSON property startTime
2207 2208 2209 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2207 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
2213 2214 2215 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2213 def table_name @table_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2220 2221 2222 2223 2224 2225 2226 2227 2228 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 2220 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 |