grafana

package
v0.0.0-...-f8279ce Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	*sdk.Client
	context.Context
}

func NewAPIClient

func NewAPIClient(grafanaEndpoint string, grafanaToken string) APIClient

func (APIClient) DeleteDashboard

func (a APIClient) DeleteDashboard(slug string) (dStatus v1alpha1.DashboardStatus,
	err error)

delete the specified dashboard when the object is deleted

func (APIClient) DeleteDatasource

func (a APIClient) DeleteDatasource(id uint) (err error)

func (APIClient) DeleteFolder

func (a APIClient) DeleteFolder(uid string) (err error)

func (APIClient) GetFolderByName

func (a APIClient) GetFolderByName(folder string) (id int, uid string, found bool, err error)

func (APIClient) SetDashboard

func (a APIClient) SetDashboard(dSpec v1alpha1.DashboardSpec) (dStatus v1alpha1.DashboardStatus,
	err error)

set a dashboard and return details

func (APIClient) SetDatasource

func (a APIClient) SetDatasource(datasource v1alpha1.Datasource, log logr.Logger) (dsStatus v1alpha1.DatasourceStatus,
	err error)

func (APIClient) SetFolder

func (a APIClient) SetFolder(fSpec v1alpha1.FolderSpec) (folderStatus v1alpha1.FolderStatus, err error)

Jump to

Keyboard shortcuts

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