CustomMetric class

Allows autoscaling based on Stackdriver metrics.

Constructors

CustomMetric({Input<String>? filter, Input<String>? metricName, Input<double>? singleInstanceAssignment, Input<String>? targetType, Input<double>? targetUtilization})
Creates a new CustomMetric. filter Allows filtering on the metric's fields. metricName The name of the metric. singleInstanceAssignment May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment. targetType The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc. targetUtilization The target value for the metric.
const
CustomMetric.fromMap(Map<String, dynamic> map)
factory

Properties

filter → Input<String>?
Allows filtering on the metric's fields.
final
hashCode → int
The hash code for this object.
no setterinherited
metricName → Input<String>?
The name of the metric.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
singleInstanceAssignment → Input<double>?
May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
final
targetType → Input<String>?
The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
final
targetUtilization → Input<double>?
The target value for the metric.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited