constants.py 501 B

1234567891011121314151617181920212223
  1. from glitchtip.model_utils import FromStringIntegerChoices
  2. class IssueEventType(FromStringIntegerChoices):
  3. DEFAULT = 0, "default"
  4. ERROR = 1, "error"
  5. CSP = 2, "csp"
  6. class EventStatus(FromStringIntegerChoices):
  7. UNRESOLVED = 0, "unresolved"
  8. RESOLVED = 1, "resolved"
  9. IGNORED = 2, "ignored"
  10. class LogLevel(FromStringIntegerChoices):
  11. NOTSET = 0, "sample"
  12. DEBUG = 1, "debug"
  13. INFO = 2, "info"
  14. WARNING = 3, "warning"
  15. ERROR = 4, "error"
  16. FATAL = 5, "fatal"