0002_auto_20210822_1617.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Generated by Django 3.2.6 on 2021-08-22 16:17
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. dependencies = [
  5. ("uptime", "0001_initial"),
  6. ]
  7. operations = [
  8. migrations.AddField(
  9. model_name="monitor",
  10. name="endpoint_id",
  11. field=models.UUIDField(
  12. blank=True,
  13. editable=False,
  14. help_text="Used for referencing heartbeat endpoint",
  15. null=True,
  16. ),
  17. ),
  18. migrations.AlterField(
  19. model_name="monitorcheck",
  20. name="reason",
  21. field=models.PositiveSmallIntegerField(
  22. blank=True,
  23. choices=[
  24. (0, "Unknown"),
  25. (1, "Timeout"),
  26. (2, "Wrong status code"),
  27. (3, "Expected response not found"),
  28. (4, "SSL error"),
  29. (5, "Network error"),
  30. ],
  31. default=0,
  32. null=True,
  33. ),
  34. ),
  35. ]