Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseTags = append([]StatTag{Integration}, StorageTags...)
ResponseTags is the order of tags when responding.
View Source
var StorageTags = []StatTag{WrittenBytes, ReadBytes, WrittenKeys, ReadKeys}
StorageTags is the order of tags during storage.
Functions ¶
func Bytes ¶
Bytes converts a string into a byte slice. Need to make sure that the byte slice is not modified.
func GetDisplayTags ¶
GetDisplayTags returns the actual order of the ResponseTags under the specified baseTag.
Types ¶
type PDDataProvider ¶
type PDDataProvider struct { // File mode (debug) FileStartTime int64 FileEndTime int64 // API or Core mode // This item takes effect only when both FileStartTime and FileEndTime are 0. PeriodicGetter RegionsInfoGenerator EtcdProvider pd.EtcdProvider Store *dbstore.DB }
type RegionsInfo ¶
type RegionsInfoGenerator ¶
type RegionsInfoGenerator func() (RegionsInfo, error)
type StatTag ¶
type StatTag int
StatTag is a tag for statistics of different dimensions.
const ( // Integration is The overall value of all other dimension statistics. Integration StatTag = iota // WrittenBytes is the size of the data written per minute. WrittenBytes // ReadBytes is the size of the data read per minute. ReadBytes // WrittenKeys is the number of keys written to the data per minute. WrittenKeys // ReadKeys is the number of keys read to the data per minute. ReadKeys )
Click to show internal directories.
Click to hide internal directories.