Documentation
¶
Index ¶
- func EnsureTagsExist(sess *sqlstore.DBSession, tags []*models.Tag) ([]*models.Tag, error)
- func GetAlertsByDashboardId2(dashboardId int64, sess *sqlstore.DBSession) ([]*models.Alert, error)
- type DashboardStore
- func (d *DashboardStore) DeleteDashboard(ctx context.Context, cmd *models.DeleteDashboardCommand) error
- func (d *DashboardStore) DeleteOrphanedProvisionedDashboards(ctx context.Context, cmd *models.DeleteOrphanedProvisionedDashboardsCommand) error
- func (d *DashboardStore) GetDashboardsByPluginID(ctx context.Context, query *models.GetDashboardsByPluginIdQuery) error
- func (d *DashboardStore) GetFolderByID(ctx context.Context, orgID int64, id int64) (*models.Folder, error)
- func (d *DashboardStore) GetFolderByTitle(ctx context.Context, orgID int64, title string) (*models.Folder, error)
- func (d *DashboardStore) GetFolderByUID(ctx context.Context, orgID int64, uid string) (*models.Folder, error)
- func (d *DashboardStore) GetProvisionedDashboardData(name string) ([]*models.DashboardProvisioning, error)
- func (d *DashboardStore) GetProvisionedDataByDashboardID(dashboardID int64) (*models.DashboardProvisioning, error)
- func (d *DashboardStore) GetProvisionedDataByDashboardUID(orgID int64, dashboardUID string) (*models.DashboardProvisioning, error)
- func (d *DashboardStore) SaveAlerts(ctx context.Context, dashID int64, alerts []*models.Alert) error
- func (d *DashboardStore) SaveDashboard(cmd models.SaveDashboardCommand) (*models.Dashboard, error)
- func (d *DashboardStore) SaveProvisionedDashboard(cmd models.SaveDashboardCommand, provisioning *models.DashboardProvisioning) (*models.Dashboard, error)
- func (d *DashboardStore) UnprovisionDashboard(ctx context.Context, id int64) error
- func (d *DashboardStore) UpdateDashboardACL(ctx context.Context, dashboardID int64, items []*models.DashboardAcl) error
- func (d *DashboardStore) ValidateDashboardBeforeSave(dashboard *models.Dashboard, overwrite bool) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureTagsExist ¶
Types ¶
type DashboardStore ¶
type DashboardStore struct {
// contains filtered or unexported fields
}
func ProvideDashboardStore ¶
func ProvideDashboardStore(sqlStore *sqlstore.SQLStore) *DashboardStore
func (*DashboardStore) DeleteDashboard ¶
func (d *DashboardStore) DeleteDashboard(ctx context.Context, cmd *models.DeleteDashboardCommand) error
func (*DashboardStore) DeleteOrphanedProvisionedDashboards ¶
func (d *DashboardStore) DeleteOrphanedProvisionedDashboards(ctx context.Context, cmd *models.DeleteOrphanedProvisionedDashboardsCommand) error
func (*DashboardStore) GetDashboardsByPluginID ¶
func (d *DashboardStore) GetDashboardsByPluginID(ctx context.Context, query *models.GetDashboardsByPluginIdQuery) error
func (*DashboardStore) GetFolderByID ¶
func (*DashboardStore) GetFolderByTitle ¶
func (*DashboardStore) GetFolderByUID ¶
func (*DashboardStore) GetProvisionedDashboardData ¶
func (d *DashboardStore) GetProvisionedDashboardData(name string) ([]*models.DashboardProvisioning, error)
func (*DashboardStore) GetProvisionedDataByDashboardID ¶
func (d *DashboardStore) GetProvisionedDataByDashboardID(dashboardID int64) (*models.DashboardProvisioning, error)
func (*DashboardStore) GetProvisionedDataByDashboardUID ¶
func (d *DashboardStore) GetProvisionedDataByDashboardUID(orgID int64, dashboardUID string) (*models.DashboardProvisioning, error)
func (*DashboardStore) SaveAlerts ¶
func (*DashboardStore) SaveDashboard ¶
func (d *DashboardStore) SaveDashboard(cmd models.SaveDashboardCommand) (*models.Dashboard, error)
func (*DashboardStore) SaveProvisionedDashboard ¶
func (d *DashboardStore) SaveProvisionedDashboard(cmd models.SaveDashboardCommand, provisioning *models.DashboardProvisioning) (*models.Dashboard, error)
func (*DashboardStore) UnprovisionDashboard ¶
func (d *DashboardStore) UnprovisionDashboard(ctx context.Context, id int64) error
UnprovisionDashboard removes row in dashboard_provisioning for the dashboard making it seem as if manually created. The dashboard will still have `created_by = -1` to see it was not created by any particular user.
func (*DashboardStore) UpdateDashboardACL ¶
func (d *DashboardStore) UpdateDashboardACL(ctx context.Context, dashboardID int64, items []*models.DashboardAcl) error
func (*DashboardStore) ValidateDashboardBeforeSave ¶
Click to show internal directories.
Click to hide internal directories.