Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { Name string Required bool ColumnType ColumnType DataType common.DataType }
type ColumnType ¶
type ColumnType int
const ( ColumnTypeUndefined ColumnType = iota Tag Field )
Influxdb column type enumerator
type Measurement ¶
type Measurement struct { Name string MetricType MetricType Boundary ResourceBoundary Quota ResourceQuota Columns []*Column }
func NewMeasurement ¶
func NewMeasurement(name string, metricType MetricType, boundary ResourceBoundary, quota ResourceQuota) *Measurement
func (*Measurement) AddColumn ¶
func (p *Measurement) AddColumn(name string, required bool, columnType ColumnType, dataType common.DataType)
func (*Measurement) Initialize ¶
func (p *Measurement) Initialize(columns string) error
func (*Measurement) String ¶
func (p *Measurement) String() string
func (*Measurement) Validate ¶
func (p *Measurement) Validate(columns []string) error
type MetricType ¶
type MetricType int
type ResourceBoundary ¶
type ResourceBoundary int
type ResourceQuota ¶
type ResourceQuota int
type Schema ¶
type Schema struct { SchemaMeta *SchemaMeta Measurements []*Measurement }
func (*Schema) AddMeasurement ¶
func (p *Schema) AddMeasurement(name string, metricType MetricType, boundary ResourceBoundary, quota ResourceQuota, columns string) error
func (*Schema) GetMeasurement ¶
func (p *Schema) GetMeasurement(name string, metricType MetricType, boundary ResourceBoundary, quota ResourceQuota) *Measurement
type SchemaMeta ¶
func NewSchemaMeta ¶
func NewSchemaMeta(scope Scope, category, schemaType string) *SchemaMeta
Click to show internal directories.
Click to hide internal directories.