Type Alias ExpectationLastEvaluation

The last evaluation result. Only present when the expectation status is ACTIVATED or DEACTIVATED.

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

The score value that was recorded at evaluation time (historical snapshot). Unlike the top-level actualValue on GetExpectationItem which is fetched live, this value reflects the score at the moment the evaluation was performed. 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

The threshold that was in effect when the evaluation was performed.

expectedWarning?: number

The warning range that was in effect when the evaluation was performed.

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.