influxdbv2

package
v0.2.0-cappuccino Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	URL      string
	Username string
	Password string
}

type Config

type Config struct {
	Clients []Client
}

type Storage

type Storage struct {
	Config  Config
	Clients []*influxdbClient.Client
}

func (*Storage) Init

func (d *Storage) Init() error

func (*Storage) ReadMetric

func (d *Storage) ReadMetric(vmId string, metric string, period string, aggregateType string, duration string) (interface{}, error)

func (*Storage) WriteMetric

func (d *Storage) WriteMetric(metrics map[string]interface{}) error

Jump to

Keyboard shortcuts

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