ServiceLoadMetricArgs

data class ServiceLoadMetricArgs(val defaultLoad: Output<Int>? = null, val name: Output<String>, val primaryDefaultLoad: Output<Int>? = null, val secondaryDefaultLoad: Output<Int>? = null, val weight: Output<Either<String, ServiceLoadMetricWeight>>? = null) : ConvertibleToJava<ServiceLoadMetricArgs>

Specifies a metric to load balance a service during runtime.

Constructors

Link copied to clipboard
constructor(defaultLoad: Output<Int>? = null, name: Output<String>, primaryDefaultLoad: Output<Int>? = null, secondaryDefaultLoad: Output<Int>? = null, weight: Output<Either<String, ServiceLoadMetricWeight>>? = null)

Properties

Link copied to clipboard
val defaultLoad: Output<Int>? = null

Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric.

Link copied to clipboard
val name: Output<String>

The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive.

Link copied to clipboard
val primaryDefaultLoad: Output<Int>? = null

Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica.

Link copied to clipboard
val secondaryDefaultLoad: Output<Int>? = null

Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica.

Link copied to clipboard
val weight: Output<Either<String, ServiceLoadMetricWeight>>? = null

The service load metric relative weight, compared to other metrics configured for this service, as a number.

Functions

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