status.py 441 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from enum import Enum, IntEnum
  4. __author__ = 'James Iter'
  5. __date__ = '2017/3/22'
  6. __contact__ = 'james.iter.cn@gmail.com'
  7. __copyright__ = '(c) 2017 by James Iter.'
  8. class GuestStatus(IntEnum):
  9. shutdown = 0
  10. booting = 1
  11. running = 2
  12. rebooting = 3
  13. suspend = 4
  14. resuming = 5
  15. class LogLevel(IntEnum):
  16. critical = 0
  17. error = 1
  18. warn = 2
  19. info = 3
  20. debug = 4