Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldDefine ¶
type FieldDefine struct { Key string `json:"key"` Type string `json:"type"` Name string `json:"name"` Unit string `json:"uint"` Values []*ValueDefine `json:"values,omitempty"` }
FieldDefine .
type Metric ¶
type Metric struct { Name string `json:"name"` Timestamp int64 `json:"timestamp"` Tags map[string]string `json:"tags"` Fields map[string]interface{} `json:"fields"` }
Metric .
type MetricMeta ¶
type MetricMeta struct { Name NameDefine `json:"name"` Labels map[string]string `json:"labels,omitempty"` Tags map[string]*TagDefine `json:"tags"` Fields map[string]*FieldDefine `json:"fields"` }
MetricMeta .
type NameDefine ¶
NameDefine .
type TagDefine ¶
type TagDefine struct { Key string `json:"key"` Name string `json:"name"` Values []*ValueDefine `json:"values,omitempty"` }
TagDefine .
type ValueDefine ¶
type ValueDefine struct { Value interface{} `json:"value"` Name string `json:"name"` }
ValueDefine .
Click to show internal directories.
Click to hide internal directories.