CombinedCounterVector StatType = 3
ErrorIndex StatType = 4
NameVector StatType = 5
+ Empty StatType = 6
)
func (d StatType) String() string {
return "ErrorIndex"
case NameVector:
return "NameVector"
+ case Empty:
+ return "Empty"
}
return fmt.Sprintf("UnknownStatType(%d)", d)
}
// NameStat represents stat for NameVector.
type NameStat []Name
+// EmptyStat represents removed counter directory
+type EmptyStat string
+
func (ScalarStat) isStat() {}
func (ErrorStat) isStat() {}
func (SimpleCounterStat) isStat() {}
func (CombinedCounterStat) isStat() {}
func (NameStat) isStat() {}
+func (EmptyStat) isStat() {}
func (s ScalarStat) IsZero() bool {
return s == 0
}
return true
}
+func (s EmptyStat) IsZero() bool {
+ return true
+}
// ReduceSimpleCounterStatIndex returns reduced SimpleCounterStat s for index i.
func ReduceSimpleCounterStatIndex(s SimpleCounterStat, i int) uint64 {