Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PeriodicReportInterval is the interval for generating periodic reports PeriodicReportInterval = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APILocalStats ¶
type APILocalStats struct {
// contains filtered or unexported fields
}
APILocalStats is the struct for getting API stats
func NewAPILocalStats ¶
func NewAPILocalStats() *APILocalStats
NewAPILocalStats creates a new APILocalStats
func (*APILocalStats) BuildReport ¶
func (s *APILocalStats) BuildReport() string
BuildReport builds a report of the API stats
func (*APILocalStats) ReportCall ¶
func (s *APILocalStats) ReportCall(report APIReport, size int64)
ReportCall reports a call to the API
type DiskStatus ¶
type DiskStatus struct { All uint64 `json:"All"` Used uint64 `json:"Used"` Free uint64 `json:"Free"` }
DiskStatus is the status of the disk
type NodeStats ¶
type NodeStats struct {
// contains filtered or unexported fields
}
NodeStats is the struct for getting node stats
func NewNodeStats ¶
func NewNodeStats(stats ...StatsReporter) *NodeStats
NewNodeStats creates a new NodeStats
type StatsReporter ¶
type StatsReporter interface {
BuildReport() string
}
StatsReporter is the interface for stats reporter
Click to show internal directories.
Click to hide internal directories.