2016-07-07 16:13:56 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
type Statistic struct {
|
|
|
|
Name string `json:"name"`
|
2016-08-19 10:12:35 +00:00
|
|
|
Tags map[string]string `json:"tags"`
|
2016-07-07 16:13:56 +00:00
|
|
|
Values map[string]interface{} `json:"values"`
|
|
|
|
}
|
2016-08-23 18:45:12 +00:00
|
|
|
|
|
|
|
func NewStatistic(name string) Statistic {
|
|
|
|
return Statistic{
|
|
|
|
Name: name,
|
|
|
|
Tags: make(map[string]string),
|
|
|
|
Values: make(map[string]interface{}),
|
|
|
|
}
|
|
|
|
}
|