grafana

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTimeRange

func ParseTimeRange(s string) (string, error)

Types

type Client

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

func NewClient

func NewClient(endpoint string, apikey string) *Client

func (*Client) GetDsolo

func (c *Client) GetDsolo(dashboardName string, option ...Option) (*Graph, error)

func (*Client) LoadP12

func (c *Client) LoadP12(keyPath, password string) error

func (*Client) NewRequest

func (c *Client) NewRequest(URL *url.URL, method string) *Request

type DsoloParams

type DsoloParams struct {
	OrgId   string
	PanelId string
	From    string
	To      string
	Tz      string
}

type Graph

type Graph struct {
	Graph *bytes.Buffer
	URL   string
}

type Option

type Option func(*url.Values) *url.Values

func From

func From(from string) Option

func OrgId

func OrgId(orgid string) Option

func PanelId

func PanelId(panelId string) Option

func To

func To(to string) Option

func Tz

func Tz(tz string) Option

type Request

type Request http.Request

Jump to

Keyboard shortcuts

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