influxdb

package
v0.0.0-...-e67e6ae Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityType = "influxdb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Influx

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

Influx allows writing to InfluxDB.

func (*Influx) Close

func (i *Influx) Close() error

Close 关闭连接

func (*Influx) Invoke

func (i *Influx) Invoke(ctx types.ActionContent, message types.Message) error

func (*Influx) Setup

func (i *Influx) Setup(ctx types.ActionContent, metadata map[string]string) error

type InfluxConfig

type InfluxConfig struct {
	URL    string `json:"url"`
	Token  string `json:"token"`
	Org    string `json:"org"`
	Bucket string `json:"bucket"`
}

type Option

type Option struct {
	Tags map[string]string `json:"tags"`
	Urls []string          `json:"urls"`
}

Jump to

Keyboard shortcuts

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