CustomMetricArgs

data class CustomMetricArgs(val filter: Output<String>? = null, val metricName: Output<String>? = null, val singleInstanceAssignment: Output<Double>? = null, val targetType: Output<String>? = null, val targetUtilization: Output<Double>? = null) : ConvertibleToJava<CustomMetricArgs>

Allows autoscaling based on Stackdriver metrics.

Constructors

Link copied to clipboard
fun CustomMetricArgs(filter: Output<String>? = null, metricName: Output<String>? = null, singleInstanceAssignment: Output<Double>? = null, targetType: Output<String>? = null, targetUtilization: Output<Double>? = null)

Functions

Link copied to clipboard
open override fun toJava(): CustomMetricArgs

Properties

Link copied to clipboard
val filter: Output<String>? = null

Allows filtering on the metric's fields.

Link copied to clipboard
val metricName: Output<String>? = null

The name of the metric.

Link copied to clipboard
val singleInstanceAssignment: Output<Double>? = null

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.

Link copied to clipboard
val targetType: Output<String>? = null

The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.

Link copied to clipboard
val targetUtilization: Output<Double>? = null

The target value for the metric.