Versions in this module Expand all Collapse all v1 v1.0.0 Aug 2, 2020 Changes in this version + var GlobalPointPool *sync.Pool = &sync.Pool + func Escape(s string) string + func PutPointIntoGlobalPool(p *Point) + func ReportLoadResult(params *LoadReportParams, totalItems int64, valueRate float64, ...) error + func ReportQueryResult(params *QueryReportParams, queryName string, minQueryTime float64, ...) error + func TelemetryRunAsync(c *Collector, batchSize uint64, writeToStderr bool, skipN uint64) (src chan *Point, done chan struct{}) + type Collector struct + Points []*Point + func NewCollector(influxhost, dbname, userName, password string) *Collector + func NewCollectorV2(influxhost, orgId, bucketId, authToken string) *Collector + func (c *Collector) CreateDatabase() error + func (c *Collector) PrepBatch() + func (c *Collector) Put(p *Point) + func (c *Collector) Reset() + func (c *Collector) SendBatch() error + type ExtraVal struct + Name string + Value interface{} + type Field struct + func (f *Field) Serialize(w io.Writer) + func (f *Field) SetBool(key string, x bool) + func (f *Field) SetFloat64(key string, x float64) + func (f *Field) SetInt64(key string, x int64) + type LoadReportParams struct + BatchSize int + IsGzip bool + type Point struct + Fields []Field + Measurement string + Tags []Tag + TimestampNano int64 + func GetPointFromGlobalPool() *Point + func (p *Point) AddBoolField(k string, x bool) + func (p *Point) AddFloat64Field(k string, x float64) + func (p *Point) AddInt64Field(k string, x int64) + func (p *Point) AddIntField(k string, x int) + func (p *Point) AddTag(k, v string) + func (p *Point) Init(m string, ts int64) + func (p *Point) Reset() + func (p *Point) Serialize(w io.Writer) + type QueryReportParams struct + BurnIn int64 + type ReportParams struct + DBType string + DestinationUrl string + Hostname string + ItemLimit int + ReportAuthToken string + ReportDatabaseName string + ReportHost string + ReportOrgId string + ReportPassword string + ReportTags [][2]string + ReportUser string + Workers int + type Tag struct + Key string + Value string + func (t *Tag) Serialize(w io.Writer)