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
const ( MetricTypeUndefined MetricType = iota CPUUsageSecondsPercentage MemoryUsageBytes PowerUsageWatts TemperatureCelsius DutyCycle CurrentOffset Lag )
Metric type enumerator
type ResourceBoundary ¶
type ResourceBoundary int
const ( ResourceBoundaryUndefined ResourceBoundary = iota ResourceRaw ResourceUpperBound ResourceLowerBound )
Resource boundary enumerator
type ResourceQuota ¶
type ResourceQuota int
const ( ResourceQuotaUndefined ResourceQuota = iota ResourceLimit ResourceRequest ResourceInitialLimit ResourceInitialRequest )
Resource quota enumerator
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.