grafana

package
v0.0.0-...-9ce36fb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(logger hclog.Logger) (*Client, error)

func (*Client) GetRawDashboard

func (c *Client) GetRawDashboard(uid string) (bool, map[string]any, error)

func (*Client) ListDashboards

func (c *Client) ListDashboards() ([]*DashboardStub, error)

func (*Client) UpsertRawDashboard

func (c *Client) UpsertRawDashboard(raw map[string]any) error

type DashboardStub

type DashboardStub struct {
	ID        int      `json:"id"`
	UID       string   `json:"uid"`
	Title     string   `json:"title"`
	URI       string   `json:"uri"`
	URL       string   `json:"url"`
	Slug      string   `json:"slug"`
	Type      string   `json:"type"`
	Tags      []string `json:"tags"`
	IsStarred bool     `json:"isStarred"`
}

Jump to

Keyboard shortcuts

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