Skip to content

Commit 60e3c02

Browse files
committed
metrics: extra fields to session info
Add extra fields (namely, time-stamps and client-GUID) to session info's in-memory representation. Retrieved via smbstatus json output format. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 7840a3c commit 60e3c02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/metrics/smbstatus.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@ type SmbStatusSession struct {
4949
GID int `json:"gid"`
5050
Username string `json:"username"`
5151
Groupname string `json:"groupname"`
52+
CreationTime string `json:"creation_time"`
53+
ExpirationTime string `json:"expiration_time"`
54+
AuthTime string `json:"auth_time"`
5255
RemoteMachine string `json:"remote_machine"`
5356
Hostname string `json:"hostname"`
5457
SessionDialect string `json:"session_dialect"`
58+
ClientGUID string `json:"client_guid"`
5559
Encryption SmbStatusEncryption `json:"encryption"`
5660
Signing SmbStatusSigning `json:"signing"`
5761
}

0 commit comments

Comments
 (0)