extrav1

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminV1

type AdminV1 struct {
	// contains filtered or unexported fields
}

QueryV1 struct

func NewAdminClient

func NewAdminClient(logger *zap.Logger, uri string, insecure bool, bucket, username, password string) *AdminV1

NewAdminClient returns admin client

func (*AdminV1) CreateBucket

func (av1 *AdminV1) CreateBucket() error

CreateBucket adds a database to influxdb

type QueryInput

type QueryInput struct {
	Datbase  string `json:"db"`
	Epoch    string `json:"epoch"` // ns,u,µ,ms,s,m,h
	Username string `json:"u"`
	Password string `json:"p"`
	Pretty   bool   `json:"pretty"`
	Query    string `json:"q"`
}

QueryInput struct

type QueryResult

type QueryResult struct {
	Results []Result `json:"results"`
	Error   string   `json:"error"`
}

type QueryV1

type QueryV1 struct {
	// contains filtered or unexported fields
}

QueryV1 struct

func NewQueryClient

func NewQueryClient(logger *zap.Logger, uri string, insecure bool, bucket, username, password string) *QueryV1

func (*QueryV1) ExecuteQuery

func (qv1 *QueryV1) ExecuteQuery(query *metricType.Query, measurement string) ([]metricType.ResponseData, error)

type Result

type Result struct {
	Series      []Series `json:"series"`
	StatementId int      `json:"statement_id"`
	Error       string   `json:"error"`
}

Result struct

type Series

type Series struct {
	Name    string            `json:"name"`
	Tags    map[string]string `json:"tags"`
	Columns []string          `json:"columns"`
	Values  [][]interface{}   `json:"values"`
}

Series struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL