def job_health_check(value: int):
    """
    Check health by value according to:
    https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/HealthReport.java
    and output the corresponding icon
    """
    if value >= 80:
        return ":sunny:"
    elif 79 <= value <= 39:
        return ":loud_with_rain:"
    else:
        return ":fire:"