Skip to content

Number Feature Flag Rule

A number feature flag rule is a rule that intended for a Number Feature Flag.

It has all the properties all feature flag rule subtypes have in common. For that, check out Feature Flag Rule.

In addition to the shared properties, a number feature flag rule also has the properties listed on this page.

The schema of a number feature flag rule looks like that:

Schema

json
{
  "enabled": true,
  "conditionSet": {
    // condition set content 
  },
  
  "valuesOnMatch": [
    {
      "value": 42,
      "rolloutPercentage": 100
    }
  ]
}

Attributes

valuesOnMatch

  • Type: Array of { value: number, rolloutPercentage: number }
    • value: value to serve as feature flag evaluation value on condition set match
    • rolloutPercentage: number between 0 and 100
  • Required
  • Min. length: 1

This array holds all values that shall be served when the rule is matched. It is an array to support gradual rollouts, A/B testing, and multi-variate feature flags.

Each value on match entry has a value (the evaluation value to serve) and a rolloutPercentage number between 0 and 100.

There has to be at least one value on match entry. The rollout percentages of all entries has to exactly sum up to 100.

If there are multiple value on match entries and the corresponding value is matched, the values are deterministically distributed across all evaluations based on the given rollout percentages and based on Rollout Discriminator Properties.

Released under the MIT Licensed