-
Notifications
You must be signed in to change notification settings - Fork 1
/
counters.go
24 lines (22 loc) · 1.03 KB
/
counters.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Froxy - HTTP over SSH proxy
//
// Copyright (C) 2019 and up by Alexander Pevzner ([email protected])
// See LICENSE for license terms and conditions
//
// Statistic counters
package main
//
// Collection of statistic counters
//
type Counters struct {
UserConnections int32 `json:"user_conns"` // Local user connections
TCPConnections int32 `json:"tcp_conns"` // Direct TCP connections
SSHSessions int32 `json:"ssh_sessions"` // Count of SSH client sessions
SSHConnections int32 `json:"ssh_conns"` // Count of connections via SSH
HTTPRqReceived int32 `json:"http_rq_received"` // Total count of received requests
HTTPRqPending int32 `json:"http_rq_pending"` // Count of pending requests
HTTPRqDirect int32 `json:"http_rq_direct"` // Count of direct requests
HTTPRqForwarded int32 `json:"http_rq_forwarded"` // Count of forwarded requests
HTTPRqBlocked int32 `json:"http_rq_blocked"` // Count of blocked requests
FTPConnections int32 `json:"ftp_conns"` // Count of FTP connections
}