You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/feature-management-dotnet-reference.md
+81-67Lines changed: 81 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -478,12 +478,16 @@ public class BrowserFilter : IFeatureFilter
478
478
When a feature filter is registered for a feature flag, the alias used in configuration is the name of the feature filter type with the _Filter_ suffix, if any, removed. For example, `MyCriteriaFilter` would be referred to as _MyCriteria_ in configuration.
479
479
480
480
```JavaScript
481
-
"MyFeature": {
482
-
"EnabledFor": [
483
-
{
484
-
"Name":"MyCriteria"
485
-
}
486
-
]
481
+
{
482
+
"id":"MyFeature",
483
+
"enabled":true,
484
+
"conditions": {
485
+
"client_filters": [
486
+
{
487
+
"name":"MyCriteria"
488
+
}
489
+
]
490
+
}
487
491
}
488
492
```
489
493
This name can be overridden by using the `FilterAliasAttribute`. A feature filter can be decorated with this attribute to declare the name that should be used in configuration to reference this feature filter within a feature flag.
@@ -596,15 +600,19 @@ Each of the built-in feature filters has its own parameters. Here's the list of
596
600
This filter provides the capability to enable a feature based on a set percentage.
597
601
598
602
```JavaScript
599
-
"EnhancedPipeline": {
600
-
"EnabledFor": [
601
-
{
602
-
"Name":"Microsoft.Percentage",
603
-
"Parameters": {
604
-
"Value":50
603
+
{
604
+
"id":"EnhancedPipeline",
605
+
"enabled":true,
606
+
"conditions": {
607
+
"client_filters": [
608
+
{
609
+
"name":"Microsoft.Percentage",
610
+
"parameters": {
611
+
"Value":50
612
+
}
605
613
}
606
-
}
607
-
]
614
+
]
615
+
}
608
616
}
609
617
```
610
618
@@ -613,16 +621,20 @@ This filter provides the capability to enable a feature based on a set percentag
613
621
This filter provides the capability to enable a feature based on a time window. If only `End` is specified, the feature is considered on until that time. If only `Start` is specified, the feature is considered on at all points after that time.
614
622
615
623
```JavaScript
616
-
"EnhancedPipeline": {
617
-
"EnabledFor": [
618
-
{
619
-
"Name":"Microsoft.TimeWindow",
620
-
"Parameters": {
621
-
"Start":"Wed, 01 May 2019 13:59:59 GMT",
622
-
"End":"Mon, 01 Jul 2019 00:00:00 GMT"
624
+
{
625
+
"id":"EnhancedPipeline",
626
+
"enabled":true,
627
+
"conditions": {
628
+
"client_filters": [
629
+
{
630
+
"name":"Microsoft.TimeWindow",
631
+
"parameters": {
632
+
"Start":"Wed, 01 May 2019 13:59:59 GMT",
633
+
"End":"Mon, 01 Jul 2019 00:00:00 GMT"
634
+
}
623
635
}
624
-
}
625
-
]
636
+
]
637
+
}
626
638
}
627
639
```
628
640
@@ -632,26 +644,24 @@ The time window can be configured to recur periodically. This can be useful for
632
644
> `Start` and `End` must be both specified to enable `Recurrence`.
633
645
634
646
```JavaScript
635
-
"EnhancedPipeline": {
636
-
"EnabledFor": [
637
-
{
638
-
"Name":"Microsoft.TimeWindow",
639
-
"Parameters": {
640
-
"Start":"Fri, 22 Mar 2024 20:00:00 GMT",
641
-
"End":"Sat, 23 Mar 2024 02:00:00 GMT",
642
-
"Recurrence": {
643
-
"Pattern": {
644
-
"Type":"Daily",
645
-
"Interval":1
646
-
},
647
-
"Range": {
648
-
"Type":"NoEnd"
649
-
}
647
+
"client_filters": [
648
+
{
649
+
"name":"Microsoft.TimeWindow",
650
+
"parameters": {
651
+
"Start":"Fri, 22 Mar 2024 20:00:00 GMT",
652
+
"End":"Sat, 23 Mar 2024 02:00:00 GMT",
653
+
"Recurrence": {
654
+
"Pattern": {
655
+
"Type":"Daily",
656
+
"Interval":1
657
+
},
658
+
"Range": {
659
+
"Type":"NoEnd"
650
660
}
651
661
}
652
662
}
653
-
]
654
-
}
663
+
}
664
+
]
655
665
```
656
666
657
667
The `Recurrence` settings are made up of two parts: `Pattern` (how often the time window repeats) and `Range` (for how long the recurrence pattern repeats).
@@ -769,39 +779,43 @@ To create a recurrence rule, you must specify both `Pattern` and `Range`. Any pa
769
779
This filter provides the capability to enable a feature for a target audience. Anin-depth explanation of targeting is explained in the [targeting](#targeting) section. The filter parameters include an `Audience` object that describes users, groups, excluded users/groups, and a default percentage of the user base that should have access to the feature. Each group object that is listed in the `Groups` section must also specify what percentage of the group's members should have access. If a user is specified in the `Exclusion` section, either directly or if the user is in an excluded group, the feature is disabled. Otherwise, if a user is specified in the `Users` section directly, or if the user is in the included percentage of any of the group rollouts, or if the user falls into the default rollout percentage then that user will have the feature enabled.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/feature-management-javascript-reference.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -360,7 +360,6 @@ This filter provides the capability to enable a feature based on a time window.
360
360
]
361
361
```
362
362
363
-
364
363
The time window can be configured to recur periodically. This can be useful for the scenarios where one may need to turn on a feature during a low or high traffic period of a day or certain days of a week. To expand the individual time window to recurring time windows, the recurrence rule should be specified in the `Recurrence` parameter.
365
364
366
365
> [!NOTE]
@@ -497,7 +496,6 @@ To create a recurrence rule, you must specify both `Pattern` and `Range`. Any pa
497
496
498
497
**Advanced:** The time zone offset of the `Start` property is applied to the recurrence settings.
499
498
500
-
501
499
### Microsoft.Targeting
502
500
503
501
This filter provides the capability to enable a feature for a target audience. Anin-depth explanation of targeting is explained in the [targeting](#targeting) section below. The filter parameters include an `Audience` object that describes users, groups, excluded users/groups, and a default percentage of the user base that should have access to the feature. Each group object that is listed in the `Groups` section must also specify what percentage of the group's members should have access. If a user is specified in the `Exclusion` section, either directly or if the user is in an excluded group, the feature is disabled. Otherwise, if a user is specified in the `Users` section directly, or if the user is in the included percentage of any of the group rollouts, or if the user falls into the default rollout percentage then that user will have the feature enabled.
0 commit comments