Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GrafanaAPIKey string SnapshotAPIKey string GrafanaAddr *url.URL SnapshotAddr *url.URL }
Config for configuring the snapshot pacakge with the addresses and API keys for the grafana host and snapshot host. API key for require Grafana require admin privelages; the API for the snapshot host require at least editor privelages.
type SnapClient ¶
type SnapClient struct {
// contains filtered or unexported fields
}
SnapClient is for taking multiple snapshots of a Grafana instance and posting them to a snapshot host
func NewSnapClient ¶
func NewSnapClient(config *Config) (*SnapClient, error)
NewSnapClient takes a Config, validates it, and returns a SnapClient
func (*SnapClient) Take ¶
func (sc *SnapClient) Take(config *TakeConfig) (*Snapshot, error)
Take is for taking a snapshot TODO: Should take context
Click to show internal directories.
Click to hide internal directories.