PercentCondition interface
Stay organized with collections
Save and categorize content based on your preferences.
Represents a condition that compares the instance pseudo-random percentile to a given limit.
Signature:
export interface PercentCondition
Properties
Property |
Type |
Description |
microPercent |
number |
The limit of percentiles to target in micro-percents when using the LESS_OR_EQUAL and GREATER_THAN operators. The value must be in the range [0 and 100000000]. |
microPercentRange |
MicroPercentRange |
The micro-percent interval to be used with the BETWEEN operator. |
percentOperator |
PercentConditionOperator |
The choice of percent operator to determine how to compare targets to percent(s). |
seed |
string |
The seed used when evaluating the hash function to map an instance to a value in the hash space. This is a string which can have 0 - 32 characters and can contain ASCII characters [-_.0-9a-zA-Z].The string is case-sensitive. |
PercentCondition.microPercent
The limit of percentiles to target in micro-percents when using the LESS_OR_EQUAL and GREATER_THAN operators. The value must be in the range [0 and 100000000].
Signature:
microPercent?: number;
PercentCondition.microPercentRange
The micro-percent interval to be used with the BETWEEN operator.
Signature:
microPercentRange?: MicroPercentRange;
PercentCondition.percentOperator
The choice of percent operator to determine how to compare targets to percent(s).
Signature:
percentOperator?: PercentConditionOperator;
PercentCondition.seed
The seed used when evaluating the hash function to map an instance to a value in the hash space. This is a string which can have 0 - 32 characters and can contain ASCII characters [-_.0-9a-zA-Z].The string is case-sensitive.
Signature:
seed?: string;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-16 UTC.
[null,null,["Last updated 2024-04-16 UTC."],[],[],null,["# PercentCondition interface\n\nRepresents a condition that compares the instance pseudo-random percentile to a given limit.\n\n**Signature:** \n\n export interface PercentCondition \n\nProperties\n----------\n\n| Property | Type | Description |\n|-----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [microPercent](./firebase-admin.remote-config.percentcondition.md#percentconditionmicropercent) | number | The limit of percentiles to target in micro-percents when using the LESS_OR_EQUAL and GREATER_THAN operators. The value must be in the range \\[0 and 100000000\\]. |\n| [microPercentRange](./firebase-admin.remote-config.percentcondition.md#percentconditionmicropercentrange) | [MicroPercentRange](./firebase-admin.remote-config.micropercentrange.md#micropercentrange_interface) | The micro-percent interval to be used with the BETWEEN operator. |\n| [percentOperator](./firebase-admin.remote-config.percentcondition.md#percentconditionpercentoperator) | [PercentConditionOperator](./firebase-admin.remote-config.md#percentconditionoperator) | The choice of percent operator to determine how to compare targets to percent(s). |\n| [seed](./firebase-admin.remote-config.percentcondition.md#percentconditionseed) | string | The seed used when evaluating the hash function to map an instance to a value in the hash space. This is a string which can have 0 - 32 characters and can contain ASCII characters \\[-_.0-9a-zA-Z\\].The string is case-sensitive. |\n\nPercentCondition.microPercent\n-----------------------------\n\nThe limit of percentiles to target in micro-percents when using the LESS_OR_EQUAL and GREATER_THAN operators. The value must be in the range \\[0 and 100000000\\].\n\n**Signature:** \n\n microPercent?: number;\n\nPercentCondition.microPercentRange\n----------------------------------\n\nThe micro-percent interval to be used with the BETWEEN operator.\n\n**Signature:** \n\n microPercentRange?: MicroPercentRange;\n\nPercentCondition.percentOperator\n--------------------------------\n\nThe choice of percent operator to determine how to compare targets to percent(s).\n\n**Signature:** \n\n percentOperator?: PercentConditionOperator;\n\nPercentCondition.seed\n---------------------\n\nThe seed used when evaluating the hash function to map an instance to a value in the hash space. This is a string which can have 0 - 32 characters and can contain ASCII characters \\[-_.0-9a-zA-Z\\].The string is case-sensitive.\n\n**Signature:** \n\n seed?: string;"]]