Documentation ¶
Index ¶
- Variables
- func DefaultSchemasInit()
- func NewMeasurement(entity interface{}) *schemas.Measurement
- func NewSchema(entity interface{}) *schemas.Schema
- func NewSchemaMeta(entity interface{}) *schemas.SchemaMeta
- func SchemaInit(config *influxdb.Config) error
- type SchemaManagement
- func (p *SchemaManagement) AddSchemas(schemas []*InfluxSchemas.Schema)
- func (p *SchemaManagement) DeleteSchemas(table InfluxSchemas.Scope, category, schemaType string) error
- func (p *SchemaManagement) Flush() error
- func (p *SchemaManagement) GetSchema(schemaScope InfluxSchemas.Scope, schemaCategory, schemaType string) *InfluxSchemas.Schema
- func (p *SchemaManagement) GetSchemas(scope InfluxSchemas.Scope, category, schemaType string) []*InfluxSchemas.Schema
- func (p *SchemaManagement) Refresh() error
- type SchemaMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InfluxConfig *influxdb.Config RWLock *sync.RWMutex Schemas *SchemaMap Schemas2Write *SchemaMap )
View Source
var DefaultSchemas = map[string][]interface{}{ "application": defaults.DefaultSchemaApplication(), "config": defaults.DefaultSchemaConfig(), "fedemeter": defaults.DefaultSchemaFedemeter(), "metering": defaults.DefaultSchemaMetering(), "metric": defaults.DefaultSchemaMetric(), "planning": defaults.DefaultSchemaPlanning(), "prediction": defaults.DefaultSchemaPrediction(), "recommendation": defaults.DefaultSchemaRecommendation(), "resource": defaults.DefaultSchemaResource(), "target": defaults.DefaultSchemaTarget(), }
Functions ¶
func DefaultSchemasInit ¶
func DefaultSchemasInit()
func NewMeasurement ¶
func NewMeasurement(entity interface{}) *schemas.Measurement
func NewSchemaMeta ¶
func NewSchemaMeta(entity interface{}) *schemas.SchemaMeta
func SchemaInit ¶
Types ¶
type SchemaManagement ¶
type SchemaManagement struct { }
func NewSchemaManagement ¶
func NewSchemaManagement() *SchemaManagement
func (*SchemaManagement) AddSchemas ¶
func (p *SchemaManagement) AddSchemas(schemas []*InfluxSchemas.Schema)
func (*SchemaManagement) DeleteSchemas ¶
func (p *SchemaManagement) DeleteSchemas(table InfluxSchemas.Scope, category, schemaType string) error
func (*SchemaManagement) Flush ¶
func (p *SchemaManagement) Flush() error
func (*SchemaManagement) GetSchema ¶
func (p *SchemaManagement) GetSchema(schemaScope InfluxSchemas.Scope, schemaCategory, schemaType string) *InfluxSchemas.Schema
func (*SchemaManagement) GetSchemas ¶
func (p *SchemaManagement) GetSchemas(scope InfluxSchemas.Scope, category, schemaType string) []*InfluxSchemas.Schema
func (*SchemaManagement) Refresh ¶
func (p *SchemaManagement) Refresh() error
Click to show internal directories.
Click to hide internal directories.