AutoscalingMetricSpec class final
The metric specification that defines the target resource utilization (CPU utilization, accelerator's duty cycle, and so on) for calculating the desired replica count.
- Inheritance
-
- Object
- ProtoMessage
- AutoscalingMetricSpec
Constructors
-
AutoscalingMetricSpec({required String metricName, int target = 0, Map<
String, String> monitoredResourceLabels = const {}}) - AutoscalingMetricSpec.fromJson(Object? j)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- metricName → String
-
Required. The resource metric name.
Supported metrics:
final
-
monitoredResourceLabels
→ Map<
String, String> -
Optional. The Cloud Monitoring monitored resource labels as key value pairs
used for metrics filtering. See Cloud Monitoring Labels
https://cloud.google.com/monitoring/api/v3/metric-model#generic-label-info
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → int
-
The target resource utilization in percentage (1% - 100%) for the given
metric; once the real usage deviates from the target by a certain
percentage, the machine replicas change. The default value is 60
(representing 60%) if not provided.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String