extrav2

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminV2

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

AdminV2 struct

func NewAdminClient

func NewAdminClient(ctx context.Context, logger *zap.Logger, client influxdb2.Client, organizationName, bucketName string) *AdminV2

NewAdminClient returns influxdb admin client

func (*AdminV2) CreateBucket

func (av2 *AdminV2) CreateBucket() error

CreateBucket adds a bucket to influxdb

func (*AdminV2) IsBucketAvailable

func (av2 *AdminV2) IsBucketAvailable() (bool, error)

IsBucketAvailable returns the availability of the database

type QueryV2

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

QueryV2 struct

func NewQueryClient

func NewQueryClient(logger *zap.Logger, api api.QueryAPI, bucket string) *QueryV2

func (*QueryV2) ExecuteQuery

func (qv2 *QueryV2) ExecuteQuery(q *metricTY.Query, measurement string) ([]metricTY.ResponseData, error)

Jump to

Keyboard shortcuts

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