Documentation ¶
Index ¶
- type APIClient
- func (c *APIClient) CreateDashboard(dashboardJSON io.Reader) error
- func (c *APIClient) CreateDatasource(datasourceJSON io.Reader) error
- func (c *APIClient) CreateFolder(folderJSON io.Reader) error
- func (c *APIClient) CreateNotificationChannel(notificationChannelJSON io.Reader) error
- func (c *APIClient) CreateUser(userJSON io.Reader) error
- func (c *APIClient) DeleteDashboard(uid string) error
- func (c *APIClient) DeleteDatasource(datasourceJSON io.Reader) error
- func (c *APIClient) DeleteNotificationChannel(id int) error
- func (c *APIClient) SearchDashboard() ([]GrafanaDashboard, error)
- func (c *APIClient) SearchDatasource() ([]map[string]interface{}, error)
- func (c *APIClient) SearchFolder() ([]map[string]interface{}, error)
- func (c *APIClient) SearchNotificationChannel() ([]map[string]interface{}, error)
- func (c *APIClient) UpdateDatasource(id int, datasourceJson io.Reader) error
- func (c *APIClient) UpdateNotificationChannel(id int, notificationChannelJSON io.Reader) error
- type GrafanaDashboard
- type GrafanaDashboardConfigmap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { BaseUrl *url.URL HTTPClient *http.Client Id int // contains filtered or unexported fields }
func (*APIClient) CreateDashboard ¶
func (*APIClient) CreateDatasource ¶
func (*APIClient) CreateNotificationChannel ¶
func (*APIClient) DeleteDashboard ¶
func (*APIClient) DeleteDatasource ¶
func (*APIClient) DeleteNotificationChannel ¶
func (*APIClient) SearchDashboard ¶
func (c *APIClient) SearchDashboard() ([]GrafanaDashboard, error)
return a list of grafana dashboards
func (*APIClient) SearchDatasource ¶
return a list of grafana datasources
func (*APIClient) SearchFolder ¶
return a list of folders
func (*APIClient) SearchNotificationChannel ¶
return a list of notification channels
func (*APIClient) UpdateDatasource ¶
type GrafanaDashboard ¶
Click to show internal directories.
Click to hide internal directories.