Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportDashboardAPI ¶
type ImportDashboardAPI struct {
// contains filtered or unexported fields
}
func New ¶
func New(dashboardImportService dashboardimport.Service, quotaService QuotaService, pluginStore pluginstore.Store, ac accesscontrol.AccessControl) *ImportDashboardAPI
func (*ImportDashboardAPI) ImportDashboard ¶
func (api *ImportDashboardAPI) ImportDashboard(c *contextmodel.ReqContext) response.Response
swagger:route POST /dashboards/import dashboards importDashboard
Import dashboard.
Responses: 200: importDashboardResponse 400: badRequestError 401: unauthorisedError 412: preconditionFailedError 422: unprocessableEntityError 500: internalServerError
func (*ImportDashboardAPI) RegisterAPIEndpoints ¶
func (api *ImportDashboardAPI) RegisterAPIEndpoints(routeRegister routing.RouteRegister)
type ImportDashboardParams ¶
type ImportDashboardParams struct { // in:body // required:true Body dashboardimport.ImportDashboardRequest }
swagger:parameters importDashboard
type ImportDashboardResponse ¶
type ImportDashboardResponse struct { // in: body Body dashboardimport.ImportDashboardResponse `json:"body"` }
swagger:response importDashboardResponse
type QuotaService ¶
type QuotaService interface {
QuotaReached(c *contextmodel.ReqContext, target quota.TargetSrv) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.