Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2023 Changes in this version + func NewHandler(_ context.Context, svr *server.Server) (http.Handler, apiutil.APIServiceGroup, error) + func TopNRegions(regions []*core.RegionInfo, less func(a, b *core.RegionInfo) bool, n int) []*core.RegionInfo + type Health struct + ClientUrls []string + Health bool + MemberID uint64 + Name string + type HistoryHotRegionsRequest struct + EndTime int64 + HotRegionTypes []string + IsLeaders []bool + IsLearners []bool + PeerIDs []uint64 + RegionIDs []uint64 + StartTime int64 + StoreIDs []uint64 + type HotStoreStats struct + BytesReadStats map[uint64]float64 + BytesWriteStats map[uint64]float64 + KeysReadStats map[uint64]float64 + KeysWriteStats map[uint64]float64 + QueryReadStats map[uint64]float64 + QueryWriteStats map[uint64]float64 + type MetaPeer struct + IsLearner bool + RoleName string + type MetaStore struct + StateName string + type PDPeerStats struct + Peer MetaPeer + type Progress struct + Action string + CurrentSpeed float64 + LeftSeconds float64 + Progress float64 + StoreID uint64 + type RegionHeap struct + func (h *RegionHeap) Len() int + func (h *RegionHeap) Less(i, j int) bool + func (h *RegionHeap) Min() *core.RegionInfo + func (h *RegionHeap) Pop() interface{} + func (h *RegionHeap) Push(x interface{}) + func (h *RegionHeap) Swap(i, j int) + type RegionInfo struct + ApproximateKeys int64 + ApproximateSize int64 + Buckets []string + CPUUsage uint64 + DownPeers []PDPeerStats + EndKey string + ID uint64 + Leader MetaPeer + Peers []MetaPeer + PendingPeers []MetaPeer + ReadBytes uint64 + ReadKeys uint64 + RegionEpoch *metapb.RegionEpoch + ReplicationStatus *ReplicationStatus + StartKey string + WrittenBytes uint64 + WrittenKeys uint64 + func InitRegion(r *core.RegionInfo, s *RegionInfo) *RegionInfo + func NewAPIRegionInfo(r *core.RegionInfo) *RegionInfo + func (r *RegionInfo) Adjust() + type RegionsInfo struct + Count int + Regions []RegionInfo + func (s *RegionsInfo) Adjust() + type ReplicationStatus struct + State string + StateID uint64 + type SlowTrend struct + CauseRate float64 + CauseValue float64 + ResultRate float64 + ResultValue float64 + type StoreInfo struct + Status *StoreStatus + Store *MetaStore + type StoreStatus struct + Available typeutil.ByteSize + Capacity typeutil.ByteSize + IsBusy bool + LastHeartbeatTS *time.Time + LeaderCount int + LeaderScore float64 + LeaderSize int64 + LeaderWeight float64 + LearnerCount int + ReceivingSnapCount uint32 + RegionCount int + RegionScore float64 + RegionSize int64 + RegionWeight float64 + SendingSnapCount uint32 + SlowScore uint64 + SlowTrend *SlowTrend + StartTS *time.Time + Uptime *typeutil.Duration + UsedSize typeutil.ByteSize + WitnessCount int + type StoresInfo struct + Count int + Stores []*StoreInfo + type Trend struct + History *trendHistory + Stores []trendStore