constants.py 527 B

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