// This file was auto-generated by Fern from our API Definition.

export interface InsightFormula {
    /**
     * This is the name of the formula.
     * It will be used to label the formula in the insight board on the UI.
     */
    name?: string | undefined;
    /**
     * This is the formula to calculate the insight from the queries.
     * The formula needs to be a valid mathematical expression.
     * The formula must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.
     * Any MathJS formula is allowed - https://mathjs.org/docs/expressions/syntax.html
     *
     * Common valid math operations are +, -, *, /, %
     */
    formula: string;
}
