ni_measurementlink_service._featuretoggles
MeasurementLink feature toggles.
Module Contents
Classes
Indicates whether code is ready to be supported. |
|
A run-time feature toggle. |
Functions
Get the current code readiness level. |
|
|
Decorator specifying that the function requires the specified feature toggle. |
Attributes
- class ni_measurementlink_service._featuretoggles.CodeReadiness[source]
Bases:
_OrderedEnumIndicates whether code is ready to be supported.
- RELEASE = 0
- NEXT_RELEASE = 1
- INCOMPLETE = 2
- PROTOTYPE = 3
- ni_measurementlink_service._featuretoggles.get_code_readiness_level()[source]
Get the current code readiness level.
You can override this in tests by specifying the
use_code_readinessmark.- Return type:
- exception ni_measurementlink_service._featuretoggles.FeatureNotSupportedError[source]
Bases:
ExceptionThe feature is not supported at the current code readiness level.
- class ni_measurementlink_service._featuretoggles.FeatureToggle(name, readiness)[source]
A run-time feature toggle.
- Parameters:
name (str) –
readiness (CodeReadiness) –
- property is_enabled: bool
Indicates whether the feature is currently enabled.
You can enable/disable features in tests by specifying the
enable_feature_toggleordisable_feature_togglemarks.- Return type:
- readiness: CodeReadiness
The code readiness at which this feature is enabled.
- ni_measurementlink_service._featuretoggles.requires_feature(feature_toggle)[source]
Decorator specifying that the function requires the specified feature toggle.
- Parameters:
feature_toggle (FeatureToggle) –
- Return type:
Callable[[Callable[_P, _T]], Callable[_P, _T]]
- ni_measurementlink_service._featuretoggles.MULTIPLEXER_SUPPORT_2024Q2