Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Counter ¶ added in v1.0.0
type Counter struct {
// contains filtered or unexported fields
}
func (*Counter) GetTSHistory ¶ added in v1.0.0
GetTSHistory gets time-series history for the counter
type Stats ¶ added in v1.0.0
type Stats struct { *Config // contains filtered or unexported fields }
func (*Stats) AddCounter ¶ added in v1.0.0
AddCounter creates a new counter and launches a runFlusher() goroutine for it
func (*Stats) GetAllCounters ¶ added in v1.0.0
GetAllCounters returns the entire counters map
func (*Stats) GetCounter ¶ added in v1.0.0
func (s *Stats) GetCounter(counterType opts.Counter_Type, resourceType opts.Counter_Resource, resourceID string) (*Counter, error)
GetCounter retrieves a single counter from the counters map
func (*Stats) RemoveCounter ¶ added in v1.0.0
RemoveCounter will flush a counter's value to persistent storage, stop the associated runFlusher() go routine, and delete the counter from the counters map
Click to show internal directories.
Click to hide internal directories.