Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct { ID int AlertID int DashboardID int PanelID int UserID int UserName string NewState string PrevState string Time int64 Text string Metric string RegionID int Tags []string }
Annotation : grafana annotation
type Client ¶
type Client struct { TLSInsecure bool // contains filtered or unexported fields }
Client : Grafana client
func NewClient ¶
func NewClient(config ClientConfig) (*Client, error)
NewClient : create new Grafana client
func (*Client) GetAnnotations ¶
GetAnnotations : get annotations list from Grafana
func (*Client) GetStatus ¶
func (client *Client) GetStatus() (HealthResp, error)
GetStatus : Get Grafana status
type ClientConfig ¶
type ClientConfig struct { URL *url.URL Token string TLSInsecure bool SkipVerify bool CertFile string KeyFile string Logger log.Logger }
ClientConfig : Grafana client config
type HealthResp ¶
HealthResp : Grafana status response
Click to show internal directories.
Click to hide internal directories.