|
@@ -217,14 +217,11 @@ class Monitor(Model):
|
|
choices=[(k, str(v)) for k, v in MonitorType.as_choices()],
|
|
choices=[(k, str(v)) for k, v in MonitorType.as_choices()],
|
|
)
|
|
)
|
|
config = JSONField(default=dict)
|
|
config = JSONField(default=dict)
|
|
- next_checkin = models.DateTimeField(null=True)
|
|
|
|
- last_checkin = models.DateTimeField(null=True)
|
|
|
|
date_added = models.DateTimeField(default=timezone.now)
|
|
date_added = models.DateTimeField(default=timezone.now)
|
|
|
|
|
|
class Meta:
|
|
class Meta:
|
|
app_label = "sentry"
|
|
app_label = "sentry"
|
|
db_table = "sentry_monitor"
|
|
db_table = "sentry_monitor"
|
|
- index_together = (("type", "next_checkin"),)
|
|
|
|
unique_together = (("organization_id", "slug"),)
|
|
unique_together = (("organization_id", "slug"),)
|
|
|
|
|
|
__repr__ = sane_repr("guid", "project_id", "name")
|
|
__repr__ = sane_repr("guid", "project_id", "name")
|