Class: Google::Apis::ComputeV1::AutoscalingPolicyCustomMetricUtilization
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeV1::AutoscalingPolicyCustomMetricUtilization
 
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
 generated/google/apis/compute_v1/representations.rb,
 generated/google/apis/compute_v1/representations.rb
Overview
Custom utilization metric policy.
Instance Attribute Summary collapse
- 
  
    
      #metric  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The identifier (type) of the Stackdriver Monitoring metric. 
- 
  
    
      #utilization_target  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The target value of the metric that autoscaler should maintain. 
- 
  
    
      #utilization_target_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Defines how target utilization value is expressed for a Stackdriver Monitoring metric. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AutoscalingPolicyCustomMetricUtilization 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AutoscalingPolicyCustomMetricUtilization. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoscalingPolicyCustomMetricUtilization
Returns a new instance of AutoscalingPolicyCustomMetricUtilization
| 1751 1752 1753 | # File 'generated/google/apis/compute_v1/classes.rb', line 1751 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#metric ⇒ String
The identifier (type) of the Stackdriver Monitoring metric. The metric cannot
have negative values.
The metric must have a value type of INT64 or DOUBLE.
Corresponds to the JSON property metric
| 1732 1733 1734 | # File 'generated/google/apis/compute_v1/classes.rb', line 1732 def metric @metric end | 
#utilization_target ⇒ Float
The target value of the metric that autoscaler should maintain. This must be a
positive value. A utilization metric scales number of virtual machines
handling requests to increase or decrease proportionally to the metric.
For example, a good metric to use as a utilization_target is compute.
googleapis.com/instance/network/received_bytes_count. The autoscaler will work
to keep this value constant for each of the instances.
Corresponds to the JSON property utilizationTarget
| 1742 1743 1744 | # File 'generated/google/apis/compute_v1/classes.rb', line 1742 def utilization_target @utilization_target end | 
#utilization_target_type ⇒ String
Defines how target utilization value is expressed for a Stackdriver Monitoring
metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified,
the default is GAUGE.
Corresponds to the JSON property utilizationTargetType
| 1749 1750 1751 | # File 'generated/google/apis/compute_v1/classes.rb', line 1749 def utilization_target_type @utilization_target_type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1756 1757 1758 1759 1760 | # File 'generated/google/apis/compute_v1/classes.rb', line 1756 def update!(**args) @metric = args[:metric] if args.key?(:metric) @utilization_target = args[:utilization_target] if args.key?(:utilization_target) @utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type) end |