Class: Google::Cloud::Compute::V1::AutoscalingPolicyCustomMetricUtilization
- Inherits:
-
Object
- Object
- Google::Cloud::Compute::V1::AutoscalingPolicyCustomMetricUtilization
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/compute/v1/compute.rb
Overview
Custom utilization metric policy.
Defined Under Namespace
Modules: UtilizationTargetType
Instance Attribute Summary collapse
-
#filter ⇒ ::String
A filter string, compatible with a Stackdriver Monitoring filter string for TimeSeries.list API call.
-
#metric ⇒ ::String
The identifier (type) of the Stackdriver Monitoring metric.
-
#single_instance_assignment ⇒ ::Float
If scaling is based on a per-group metric value that represents the total amount of work to be done or resource usage, set this value to an amount assigned for a single instance of the scaled group.
-
#utilization_target ⇒ ::Float
The target value of the metric that autoscaler maintains.
-
#utilization_target_type ⇒ ::String
Defines how target utilization value is expressed for a Stackdriver Monitoring metric.
Instance Attribute Details
#filter ⇒ ::String
2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2449 class AutoscalingPolicyCustomMetricUtilization include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. module UtilizationTargetType # A value indicating that the enum field is not set. UNDEFINED_UTILIZATION_TARGET_TYPE = 0 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute. DELTA_PER_MINUTE = 87432861 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second. DELTA_PER_SECOND = 255180029 # Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling. GAUGE = 67590361 end end |
#metric ⇒ ::String
2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2449 class AutoscalingPolicyCustomMetricUtilization include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. module UtilizationTargetType # A value indicating that the enum field is not set. UNDEFINED_UTILIZATION_TARGET_TYPE = 0 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute. DELTA_PER_MINUTE = 87432861 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second. DELTA_PER_SECOND = 255180029 # Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling. GAUGE = 67590361 end end |
#single_instance_assignment ⇒ ::Float
2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2449 class AutoscalingPolicyCustomMetricUtilization include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. module UtilizationTargetType # A value indicating that the enum field is not set. UNDEFINED_UTILIZATION_TARGET_TYPE = 0 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute. DELTA_PER_MINUTE = 87432861 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second. DELTA_PER_SECOND = 255180029 # Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling. GAUGE = 67590361 end end |
#utilization_target ⇒ ::Float
2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2449 class AutoscalingPolicyCustomMetricUtilization include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. module UtilizationTargetType # A value indicating that the enum field is not set. UNDEFINED_UTILIZATION_TARGET_TYPE = 0 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute. DELTA_PER_MINUTE = 87432861 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second. DELTA_PER_SECOND = 255180029 # Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling. GAUGE = 67590361 end end |
#utilization_target_type ⇒ ::String
2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2449 class AutoscalingPolicyCustomMetricUtilization include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. module UtilizationTargetType # A value indicating that the enum field is not set. UNDEFINED_UTILIZATION_TARGET_TYPE = 0 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute. DELTA_PER_MINUTE = 87432861 # Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second. DELTA_PER_SECOND = 255180029 # Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling. GAUGE = 67590361 end end |