Skip to content

Commit ba52512

Browse files
authored
Merge pull request #21 from kubeshark/feature-flow-stats
Add Flow type
2 parents 8f375b9 + 4fde673 commit ba52512

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

api.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,20 @@ type TableData struct {
10571057
Selector string `json:"selector"`
10581058
}
10591059

1060+
type Flow struct {
1061+
TimeBegin uint64 `json:"timeBegin"`
1062+
TimeEnd uint64 `json:"timeEnd"`
1063+
Proto string `json:"proto"`
1064+
LocalPeer string `json:"localPeer"`
1065+
RemotePeer string `json:"remotePeer"`
1066+
PacketsSent uint64 `json:"packetsSent"`
1067+
PacketsReceived uint64 `json:"packetsReceived"`
1068+
BytesSent uint64 `json:"bytesSent"`
1069+
BytesReceived uint64 `json:"bytesReceived"`
1070+
ResolvedLocal *ResolutionSummary `json:"resolvedLocal"`
1071+
ResolvedRemote *ResolutionSummary `json:"resolvedRemote"`
1072+
}
1073+
10601074
type TcpReaderDataMsg interface {
10611075
GetBytes() []byte
10621076
GetTimestamp() time.Time

0 commit comments

Comments
 (0)