WeightedTarget

An object that represents a target and its relative weight. Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val port: Int?

The targeted port of the weighted object.

Link copied to clipboard

The virtual node to associate with the weighted target.

Link copied to clipboard
val weight: Int

The relative weight of the weighted target.

Functions

Link copied to clipboard
inline fun copy(block: WeightedTarget.Builder.() -> Unit = {}): WeightedTarget
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String