Class: Google::Apis::BigtableadminV2::AutoscalingTargets
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::BigtableadminV2::AutoscalingTargets
 
 
- 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
The Autoscaling targets for a Cluster. These determine the recommended nodes.
Instance Attribute Summary collapse
- 
  
    
      #cpu_utilization_percent  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The cpu utilization that the Autoscaler should be trying to achieve.
 - 
  
    
      #storage_utilization_gib_per_node  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The storage utilization that the Autoscaler should be trying to achieve.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AutoscalingTargets 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AutoscalingTargets.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ AutoscalingTargets
Returns a new instance of AutoscalingTargets.
      289 290 291  | 
    
      # File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 289 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#cpu_utilization_percent ⇒ Fixnum
The cpu utilization that the Autoscaler should be trying to achieve. This
number is on a scale from 0 (no utilization) to 100 (total utilization), and
is limited between 10 and 80, otherwise it will return INVALID_ARGUMENT error.
Corresponds to the JSON property cpuUtilizationPercent
      278 279 280  | 
    
      # File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 278 def cpu_utilization_percent @cpu_utilization_percent end  | 
  
#storage_utilization_gib_per_node ⇒ Fixnum
The storage utilization that the Autoscaler should be trying to achieve. This
number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and
between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, otherwise it will
return INVALID_ARGUMENT error. If this value is set to 0, it will be treated
as if it were set to the default value: 2560 for SSD, 8192 for HDD.
Corresponds to the JSON property storageUtilizationGibPerNode
      287 288 289  | 
    
      # File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 287 def storage_utilization_gib_per_node @storage_utilization_gib_per_node end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      294 295 296 297  | 
    
      # File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 294 def update!(**args) @cpu_utilization_percent = args[:cpu_utilization_percent] if args.key?(:cpu_utilization_percent) @storage_utilization_gib_per_node = args[:storage_utilization_gib_per_node] if args.key?(:storage_utilization_gib_per_node) end  |