Type Alias UpdateExpectationLastEvaluation

The last evaluation result (only present when updateStatus is SUCCESS).

type UpdateExpectationLastEvaluation = {
    actualValue?: number;
    error?: string;
    errorCode?: string;
    evaluatedAt?: string;
    expectedThreshold?: number;
    expectedWarning?: number;
    status?: EvaluationStatus;
    trigger?: EvaluationTrigger;
}
Index
actualValue?: number

The score recorded at evaluation time. Omitted when status is ERROR (an error evaluation carries no real measurement; never reported as 0).

error?: string
errorCode?: string

Diagnostic error code, present only when status is ERROR. Provided to help troubleshooting; the example values shown are not an exhaustive list of possible codes.

evaluatedAt?: string
expectedThreshold?: number
expectedWarning?: number

The outcome of an evaluation. PASS: the measured value meets the expectation. WARN: the measured value is in the warning range — above the threshold but below the warning level. FAIL: the measured value does not meet the expectation. ERROR: the expectation could not be evaluated (for example the source value could not be resolved).

What triggered the evaluation. PROFILE_EVENT: a new data profile was computed for the dataset. TRUST_SCORE_EVENT: a new data quality (Trust Score) result was computed for the dataset. INITIALISATION: the expectation was activated. MANUAL: an on-demand evaluation requested through the evaluate endpoint.