featureflagconfig.md•16.2 kB
# FeatureFlagConfig
## Example Usage
```typescript
import { FeatureFlagConfig } from "@launchdarkly/mcp-server/models/components";
let value: FeatureFlagConfig = {
on: true,
archived: true,
salt: "<value>",
sel: "<value>",
lastModified: 799430,
version: 880588,
site: {},
access: {
denied: [],
allowed: [],
},
environmentName: "<value>",
trackEvents: false,
trackEventsFallthrough: true,
};
```
## Fields
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `on` | *boolean* | :heavy_check_mark: | Whether the flag is on |
| `archived` | *boolean* | :heavy_check_mark: | Boolean indicating if the feature flag is archived |
| `salt` | *string* | :heavy_check_mark: | N/A |
| `sel` | *string* | :heavy_check_mark: | N/A |
| `lastModified` | *number* | :heavy_check_mark: | N/A |
| `version` | *number* | :heavy_check_mark: | Version of the feature flag |
| `targets` | [components.Target](../../models/components/target.md)[] | :heavy_minus_sign: | An array of the individual targets that will receive a specific variation based on their key. Individual targets with a context kind of 'user' are included here. |
| `contextTargets` | [components.Target](../../models/components/target.md)[] | :heavy_minus_sign: | An array of the individual targets that will receive a specific variation based on their key. Individual targets with context kinds other than 'user' are included here. |
| `rules` | [components.Rule](../../models/components/rule.md)[] | :heavy_minus_sign: | An array of the rules for how to serve a variation to specific targets based on their attributes |
| `fallthrough` | [components.VariationOrRolloutRep](../../models/components/variationorrolloutrep.md) | :heavy_minus_sign: | N/A |
| `offVariation` | *number* | :heavy_minus_sign: | The ID of the variation to serve when the flag is off |
| `prerequisites` | [components.Prerequisite](../../models/components/prerequisite.md)[] | :heavy_minus_sign: | An array of the prerequisite flags and their variations that are required before this flag takes effect |
| `site` | [components.Link](../../models/components/link.md) | :heavy_check_mark: | N/A |
| `access` | [components.Access](../../models/components/access.md) | :heavy_minus_sign: | N/A |
| `environmentName` | *string* | :heavy_check_mark: | The environment name |
| `trackEvents` | *boolean* | :heavy_check_mark: | Whether LaunchDarkly tracks events for the feature flag, for all rules |
| `trackEventsFallthrough` | *boolean* | :heavy_check_mark: | Whether LaunchDarkly tracks events for the feature flag, for the default rule |
| `debugEventsUntilDate` | *number* | :heavy_minus_sign: | N/A |
| `summary` | [components.FlagSummary](../../models/components/flagsummary.md) | :heavy_minus_sign: | N/A |
| `evaluation` | [components.FlagConfigEvaluation](../../models/components/flagconfigevaluation.md) | :heavy_minus_sign: | N/A |
| `migrationSettings` | [components.FlagConfigMigrationSettingsRep](../../models/components/flagconfigmigrationsettingsrep.md) | :heavy_minus_sign: | N/A |