Class EvaluationRule
EvaluationRule defines a single rule for evaluating a feature flag. A rule consists of a condition that, if met, assigns a specific variant or allocation to the user.
Implements
Inherited Members
Namespace: Google.Apis.SaaSServiceManagement.v1beta1.Data
Assembly: Google.Apis.SaaSServiceManagement.v1beta1.dll
Syntax
public class EvaluationRule : IDirectResponseSchema
Properties
Condition
Required. A Common Expression Language (CEL) expression that evaluates to a boolean. The expression is evaluated against the provided context. If it returns true, the rule's target is applied.
Declaration
[JsonProperty("condition")]
public virtual string Condition { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Required. Evaluation rule ID. Max length: 128 bytes.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Target
Required. The target variant or allocation to apply if the condition is met. This should match the name of a defined variant or allocation's ID.
Declaration
[JsonProperty("target")]
public virtual string Target { get; set; }
Property Value
| Type | Description |
|---|---|
| string |