delete checks migrations

This commit is contained in:
wh1te909 2020-02-03 03:59:59 +00:00
parent ba8f30ff6a
commit ea8b213501
18 changed files with 0 additions and 576 deletions

View File

@ -1,108 +0,0 @@
# Generated by Django 2.2.3 on 2019-07-07 23:32
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('agents', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='CpuLoadCheck',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('cpuload', models.PositiveIntegerField(default=85)),
('status', models.CharField(default='N/A', max_length=30)),
('more_info', models.CharField(default='N/A', max_length=255)),
('email_alert', models.BooleanField(default=False)),
('text_alert', models.BooleanField(default=False)),
('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cpuloadchecks', to='agents.Agent')),
],
),
migrations.CreateModel(
name='DiskCheck',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('disk', models.CharField(max_length=2)),
('threshold', models.PositiveIntegerField(default=25)),
('status', models.CharField(default='N/A', max_length=30)),
('email_alert', models.BooleanField(default=False)),
('text_alert', models.BooleanField(default=False)),
('more_info', models.TextField(null=True)),
('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='diskchecks', to='agents.Agent')),
],
),
migrations.CreateModel(
name='PingCheck',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('ip', models.CharField(max_length=255)),
('name', models.CharField(max_length=255, null=True)),
('failures', models.PositiveIntegerField(default=5)),
('status', models.CharField(default='N/A', max_length=30)),
('failure_count', models.IntegerField(default=0)),
('email_alert', models.BooleanField(default=False)),
('text_alert', models.BooleanField(default=False)),
('more_info', models.TextField(null=True)),
('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pingchecks', to='agents.Agent')),
],
),
migrations.CreateModel(
name='PingCheckEmail',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sent', models.DateTimeField(auto_now=True)),
('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.PingCheck')),
],
),
migrations.CreateModel(
name='MemoryHistory',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('mem_history', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(blank=True), default=list, null=True, size=None)),
('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='agents.Agent')),
],
),
migrations.CreateModel(
name='MemCheck',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('threshold', models.PositiveIntegerField(default=75)),
('status', models.CharField(default='N/A', max_length=30)),
('email_alert', models.BooleanField(default=False)),
('text_alert', models.BooleanField(default=False)),
('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='memchecks', to='agents.Agent')),
],
),
migrations.CreateModel(
name='DiskCheckEmail',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sent', models.DateTimeField(auto_now=True)),
('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.DiskCheck')),
],
),
migrations.CreateModel(
name='CpuLoadCheckEmail',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sent', models.DateTimeField(auto_now=True)),
('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.CpuLoadCheck')),
],
),
migrations.CreateModel(
name='CpuHistory',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('cpu_history', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(blank=True), default=list, null=True, size=None)),
('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cpuhistory', to='agents.Agent')),
],
),
]

View File

@ -1,34 +0,0 @@
# Generated by Django 2.2.3 on 2019-07-10 19:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('agents', '0001_initial'),
('checks', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='StandardCheck',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('check_type', models.CharField(max_length=30)),
('disk', models.CharField(max_length=2, null=True)),
('disk_threshold', models.PositiveIntegerField(null=True)),
('status', models.CharField(default='N/A', max_length=30)),
('email_alert', models.BooleanField(default=False)),
('text_alert', models.BooleanField(default=False)),
('more_info', models.TextField(null=True)),
('ping_ip', models.CharField(max_length=255, null=True)),
('ping_name', models.CharField(max_length=255, null=True)),
('ping_failures', models.PositiveIntegerField(null=True)),
('ping_failure_count', models.IntegerField(null=True)),
('mem_threshold', models.PositiveIntegerField(null=True)),
('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='standardcheck', to='agents.Agent')),
],
),
]

View File

@ -1,53 +0,0 @@
# Generated by Django 2.2.3 on 2019-07-10 19:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0002_standardcheck'),
]
operations = [
migrations.AlterField(
model_name='standardcheck',
name='disk',
field=models.CharField(blank=True, max_length=2, null=True),
),
migrations.AlterField(
model_name='standardcheck',
name='disk_threshold',
field=models.PositiveIntegerField(blank=True, null=True),
),
migrations.AlterField(
model_name='standardcheck',
name='mem_threshold',
field=models.PositiveIntegerField(blank=True, null=True),
),
migrations.AlterField(
model_name='standardcheck',
name='more_info',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='standardcheck',
name='ping_failure_count',
field=models.IntegerField(blank=True, null=True),
),
migrations.AlterField(
model_name='standardcheck',
name='ping_failures',
field=models.PositiveIntegerField(blank=True, null=True),
),
migrations.AlterField(
model_name='standardcheck',
name='ping_ip',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='standardcheck',
name='ping_name',
field=models.CharField(blank=True, max_length=255, null=True),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 2.2.3 on 2019-07-10 19:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0003_auto_20190710_1934'),
]
operations = [
migrations.AddField(
model_name='standardcheck',
name='cpuload',
field=models.PositiveIntegerField(blank=True, null=True),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 2.2.4 on 2019-09-08 22:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0004_standardcheck_cpuload'),
]
operations = [
migrations.AlterField(
model_name='standardcheck',
name='check_type',
field=models.CharField(choices=[('disk', 'Disk Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], max_length=30),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 2.2.4 on 2019-09-08 22:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0005_auto_20190908_2205'),
]
operations = [
migrations.AlterField(
model_name='standardcheck',
name='status',
field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='passing', max_length=30),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 2.2.4 on 2019-09-08 22:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0006_auto_20190908_2208'),
]
operations = [
migrations.AlterField(
model_name='standardcheck',
name='status',
field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30),
),
]

View File

@ -1,43 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 04:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0007_auto_20190908_2208'),
]
operations = [
migrations.AddField(
model_name='diskcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], default='diskspace', max_length=30),
),
migrations.AlterField(
model_name='diskcheck',
name='disk',
field=models.CharField(blank=True, max_length=2, null=True),
),
migrations.AlterField(
model_name='diskcheck',
name='more_info',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='diskcheck',
name='status',
field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30),
),
migrations.AlterField(
model_name='diskcheck',
name='threshold',
field=models.PositiveIntegerField(blank=True, null=True),
),
migrations.AlterField(
model_name='standardcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], max_length=30),
),
]

View File

@ -1,28 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 05:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0008_auto_20191013_0410'),
]
operations = [
migrations.AlterField(
model_name='pingcheck',
name='more_info',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='pingcheck',
name='name',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='pingcheck',
name='status',
field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 05:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0009_auto_20191013_0524'),
]
operations = [
migrations.AddField(
model_name='pingcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], default='ping', max_length=30),
),
]

View File

@ -1,23 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 07:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0010_pingcheck_check_type'),
]
operations = [
migrations.AddField(
model_name='diskcheck',
name='last_run',
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name='pingcheck',
name='last_run',
field=models.DateTimeField(auto_now=True),
),
]

View File

@ -1,28 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 21:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0011_auto_20191013_0729'),
]
operations = [
migrations.AddField(
model_name='cpuloadcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], default='cpuload', max_length=30),
),
migrations.AlterField(
model_name='cpuloadcheck',
name='more_info',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='cpuloadcheck',
name='status',
field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 21:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0012_auto_20191013_2105'),
]
operations = [
migrations.AddField(
model_name='cpuloadcheck',
name='last_run',
field=models.DateTimeField(auto_now=True),
),
]

View File

@ -1,28 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 22:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0013_cpuloadcheck_last_run'),
]
operations = [
migrations.AddField(
model_name='memcheck',
name='last_run',
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name='memcheck',
name='more_info',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='memcheck',
name='status',
field=models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30),
),
]

View File

@ -1,22 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 22:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('checks', '0014_auto_20191013_2210'),
]
operations = [
migrations.CreateModel(
name='MemCheckEmail',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sent', models.DateTimeField(auto_now=True)),
('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.MemCheck')),
],
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 22:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checks', '0015_memcheckemail'),
]
operations = [
migrations.AddField(
model_name='memcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check')], default='memory', max_length=30),
),
]

View File

@ -1,67 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-13 23:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('agents', '0004_auto_20190922_1919'),
('checks', '0016_memcheck_check_type'),
]
operations = [
migrations.CreateModel(
name='WinServiceCheck',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('check_type', models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='winsvc', max_length=30)),
('svc_name', models.CharField(max_length=255)),
('svc_display_name', models.CharField(max_length=255)),
('pass_if_start_pending', models.BooleanField(default=False)),
('restart_if_stopped', models.BooleanField(default=False)),
('failures', models.PositiveIntegerField(default=1)),
('failure_count', models.IntegerField(default=0)),
('status', models.CharField(choices=[('passing', 'Passing'), ('failing', 'Failing'), ('pending', 'Pending')], default='pending', max_length=30)),
('more_info', models.TextField(blank=True, null=True)),
('email_alert', models.BooleanField(default=False)),
('text_alert', models.BooleanField(default=False)),
('last_run', models.DateTimeField(auto_now=True)),
('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='winservicechecks', to='agents.Agent')),
],
),
migrations.AlterField(
model_name='cpuloadcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='cpuload', max_length=30),
),
migrations.AlterField(
model_name='diskcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='diskspace', max_length=30),
),
migrations.AlterField(
model_name='memcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='memory', max_length=30),
),
migrations.AlterField(
model_name='pingcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], default='ping', max_length=30),
),
migrations.AlterField(
model_name='standardcheck',
name='check_type',
field=models.CharField(choices=[('diskspace', 'Disk Space Check'), ('ping', 'Ping Check'), ('cpuload', 'CPU Load Check'), ('memory', 'Memory Check'), ('winsvc', 'Win Service Check')], max_length=30),
),
migrations.CreateModel(
name='WinServiceCheckEmail',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sent', models.DateTimeField(auto_now=True)),
('email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checks.WinServiceCheck')),
],
),
]

View File

@ -1,16 +0,0 @@
# Generated by Django 2.2.6 on 2019-10-15 08:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('checks', '0017_auto_20191013_2312'),
]
operations = [
migrations.DeleteModel(
name='StandardCheck',
),
]