mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
docs: add unleash context and compat table updates
This commit is contained in:
parent
decdc083d0
commit
94f13075ac
@ -50,7 +50,7 @@ If you see an item marked with a ❌ that you would find useful, feel free to re
|
|||||||
|
|
||||||
|
|
||||||
| Capability | [Java](/sdks/java_sdk) | [Node.js](/sdks/node_sdk) | [Go](/sdks/go_sdk) | [Python](/sdks/python_sdk) | [Ruby](/sdks/ruby_sdk) | [.NET](/sdks/dot_net_sdk) | [PHP](/sdks/php_sdk) | [Rust](https://github.com/unleash/unleash-client-rust) | [Unleash Proxy](unleash-proxy.md) |
|
| Capability | [Java](/sdks/java_sdk) | [Node.js](/sdks/node_sdk) | [Go](/sdks/go_sdk) | [Python](/sdks/python_sdk) | [Ruby](/sdks/ruby_sdk) | [.NET](/sdks/dot_net_sdk) | [PHP](/sdks/php_sdk) | [Rust](https://github.com/unleash/unleash-client-rust) | [Unleash Proxy](unleash-proxy.md) |
|
||||||
|---------------------------------------------------------------------------------------------------|:----------------------:|:-------------------------:|:------------------:|:--------------------------:|:----------------------:|:-------------------------:|:--------------------:|:------------------------------------------------------:|:----------------------------------------:|
|
|---------------------------------------------------------------------------------------------------|:----------------------:|:-------------------------:|:------------------:|:--------------------------:|:----------------------:|:-------------------------:|:--------------------:|:------------------------------------------------------:|:---------------------------------:|
|
||||||
| **Category: Initialization** | | | | | | | | | |
|
| **Category: Initialization** | | | | | | | | | |
|
||||||
| Async initialization | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
| Async initialization | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
|
||||||
| Can block until synchronized | ✅ | ✅ | ✅ | ⭕ | ⭕ | ✅ | ⭕ | ⭕ | N/A |
|
| Can block until synchronized | ✅ | ✅ | ✅ | ⭕ | ⭕ | ✅ | ⭕ | ⭕ | N/A |
|
||||||
@ -81,6 +81,7 @@ If you see an item marked with a ❌ that you would find useful, feel free to re
|
|||||||
| Static fields (`environment`, `appName`) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
| Static fields (`environment`, `appName`) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
||||||
| Defined fields | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
| Defined fields | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
||||||
| Custom properties | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
| Custom properties | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
||||||
|
|<span id="current-time-server">`currentTime` context field</span> | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
||||||
| **Category: [`isEnabled`](../client-specification#implementation-of-isenabled)** | | | | | | | | | |
|
| **Category: [`isEnabled`](../client-specification#implementation-of-isenabled)** | | | | | | | | | |
|
||||||
| Can take context | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
| Can take context | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
||||||
| Override fallback value | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
| Override fallback value | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
||||||
|
@ -17,14 +17,15 @@ _All fields are optional_, but some strategies depend on certain fields being pr
|
|||||||
|
|
||||||
The below table gives a brief overview over what the fields' intended usage is, their lifetime, and their type. Note that the exact type can vary between programming languages and implementations. Be sure to consult your specific client SDK for more information on its implementation of the Unleash Context.
|
The below table gives a brief overview over what the fields' intended usage is, their lifetime, and their type. Note that the exact type can vary between programming languages and implementations. Be sure to consult your specific client SDK for more information on its implementation of the Unleash Context.
|
||||||
|
|
||||||
| field name | type | lifetime | description |
|
| field name | type | lifetime | description | introduced in |
|
||||||
|-------------------|-----------------------|----------|----------------------------------------|
|
|-------------------|-----------------------|----------|--------------------------------------------------------------------------------------------|---------------|
|
||||||
| `appName` | `string` | static | the name of the application |
|
| `appName` | `string` | static | the name of the application | |
|
||||||
| `environment`[^1] | `string` | static | the environment the app is running in |
|
| `environment`[^1] | `string` | static | the environment the app is running in | |
|
||||||
| `userId` | `string` | dynamic | an identifier for the current user |
|
| `userId` | `string` | dynamic | an identifier for the current user | |
|
||||||
| `sessionId` | `string` | dynamic | an identifier for the current session |
|
| `sessionId` | `string` | dynamic | an identifier for the current session | |
|
||||||
| `remoteAddress` | `string` | dynamic | an identifier for the current session |
|
| `remoteAddress` | `string` | dynamic | an identifier for the current session | |
|
||||||
| `properties` | `Map<string, string>` | dynamic | a key-value store of any data you want |
|
| `properties` | `Map<string, string>` | dynamic | a key-value store of any data you want | |
|
||||||
|
| `currentTime`[^2] | `DateTime`/`string` | special / read-only | A `DateTime` (or similar) data class instance or a string in an RFC3339-compatible format. | v4.9 |
|
||||||
|
|
||||||
|
|
||||||
### The `properties` field
|
### The `properties` field
|
||||||
@ -76,3 +77,5 @@ Any context field _can_ be used to [calculate custom stickiness](../advanced/sti
|
|||||||
|
|
||||||
|
|
||||||
[^1]: If you're on Unleash 4.3 or higher, you'll probably want to use [the environments feature](../user_guide/environments.md) instead of relying on the `environment` context field when working with environments.
|
[^1]: If you're on Unleash 4.3 or higher, you'll probably want to use [the environments feature](../user_guide/environments.md) instead of relying on the `environment` context field when working with environments.
|
||||||
|
|
||||||
|
[^2]: Check the [compatibility table](../sdks/index.md#current-time-server) for an overview of which SDKs provide the `currentTime` property.
|
||||||
|
Loading…
Reference in New Issue
Block a user