b87eed2597
BREAKING CHANGE: monitor `status` type changed from `bool` to `MonitorStatus`
17 lines
226 B
Python
17 lines
226 B
Python
from enum import Enum
|
|
|
|
|
|
class MonitorStatus(int, Enum):
|
|
"""Enumerate monitor statuses."""
|
|
|
|
DOWN = 0
|
|
"""DOWN"""
|
|
|
|
UP = 1
|
|
"""UP"""
|
|
|
|
PENDING = 2
|
|
"""PENDING"""
|
|
|
|
MAINTENANCE = 3
|
|
"""MAINTENANCE"""
|