File indexing completed on 2026-04-27 07:41:42
0001
0002
0003 from django.db import migrations, models
0004
0005
0006 class Migration(migrations.Migration):
0007
0008 dependencies = [
0009 (
0010 "monitor_app",
0011 "0002_monitoreditem_agent_url_monitoreditem_last_heartbeat_and_more",
0012 ),
0013 ]
0014
0015 operations = [
0016 migrations.CreateModel(
0017 name="SystemAgent",
0018 fields=[
0019 (
0020 "id",
0021 models.BigAutoField(
0022 auto_created=True,
0023 primary_key=True,
0024 serialize=False,
0025 verbose_name="ID",
0026 ),
0027 ),
0028 ("instance_name", models.CharField(max_length=100, unique=True)),
0029 ("agent_type", models.CharField(max_length=100)),
0030 ("description", models.TextField(blank=True)),
0031 (
0032 "status",
0033 models.CharField(
0034 choices=[
0035 ("UNKNOWN", "Unknown"),
0036 ("OK", "OK"),
0037 ("WARNING", "Warning"),
0038 ("ERROR", "Error"),
0039 ],
0040 default="UNKNOWN",
0041 max_length=10,
0042 ),
0043 ),
0044 ("last_heartbeat", models.DateTimeField(blank=True, null=True)),
0045 ("agent_url", models.URLField(blank=True, null=True)),
0046 ("created_at", models.DateTimeField(auto_now_add=True)),
0047 ("updated_at", models.DateTimeField(auto_now=True)),
0048 ],
0049 ),
0050 migrations.DeleteModel(
0051 name="MonitoredItem",
0052 ),
0053 ]