grafana

package
v0.0.0-...-9577e5e Latest Latest
Warning

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

Go to latest
Published: Jun 21, 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 DashboardInfo

type DashboardInfo struct {
	UID           string
	IsStared      bool
	Version       float64
	SchemaVersion float64
	Timezone      string
}

type GrafanaClient

type GrafanaClient struct {
	Api *gapi.Client
}

func (GrafanaClient) GetDashboardsInfo

func (gc GrafanaClient) GetDashboardsInfo() ([]DashboardInfo, error)

type GrafanaConfig

type GrafanaConfig struct {
	GrafanaApiPoolTime *time.Timer
	Address            string `yaml:"address"`
	ApiKey             string `yaml:"apiKey"`
}

func (GrafanaConfig) NewClient

func (config GrafanaConfig) NewClient() (GrafanaClient, error)

func (*GrafanaConfig) ReadConfigFile

func (gc *GrafanaConfig) ReadConfigFile(grafanaApiConfigFile string) error

Jump to

Keyboard shortcuts

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