    def from_status(cls, status):
        """Return enum string for a given poll status"""
        if status is None:
            return cls.running
        return cls.stopped
Return enum string for a given poll status
jupyterhub/metrics.py