Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed read-only from flow props and http request props #1840

Merged
merged 1 commit into from
Aug 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 7 additions & 23 deletions synapse/models/inet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,23 +1296,18 @@ def getModelDefs(self):
'doc': 'The ingest source file/iden. Used for reparsing.'
}),
('dst', ('inet:server', {}), {
'ro': True,
'doc': 'The destination address / port for a connection.'
}),
('dst:ipv4', ('inet:ipv4', {}), {
'ro': True,
'doc': 'The destination IPv4 address.'
}),
('dst:ipv6', ('inet:ipv6', {}), {
'ro': True,
'doc': 'The destination IPv6 address.'
}),
('dst:port', ('inet:port', {}), {
'ro': True,
'doc': 'The destination port.'
}),
('dst:proto', ('str', {'lower': True}), {
'ro': True,
'doc': 'The destination protocol.'
}),
('dst:host', ('it:host', {}), {
Expand All @@ -1322,47 +1317,36 @@ def getModelDefs(self):
'doc': 'The guid of the destination process.'
}),
('dst:exe', ('file:bytes', {}), {
'ro': True,
'doc': 'The file (executable) that received the connection.'
}),
('dst:txbytes', ('int', {}), {
'ro': True,
'doc': 'The number of bytes sent by the destination host / process / file.'
}),
('src', ('inet:client', {}), {
'ro': True,
'doc': 'The source address / port for a connection.'
}),
('src:ipv4', ('inet:ipv4', {}), {
'ro': True,
'doc': 'The source IPv4 address.'
}),
('src:ipv6', ('inet:ipv6', {}), {
'ro': True,
'doc': 'The source IPv6 address.'
}),
('src:port', ('inet:port', {}), {
'ro': True,
'doc': 'The source port.'
}),
('src:proto', ('str', {'lower': True}), {
'ro': True,
'doc': 'The source protocol.'
}),
('src:host', ('it:host', {}), {
'ro': True,
'doc': 'The guid of the source host.'
}),
('src:proc', ('it:exec:proc', {}), {
'ro': True,
'doc': 'The guid of the source process.'
}),
('src:exe', ('file:bytes', {}), {
'ro': True,
'doc': 'The file (executable) that created the connection.'
}),
('src:txbytes', ('int', {}), {
'ro': True,
'doc': 'The number of bytes sent by the source host / process / file.'
}),
)),
Expand Down Expand Up @@ -1425,14 +1409,14 @@ def getModelDefs(self):

('flow', ('inet:flow', {}), {}),

('client', ('inet:client', {}), {'ro': True}),
('client:ipv4', ('inet:ipv4', {}), {'ro': True}),
('client:ipv6', ('inet:ipv6', {}), {'ro': True}),
('client', ('inet:client', {}), {}),
('client:ipv4', ('inet:ipv4', {}), {}),
('client:ipv6', ('inet:ipv6', {}), {}),

('server', ('inet:server', {}), {'ro': True}),
('server:ipv4', ('inet:ipv4', {}), {'ro': True}),
('server:ipv6', ('inet:ipv6', {}), {'ro': True}),
('server:port', ('inet:port', {}), {'ro': True}),
('server', ('inet:server', {}), {}),
('server:ipv4', ('inet:ipv4', {}), {}),
('server:ipv6', ('inet:ipv6', {}), {}),
('server:port', ('inet:port', {}), {}),

('time', ('time', {}), {
'doc': 'The time that the HTTP request was sent.'}),
Expand Down