Documentation ¶
Overview ¶
Package grafana implements Grafana client
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoTeamIDs = errors.New("Grafana Teams IDs not set")
)
Custom errors.
Functions ¶
This section is empty.
Types ¶
type Grafana ¶
Grafana implements Grafana client.
func New ¶ added in v0.2.0
func New(webURL string, config config_util.HTTPClientConfig, logger log.Logger) (*Grafana, error)
New return a new instance of Grafana struct.
type GrafanaTeamsReponse ¶
type GrafanaTeamsReponse struct { OrgID int `json:"orgId"` TeamID int `json:"teamId"` TeamUID string `json:"teamUID"` UserID int `json:"userId"` AuthModule string `json:"auth_module"` Email string `json:"email"` Name string `json:"name"` Login string `json:"login"` AvatarURL string `json:"avatarUrl"` Labels []string `json:"labels"` Permission int `json:"permission"` }
GrafanaTeamsReponse is the API response struct from Grafana.
Click to show internal directories.
Click to hide internal directories.