"""
Sentinel status and interpretation rules.
"""


class Rules:
    """
    Convert a Health Score into an equipment status.
    """

    @staticmethod
    def status(score: float) -> str:
        """
        Return the status associated with a Health Score.
        """
        if score >= 90:
            return "EXCELLENT"

        if score >= 75:
            return "SURVEILLANCE"

        if score >= 50:
            return "ATTENTION"

        return "CRITICAL"