Documentation ¶
Index ¶
- Constants
- func CopyFieldDefine(field *pb.FieldDefine) *pb.FieldDefine
- func CopyMeta(m *pb.MetricMeta) *pb.MetricMeta
- func CopyNameDefine(name *pb.NameDefine) *pb.NameDefine
- func CopyTagDefine(tag *pb.TagDefine) *pb.TagDefine
- func CopyValue(v *pb.ValueDefine) *pb.ValueDefine
- func FieldsKeys(m *pb.MetricMeta) []string
- func NewMeta() *pb.MetricMeta
- func TagsKeys(m *pb.MetricMeta) []string
- type Metric
- type TableMetrics
- type TableMetricsMeta
Constants ¶
View Source
const ( // distributed table CH_TABLE_ALL = "metrics_all" CH_TABLE = "metrics" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
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"` OrgName string `json:"-"` }
Metric .
type TableMetrics ¶
type TableMetrics struct { OrgName string `ch:"org_name"` TenantId string `ch:"tenant_id"` MetricGroup string `ch:"metric_group"` Timestamp time.Time `ch:"timestamp"` NumberFieldKeys []string `ch:"number_field_keys"` NumberFieldValues []float64 `ch:"number_field_values"` StringFieldKeys []string `ch:"string_field_keys"` StringFieldValues []string `ch:"string_field_values"` TagKeys []string `ch:"tag_keys"` TagValues []string `ch:"tag_values"` }
type TableMetricsMeta ¶
type TableMetricsMeta struct { OrgName string `ch:"org_name"` TenantId string `ch:"tenant_id"` MetricGroup string `ch:"metric_group"` Timestamp time.Time `ch:"timestamp"` NumberFieldKeys []string `ch:"number_field_keys"` StringFieldKeys []string `ch:"string_field_keys"` TagKeys []string `ch:"tag_keys"` }
Click to show internal directories.
Click to hide internal directories.