Documentation ¶
Index ¶
- func API_GetMetrics(w http.ResponseWriter, req *http.Request)
- func AggloAndCommitMetrics()
- func CommitAggl(metrics []DataDefDB)
- func GetSystemMetrics()
- func Init()
- func InitAggl()
- func MergeMetric(SetOperation string, currentValue int, newValue int, avgIndex int) int
- func ModuloTime(start time.Time, modulo time.Duration) time.Time
- func PushSetMetric(key string, value int, def DataDef)
- func Run()
- func SaveMetrics()
- type DataDef
- type DataDefDB
- type DataDefDBEntry
- type DataPush
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func API_GetMetrics ¶
func API_GetMetrics(w http.ResponseWriter, req *http.Request)
func AggloAndCommitMetrics ¶
func AggloAndCommitMetrics()
func CommitAggl ¶
func CommitAggl(metrics []DataDefDB)
func GetSystemMetrics ¶
func GetSystemMetrics()
func MergeMetric ¶
func PushSetMetric ¶
func SaveMetrics ¶
func SaveMetrics()
Types ¶
type DataDefDB ¶
type DataDefDB struct { Values []DataDefDBEntry ValuesAggl map[string]DataDefDBEntry LastUpdate time.Time Max uint64 Label string Key string AggloType string }
func AggloMetrics ¶
func AggloMetrics() []DataDefDB
type DataDefDBEntry ¶
Click to show internal directories.
Click to hide internal directories.