Skip to content

Commit

Permalink
docs: update fractional example
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <[email protected]>
  • Loading branch information
beeme1mr authored Sep 20, 2023
1 parent 673b76a commit 266f985
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/configuration/flag_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ They are purpose built extensions to JSON logic in order to support popular feat

| Function | Description | Example |
| -------------------- | ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fractionalEvaluation` | Deterministic percentage-based rollout | Logic: `{ "fractionalEvaluation" : [ "email", [ "red" , 50], [ "green" , 50 ] ] }`<br>Result: Pseudo randomly `red` or `green` based on the evaluation context property `email`.<br><br>Additional documentation can be found [here](./fractional_evaluation.md) |
| `fractional` | Deterministic percentage-based rollout | Logic: `{ "fractional" : [ { "var": "email" }, [ "red" , 50], [ "green" , 50 ] ] }`<br>Result: Pseudo randomly `red` or `green` based on the evaluation context property `email`.<br><br>Additional documentation can be found [here](./fractional_evaluation.md) |
| `starts_with` | Attribute starts with the specified value | Logic: `{ "starts_with" : [ "192.168.0.1", "192.168"] }`<br>Result: `true`<br><br>Logic: `{ "starts_with" : [ "10.0.0.1", "192.168"] }`<br>Result: `false` |
| `ends_with` | Attribute ends with the specified value | Logic: `{ "ends_with" : [ "[email protected]", "@example.com"] }`<br>Result: `true`<br><br>Logic: `{ ends_with" : [ "[email protected]", "@test.com"] }`<br>Result: `false` |
| `sem_ver` | Attribute matches a semantic versioning condition | Logic: `{"sem_ver": ["1.1.2", ">=", "1.0.0"]}`<br>Result: `true`<br><br>Additional documentation can be found [here](./sem_ver_evaluation.md) |
Expand Down Expand Up @@ -276,8 +276,8 @@ Example:
"$ref": "emailWithFaas"
},
{
"fractionalEvaluation": [
"email",
"fractional": [
{ "var": "email" },
["red", 25],
["blue", 25],
["green", 25],
Expand Down

0 comments on commit 266f985

Please sign in to comment.