mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-04 03:26:19 +00:00

* PMM-6494 Topology labels Added common functions needed for topology lables in mongo exporter and pt-mongodb-summary * PMM-5723 Fix reviewdog. Co-authored-by: Nurlan Moldomurov <nurlan.moldomurov@percona.com>
31 lines
524 B
Go
31 lines
524 B
Go
package proto
|
|
|
|
import "time"
|
|
|
|
type ProcInfo struct {
|
|
CreateTime time.Time
|
|
Path string
|
|
UserName string
|
|
Error error
|
|
}
|
|
|
|
type GetHostInfo struct {
|
|
Hostname string
|
|
HostOsType string
|
|
HostSystemCPUArch string
|
|
HostDatabases int
|
|
HostCollections int
|
|
DBPath string
|
|
|
|
ProcPath string
|
|
ProcUserName string
|
|
ProcCreateTime time.Time
|
|
ProcProcessCount int
|
|
|
|
// Server Status
|
|
ProcessName string
|
|
ReplicasetName string
|
|
Version string
|
|
NodeType string
|
|
}
|