You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.4 KiB

  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. import datetime
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ('api', '0001_initial'),
  8. ]
  9. operations = [
  10. migrations.AddField(
  11. model_name='check',
  12. name='alert_after',
  13. field=models.DateTimeField(null=True, blank=True),
  14. ),
  15. migrations.AddField(
  16. model_name='check',
  17. name='enabled',
  18. field=models.BooleanField(default=True),
  19. ),
  20. migrations.AddField(
  21. model_name='check',
  22. name='status',
  23. field=models.CharField(max_length=6, choices=[('up', 'Up'), ('down', 'Down'), ('new', 'New')], default='new'),
  24. ),
  25. migrations.AddField(
  26. model_name='check',
  27. name='timeout',
  28. field=models.DurationField(choices=[(datetime.timedelta(0, 300), '5 minutes'), (datetime.timedelta(0, 600), '10 minutes'), (datetime.timedelta(0, 1800), '30 minutes'), (datetime.timedelta(0, 3600), '1 hour'), (datetime.timedelta(0, 7200), '2 hours'), (datetime.timedelta(0, 21600), '6 hours'), (datetime.timedelta(0, 43200), '12 hours'), (datetime.timedelta(1), '1 day'), (datetime.timedelta(2), '2 days'), (datetime.timedelta(7), '1 week'), (datetime.timedelta(14), '2 weeks')], default=datetime.timedelta(1)),
  29. ),
  30. ]