RegionAutoscalerAutoscalingPolicyMetric

data class RegionAutoscalerAutoscalingPolicyMetric(val filter: String? = null, val name: String, val singleInstanceAssignment: Double? = null, val target: Double? = null, val type: String? = null)

Constructors

Link copied to clipboard
fun RegionAutoscalerAutoscalingPolicyMetric(filter: String? = null, name: String, singleInstanceAssignment: Double? = null, target: Double? = null, type: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val filter: String? = null
Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
val target: Double? = null

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 utilizationTarget is www.googleapis.com/compute/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.

Link copied to clipboard
val type: String? = null

Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Possible values are GAUGE, DELTA_PER_SECOND, and DELTA_PER_MINUTE.