ponderationStrategy
Configures a PonderationStrategy for this feature with a decimal weight.
Each evaluation is independent - the same user may get different results on subsequent calls.
Example
feature("gradual-rollout") {
ponderationStrategy(0.25) // 25% chance of being enabled
}Content copied to clipboard
Author
Yonatan Karp-Rudin
Parameters
weight
The probability (0.0 to 1.0) that the feature is enabled.
See also
for user-sticky behavior
Throws
if weight is not in range 0.0..1.0
Configures a PonderationStrategy for this feature with an integer percentage.
Each evaluation is independent - the same user may get different results on subsequent calls.
Example
feature("gradual-rollout") {
ponderationStrategy(25) // 25% chance of being enabled
}Content copied to clipboard
Author
Yonatan Karp-Rudin
Parameters
weight
The percentage (0 to 100) that the feature is enabled.
See also
for user-sticky behavior
Throws
if weight is not in range 0..100