{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/Threshold", "title": "Threshold", "properties": { "name": { "type": "string", "description": "Identifies the threshold applicable for an insight. Threshold values impact insight generation.Consider the following example - For the above insight, you can read the configuration as \"Generate the insight only if the change is >= 3%\"

Note- Threshold is fixed for each insight. Only value is editable.

Endpoints -", "example": "CHANGE", "enum": [ "CHANGE", "UPPER_LIMIT", "DAYS_BEFORE", "MINIMUM", "FUTURE", "DELAY", "TOP", "BASETYPE" ] }, "type": { "type": "string", "description": "Identifies the type of threshold. Threshold values impact insight generation.Consider the following example - For the above insight, you can read the configuration as \"Generate the insight only if the change is >= 3%\".

However, consider changing the configuration to as follows by changing the type - For the above insight, you can read the configuration as \"Generate the insight only if the change is >= $300\".

Note- For a single insight, you can have multiple thresholds. If multiple thresholds have values set to a non-zero number, the relationship between the thresholds will be logical AND.

Some insights will have type as AMOUNT and PERCENT. In the above scenario, if you want to generate insight only based on one value, you can set the other to 0.

E.g. if type = AMOUNT is set to 0 and type = PERCENT is set to 3, the insight will be evaluated as \"Generate the insight only if the change is >= 3%\"

However, if AMOUNT = $300 and PERCENT = 3, the insight will be evaluated as \"Generate the insight only if the change % is >= 3% AND change amount >= $300\"

Endpoints -", "example": "PERCENT", "enum": [ "PERCENT", "NUMBER", "DAYS", "AMOUNT", "STRING" ] }, "value": { "type": "string", "description": "The value set for the threshold. 0 is allowed only if there are multiple threshold for the same insight.

Endpoints - ", "example": "10" } } }