Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue_django_test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周田
vue_django_test
Commits
17fe85a8
Commit
17fe85a8
authored
Aug 18, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mod: 增加异常
parent
c20c9ad6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
models.py
device_communication/models.py
+45
-0
No files found.
device_communication/models.py
0 → 100644
View file @
17fe85a8
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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment