Versions in this module Expand all Collapse all v0 v0.1.0 Oct 10, 2019 Changes in this version + type AlertNotification struct + Id int64 + IsDefault bool + Name string + Settings interface{} + Type string + type Client struct + func New(auth, baseURL string) (*Client, error) + func (c *Client) AddOrgUser(orgId int64, user, role string) error + func (c *Client) AlertNotification(id int64) (*AlertNotification, error) + func (c *Client) CreateUser(user User) (int64, error) + func (c *Client) Dashboard(slug string) (*Dashboard, error) + func (c *Client) DataSource(id int64) (*DataSource, error) + func (c *Client) DeleteAlertNotification(id int64) error + func (c *Client) DeleteDashboard(slug string) error + func (c *Client) DeleteDataSource(id int64) error + func (c *Client) DeleteFolder(id string) error + func (c *Client) DeleteOrg(id int64) error + func (c *Client) DeleteUser(id int64) error + func (c *Client) Folder(id int64) (*Folder, error) + func (c *Client) Folders() ([]Folder, error) + func (c *Client) NewAlertNotification(a *AlertNotification) (int64, error) + func (c *Client) NewDashboard(dashboard Dashboard) (*DashboardSaveResponse, error) + func (c *Client) NewDataSource(s *DataSource) (int64, error) + func (c *Client) NewFolder(title string) (Folder, error) + func (c *Client) NewOrg(name string) (int64, error) + func (c *Client) Org(id int64) (Org, error) + func (c *Client) OrgByName(name string) (Org, error) + func (c *Client) OrgUsers(orgId int64) ([]OrgUser, error) + func (c *Client) Orgs() ([]Org, error) + func (c *Client) RemoveOrgUser(orgId, userId int64) error + func (c *Client) SaveDashboard(model map[string]interface{}, overwrite bool) (*DashboardSaveResponse, error) + func (c *Client) UpdateAlertNotification(a *AlertNotification) error + func (c *Client) UpdateDataSource(s *DataSource) error + func (c *Client) UpdateFolder(id string, name string) error + func (c *Client) UpdateOrg(id int64, name string) error + func (c *Client) UpdateOrgUser(orgId, userId int64, role string) error + func (c *Client) UserByEmail(email string) (User, error) + func (c *Client) Users() ([]User, error) + type Dashboard struct + Folder int64 + Meta DashboardMeta + Model map[string]interface{} + Overwrite bool + type DashboardMeta struct + Folder int64 + IsStarred bool + Slug string + type DashboardSaveResponse struct + Id int64 + Slug string + Status string + Uid string + Version int64 + type DataSource struct + Access string + BasicAuth bool + BasicAuthPassword string + BasicAuthUser string + Database string + Id int64 + IsDefault bool + JSONData JSONData + Name string + OrgId int64 + Password string + SecureJSONData SecureJSONData + Type string + URL string + User string + type Folder struct + Id int64 + Title string + Uid string + type JSONData struct + AssumeRoleArn string + AuthType string + CustomMetricsNamespaces string + DefaultRegion string + HttpMethod string + QueryTimeout string + TimeInterval string + TlsSkipVerify bool + type Org struct + Id int64 + Name string + type OrgUser struct + Email string + Login string + OrgId int64 + Role string + UserId int64 + type SecureJSONData struct + AccessKey string + SecretKey string + type User struct + Email string + Id int64 + IsAdmin bool + Login string + Name string + Password string