Documentation
¶
Index ¶
- type Float
- type InstanceMyVar
- func (mv *InstanceMyVar) Flush(tt ...time.Time) error
- func (mv *InstanceMyVar) FreeFloat(f *Float)
- func (mv *InstanceMyVar) FreeInt(n *Int)
- func (mv *InstanceMyVar) FreeMap(m *Map)
- func (mv *InstanceMyVar) FreeString(s *String)
- func (mv *InstanceMyVar) GetDatabase() string
- func (mv *InstanceMyVar) GetInfluxClient() client.Client
- func (mv *InstanceMyVar) NewFloat(measurement string, tags map[string]string, name string) *Float
- func (mv *InstanceMyVar) NewInt(measurement string, tags map[string]string, name string) *Int
- func (mv *InstanceMyVar) NewMap(measurement string, tags map[string]string) *Map
- func (mv *InstanceMyVar) NewString(measurement string, tags map[string]string, name string) *String
- func (mv *InstanceMyVar) Publish(name string, tags map[string]string, fields map[string]interface{}) error
- func (mv *InstanceMyVar) SetGlobalTag(key, value string)
- type Int
- type Map
- type String
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceMyVar ¶
type InstanceMyVar struct {
// contains filtered or unexported fields
}
func NewMyVar ¶
func NewMyVar(addr, db string, interval time.Duration) (*InstanceMyVar, error)
NewMyVar inits an instance of MyVarClass
func (*InstanceMyVar) Flush ¶
func (mv *InstanceMyVar) Flush(tt ...time.Time) error
Flush write all the points in cache into influxdb
func (*InstanceMyVar) FreeFloat ¶
func (mv *InstanceMyVar) FreeFloat(f *Float)
func (*InstanceMyVar) FreeInt ¶
func (mv *InstanceMyVar) FreeInt(n *Int)
func (*InstanceMyVar) FreeMap ¶
func (mv *InstanceMyVar) FreeMap(m *Map)
func (*InstanceMyVar) FreeString ¶
func (mv *InstanceMyVar) FreeString(s *String)
func (*InstanceMyVar) GetDatabase ¶
func (mv *InstanceMyVar) GetDatabase() string
GetDatabase returns db used for monitoring
func (*InstanceMyVar) GetInfluxClient ¶
func (mv *InstanceMyVar) GetInfluxClient() client.Client
GetInfluxClient return influxdb client
func (*InstanceMyVar) NewMap ¶
func (mv *InstanceMyVar) NewMap(measurement string, tags map[string]string) *Map
func (*InstanceMyVar) Publish ¶
func (mv *InstanceMyVar) Publish(name string, tags map[string]string, fields map[string]interface{}) error
Publish a raw influxdb points
func (*InstanceMyVar) SetGlobalTag ¶
func (mv *InstanceMyVar) SetGlobalTag(key, value string)
SetGlobalTag set global tag list, used by each variable
type Var ¶
type Var struct {
// contains filtered or unexported fields
}
Var
func (Var) GetMeasurement ¶
Click to show internal directories.
Click to hide internal directories.