grafana

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 14 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) *Client

func (*Client) GetDsolo

func (c *Client) GetDsolo(name string, opts ...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

func (*Client) SetAPIKey

func (c *Client) SetAPIKey(apiKey string)

type DsoloParams

type DsoloParams struct {
	OrgId   string
	PanelId string
	From    string
	To      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

type Request

type Request http.Request

Jump to

Keyboard shortcuts

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