ThingWorx Model Definition and Composer > Thing Templates > Remote Templates > Obtaining File Transfer and Tunnel Session Information for FDA Audits
  
Obtaining File Transfer and Tunnel Session Information for FDA Audits
FDA-approved devices in your model that require FDA audits, file transfer and tunneling information can be obtained within two events (TunnelSession and FileTransfer) that are fired that contain two data shapes: TunnelSession and FileTransferJob. Both data shapes are located in the RemoteThingWithTunnelsandFileTransfer Thing Template.
The TunnelSession data shape includes information related to a tunnel session and has the following fields:
targetThing
numConnects
code
bytesTransferred
message
blockSize
duration
port
tunnelID
proto
readTimeout
host
startTime
state
endTime
user
tunnelName
isComplete
The FileTransferJob data shape includes information related to a file transfer and has the following fields:
targetChecksum
code
isAsync
maxSize
sourceFile
startPosition
isRestartEnabled
duration
targetFile
startTime
state
sourcePath
sourceRepository
blockCount
bytesTransferred
targetPath
sourceChecksum
transferId
message
blockSize
size
endTime
targetRepository
user
isComplete