Versions in this module Expand all Collapse all v1 v1.0.1 Dec 17, 2018 Changes in this version + const SearchTypeDashboard + const SearchTypeFolder + var ErrNotFound = errors.New("404 Not Found") + 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) AddTeamMember(id string, userID int64) 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) DashboardByUid(uid string) (*Dashboard, error) + func (c *Client) DashboardsByFolder(folderId int64) ([]*SearchResultItem, error) + func (c *Client) DataSource(id int64) (*DataSource, error) + func (c *Client) DataSources() ([]*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) DeleteTeam(id string) 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) GetDashboardIdByUid(uid string) (int64, error) + func (c *Client) GetDashboardUidById(id int64) (string, error) + func (c *Client) GetDashboardVersions(id int64) ([]*DashboardVersionItem, error) + func (c *Client) GetFolderPermission(id string) ([]*FolderPermission, error) + func (c *Client) GetOrgPreferences() (*OrgPreferences, error) + func (c *Client) HomeDashboard() (*Dashboard, 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) NewTeam(name string) (Team, 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) RemoveTeamMember(id string, userID int64) error + func (c *Client) SaveDashboard(model map[string]interface{}, overwrite bool) (*DashboardSaveResponse, error) + func (c *Client) Team(id int64) (Team, error) + func (c *Client) TeamMembers(id string) ([]*TeamMember, error) + func (c *Client) Teams() ([]*Team, 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) UpdateFolderPermission(id string, list []*FolderPermission) error + func (c *Client) UpdateOrg(id int64, name string) error + func (c *Client) UpdateOrgPreferences(prefs *OrgPreferences) error + func (c *Client) UpdateOrgUser(orgId, userId int64, role string) error + func (c *Client) UpdateTeam(id string, name string) error + func (c *Client) UpdateUser(userId int64, u UserUpdate) error + func (c *Client) User(userId int64) (User, error) + func (c *Client) UserByEmail(email string) (User, error) + func (c *Client) Users() ([]User, error) + type CreateTeamResponse struct + Id int64 + type Dashboard struct + Folder int64 + Meta DashboardMeta + Model map[string]interface{} + Overwrite bool + type DashboardData struct + Id int64 + Title string + Uid string + type DashboardMeta struct + Folder int64 + IsStarred bool + Slug string + Uid string + type DashboardSaveResponse struct + Id int64 + Slug string + Status string + Uid string + Version int64 + type DashboardVersion struct + Data *DashboardData + Id int64 + type DashboardVersionItem struct + Id int64 + Version int64 + type DataSource struct + Access string + BasicAuth bool + BasicAuthPassword string + BasicAuthUser string + Database string + Id int64 + IsDefault bool + JSONData map[string]interface{} + Name string + OrgId int64 + Password string + SecureJSONData SecureJSONData + Type string + URL string + User string + type Folder struct + Id int64 + Title string + Uid string + type FolderPermission struct + Permission PermissionType + Role string + TeamId int64 + UserId int64 + type JSONData struct + AssumeRoleArn string + AuthType string + CustomMetricsNamespaces string + DefaultRegion string + TlsSkipVerify bool + type Org struct + Id int64 + Name string + type OrgPreferences struct + HomeDashboardId int64 + HomeDashboardUid string + Theme string + Timezone string + type OrgUser struct + Email string + Login string + OrgId int64 + Role string + UserId int64 + type Permission struct + FolderUid string + Id int64 + IsFolder bool + Permission int + Role string + TeamId int64 + UserId int64 + type PermissionType int8 + const None + const PermissionAdmin + const PermissionEdit + const PermissionView + func NewPermissionType(p int) (PermissionType, error) + func (d *PermissionType) MarshalJSON() ([]byte, error) + func (d *PermissionType) UnmarshalJSON(b []byte) error + func (p *PermissionType) String() string + func (p *PermissionType) Value() int8 + type SearchResultItem struct + Id int64 + Title string + Type string + Uid string + Uri string + Url string + func (item *SearchResultItem) IsFolder() bool + func (item *SearchResultItem) Slug() string + type SecureJSONData struct + AccessKey string + SecretKey string + type Team struct + AvatarUrl string + Email string + Id int64 + MemberCount int64 + Name string + OrgId int64 + type TeamMember struct + AvatarUrl string + Email string + Login string + OrgId int64 + TeamId int64 + UserId int64 + type TeamSearchResponse struct + Page int64 + PerPage int64 + Teams []*Team + TotalCount int64 + type User struct + Email string + Id int64 + IsAdmin bool + Login string + Name string + Password string + type UserUpdate struct + Email string + Login string + Name string