CheckStatus
The CheckStatus
class defines the possible statuses for a check result. It is used to represent the final outcome of a policy check execution.
Usage
from lunar_policy import CheckStatus
Available Status Values
PASS
CheckStatus.PASS
The check passed successfully. All assertions within the check were satisfied.
FAIL
CheckStatus.FAIL
The check failed. One or more assertions within the check were not satisfied.
NO_DATA
CheckStatus.NO_DATA
The check could not be completed due to missing data. This occurs when required data is not available in the component JSON, typically because a collector has not yet run or the data doesn't exist for the component.
ERROR
CheckStatus.ERROR
The check encountered an error during execution. This indicates an unexpected error occurred during the check execution, such as a runtime exception.
Last updated