Type Alias GetTrustScoreExpectationDetails

type GetTrustScoreExpectationDetails = {
    actualValue?: number;
    dimensionStatus?: DimensionStatus;
    lastEvaluation?: ExpectationLastEvaluation;
    threshold?: number;
    warning?: number;
}
Index
actualValue?: number

The current score for this expectation. For ACTIVATED expectations this is the score recorded by the latest evaluation. For NOT_ACTIVATED and DEACTIVATED expectations it is fetched live from the Trust Score service when the response is built, because evaluations only run while an expectation is activated. Omitted when the external service is unreachable (fail-open behavior).

dimensionStatus?: DimensionStatus

The availability status of the trust score dimension.

lastEvaluation?: ExpectationLastEvaluation

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

threshold?: number
warning?: number