datasource

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PieLegendBlackName = []string{"job", "instance"}

Functions

func GetSerialName added in v1.5.2

func GetSerialName(query *m.QueryMonitorData, tagMap map[string]string, dataLength int) string

func InitPrometheusDatasource

func InitPrometheusDatasource()

func PrometheusData

func PrometheusData(query *m.QueryMonitorData) []*m.SerialModel

Types

type DataSource

type DataSource struct {
	Id                int
	Name              string
	Type              string
	Url               string
	Password          string
	User              string
	Database          string
	BasicAuth         bool
	BasicAuthUser     string
	BasicAuthPassword string
	WithCredentials   bool
	IsDefault         bool
	ReadOnly          bool
	Created           time.Time
	Updated           time.Time
}

func (*DataSource) GetHttpClient

func (ds *DataSource) GetHttpClient() (*http.Client, error)

func (*DataSource) GetHttpTransport

func (ds *DataSource) GetHttpTransport() (*http.Transport, error)

type DataSourceParam

type DataSourceParam struct {
	DataSource *DataSource
	Host       string
	Token      string
}

Jump to

Keyboard shortcuts

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