mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-06 04:17:55 +00:00
47 lines
1.6 KiB
Go
47 lines
1.6 KiB
Go
package proto
|
|
|
|
type ShardStas struct {
|
|
Ns string `json:"ns"`
|
|
Count int64 `json:"count"`
|
|
Size int64 `json:"size"`
|
|
AvgObjSize int64 `json:"avgObjSize"`
|
|
NumExtents int64 `json:"numExtents"`
|
|
StorageSize int64 `json:"storageSize"`
|
|
LastExtentSize int64 `json:"lastExtentSize"`
|
|
PaddingFactor int64 `json:"paddingFactor"`
|
|
PaddingFactorNote string `json:"paddingFactorNote"`
|
|
UserFlags int64 `json:"userFlags"`
|
|
Capped bool `json:"capped"`
|
|
Nindexes int64 `json:"nindexes"`
|
|
IndexDetails struct {
|
|
} `json:"indexDetails"`
|
|
TotalIndexSize int64 `json:"totalIndexSize"`
|
|
IndexSizes struct {
|
|
ID int64 `json:"_id_"`
|
|
IDHashed int64 `json:"_id_hashed"`
|
|
} `json:"indexSizes"`
|
|
Ok int `json:"ok"`
|
|
}
|
|
|
|
type CollStats struct {
|
|
Sharded bool `json:"sharded"`
|
|
PaddingFactorNote string `json:"paddingFactorNote"`
|
|
UserFlags int64 `json:"userFlags"`
|
|
Capped bool `json:"capped"`
|
|
Ns string `json:"ns"`
|
|
Count int64 `json:"count"`
|
|
NumExtents int64 `json:"numExtents"`
|
|
Size int64 `json:"size"`
|
|
StorageSize int64 `json:"storageSize"`
|
|
TotalIndexSize int64 `json:"totalIndexSize"`
|
|
IndexSizes struct {
|
|
ID int `json:"_id_"`
|
|
IDHashed int `json:"_id_hashed"`
|
|
} `json:"indexSizes"`
|
|
AvgObjSize int64 `json:"avgObjSize"`
|
|
Nindexes int64 `json:"nindexes"`
|
|
Nchunks int64 `json:"nchunks"`
|
|
Shards map[string]ShardStas `json:"shards"`
|
|
Ok int64 `json:"ok"`
|
|
}
|