1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/openapi/models/variantSchema.ts

27 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-01-05 11:57:53 +01:00
/**
2023-03-15 13:30:07 +01:00
* Generated by Orval
2023-01-05 11:57:53 +01:00
* Do not edit manually.
2023-03-15 13:30:07 +01:00
* See `gen:api` script in package.json
2023-01-05 11:57:53 +01:00
*/
import type { VariantSchemaWeightType } from './variantSchemaWeightType';
2023-01-05 11:57:53 +01:00
import type { VariantSchemaPayload } from './variantSchemaPayload';
import type { OverrideSchema } from './overrideSchema';
/**
* A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description
*/
2023-01-05 11:57:53 +01:00
export interface VariantSchema {
/** The variants name. Is unique for this feature toggle */
2023-01-05 11:57:53 +01:00
name: string;
/** The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information */
2023-01-05 11:57:53 +01:00
weight: number;
/** Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000 */
weightType?: VariantSchemaWeightType;
/** [Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time */
2023-01-05 11:57:53 +01:00
stickiness?: string;
/** Extra data configured for this variant */
2023-01-05 11:57:53 +01:00
payload?: VariantSchemaPayload;
/** Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence. */
2023-01-05 11:57:53 +01:00
overrides?: OverrideSchema[];
}