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.
1850 1851 1852 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1850 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_key ⇒ String
Tablet End Key (inclusive).
Corresponds to the JSON property endKey
1813 1814 1815 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1813 def end_key @end_key end |
#end_time ⇒ String
Output only. The end time of the hot tablet.
Corresponds to the JSON property endTime
1818 1819 1820 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1818 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
1824 1825 1826 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1824 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
1832 1833 1834 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1832 def node_cpu_usage_percent @node_cpu_usage_percent end |
#start_key ⇒ String
Tablet Start Key (inclusive).
Corresponds to the JSON property startKey
1837 1838 1839 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1837 def start_key @start_key end |
#start_time ⇒ String
Output only. The start time of the hot tablet.
Corresponds to the JSON property startTime
1842 1843 1844 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1842 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
1848 1849 1850 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1848 def table_name @table_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1855 1856 1857 1858 1859 1860 1861 1862 1863 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1855 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 |