1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00
Files
glusterd2/pkg/api/volume-profile-resp.go
vpandey-RH e6ce7cfd90 Volume profile info API + CLI
Signed-off-by: Vishal Pandey <vpandey@redhat.com>
2018-11-16 18:52:23 +05:30

19 lines
789 B
Go

package api
// BrickProfileInfo holds profile info of each brick
type BrickProfileInfo struct {
BrickName string `json:"brick-name"`
CumulativeStats StatType `json:"cumulative-stats"`
IntervalStats StatType `json:"interval-stats"`
}
// StatType contains profile info of cumulative/interval stats of a brick
type StatType struct {
Duration string `json:"duration"`
DataRead string `json:"data-read"`
DataWrite string `json:"data-write"`
Interval string `json:"interval"`
PercentageAvgLatency float64 `json:"percentage-avg-latency"`
StatsInfo map[string]map[string]string `json:"stat-info,omitempty"`
}