CustomMetricResponse

data class CustomMetricResponse(val filter: String, val metricName: String, val singleInstanceAssignment: Double, val targetType: String, val targetUtilization: Double)

Allows autoscaling based on Stackdriver metrics.

Constructors

Link copied to clipboard
fun CustomMetricResponse(filter: String, metricName: String, singleInstanceAssignment: Double, targetType: String, targetUtilization: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Allows filtering on the metric's fields.

Link copied to clipboard

The name of the metric.

Link copied to clipboard

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

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

The target value for the metric.