Commit 17fe85a8 by 周田

mod: 增加异常

parent c20c9ad6
from django.db import models
# Create your models here.
class SimulateDeviceCommunicationParameter(models.Model):
"""
模拟设备通信参数
"""
id = models.AutoField(primary_key=True)
device_name = models.CharField(max_length=100)
protocol_name = models.CharField(max_length=100)
communicate_mode = models.CharField(max_length=100)
tcp_ip = models.CharField(max_length=40)
tcp_port = models.IntegerField()
udp_ip_src = models.CharField(max_length=40)
udp_port_src = models.IntegerField()
udp_ip_dst = models.CharField(max_length=40)
udp_port_dst = models.IntegerField()
class DeviceCommunicationParameter(models.Model):
"""
设备通信参数
"""
id = models.AutoField(primary_key=True)
device_name = models.CharField(max_length=100)
protocol_name = models.CharField(max_length=100)
communicate_mode = models.CharField(max_length=100)
tcp_ip = models.CharField(max_length=40)
tcp_port = models.IntegerField()
udp_ip_src = models.CharField(max_length=40)
udp_port_src = models.IntegerField()
udp_ip_dst = models.CharField(max_length=40)
udp_port_dst = models.IntegerField()
class MonitorPerformanceAttribution(models.Model):
"""
监控性能属性列表
field_names 格式
["xxx", "aaa"]
"""
id = models.AutoField(primary_key=True)
protocol_name = models.CharField(max_length=100)
field_names = models.TextField()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment