influxdb

package
v0.6.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(storeType StoreType, storageConfig Config) error

NewStorage fuction for initialize InfluxDB Client

Types

type Config

type Config interface{}

Config is common interface of Monitoring Metric Storage Configuration

type Storage

type Storage interface {
	Initialize() error
	WriteMetric(database string, metrics map[string]interface{}) error
	ReadMetric(info types.DBMetricRequestInfo) (interface{}, error)
	DeleteMetric(database string, metric string, duration string) error
}

Storage is common interface of Monitoring Metric Storage

type StoreType

type StoreType string
const (
	V1 StoreType = "v1"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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