grafana

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NO_ID = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(address string) *Client

func (*Client) DeleteAlertNotification

func (client *Client) DeleteAlertNotification(id string) error

func (*Client) DeleteDashboard

func (client *Client) DeleteDashboard(id string) error

func (*Client) DeleteDataSource

func (client *Client) DeleteDataSource(id string) error

func (*Client) DeleteFolder

func (client *Client) DeleteFolder(id string) error

func (*Client) GetAllAlertNotificationIds

func (client *Client) GetAllAlertNotificationIds() ([]string, error)

func (*Client) GetAllDashboardIds

func (client *Client) GetAllDashboardIds() ([]string, error)

func (*Client) GetAllDataSourceIds

func (client *Client) GetAllDataSourceIds() ([]string, error)

func (*Client) GetAllFolderIds

func (client *Client) GetAllFolderIds() ([]string, error)

func (*Client) PostAlertNotification

func (client *Client) PostAlertNotification(alertNotificationJson string, id string) (string, error)

func (*Client) PostDashboard

func (client *Client) PostDashboard(dashboardJSON string, uid string) (string, error)

func (*Client) PostDashboardWithFolder

func (client *Client) PostDashboardWithFolder(dashboardJSON string, folderId string, uid string) (string, error)

func (*Client) PostDataSource

func (client *Client) PostDataSource(dataSourceJson string, id string) (string, error)

func (*Client) PostFolder

func (client *Client) PostFolder(folderJson string, id string) (string, string, error)

type Interface

type Interface interface {
	PostDashboard(string, string) (string, error)
	PostDashboardWithFolder(string, string, string) (string, error)
	DeleteDashboard(string) error
	GetAllDashboardIds() ([]string, error)

	PostAlertNotification(string, string) (string, error)
	DeleteAlertNotification(string) error
	GetAllAlertNotificationIds() ([]string, error)

	PostDataSource(string, string) (string, error)
	DeleteDataSource(string) error
	GetAllDataSourceIds() ([]string, error)

	PostFolder(string, string) (string, string, error)
	DeleteFolder(string) error
	GetAllFolderIds() ([]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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