Documentation ¶
Index ¶
- Constants
- Variables
- func AdminCreateUser(c *m.ReqContext, form dtos.AdminCreateUserForm)
- func AdminDeleteUser(c *m.ReqContext)
- func AdminGetSettings(c *m.ReqContext)
- func AdminGetStats(c *m.ReqContext)
- func AdminUpdateUserPassword(c *m.ReqContext, form dtos.AdminUpdateUserPasswordForm)
- func AdminUpdateUserPermissions(c *m.ReqContext, form dtos.AdminUpdateUserPermissionsForm)
- func AppPluginRoute(route *plugins.AppPluginRoute, appID string) macaron.Handler
- func BasicAuthenticatedRequest(req macaron.Request, expectedUser, expectedPass string) bool
- func CreateDashboardSnapshot(c *m.ReqContext, cmd m.CreateDashboardSnapshotCommand)
- func GenStateString() string
- func GetDashboardSnapshot(c *m.ReqContext)
- func GetDashboardTags(c *m.ReqContext)
- func GetSharingOptions(c *m.ReqContext)
- func LoadPlaylistDashboards(orgID int64, signedInUser *m.SignedInUser, playlistID int64) (dtos.PlaylistDashboardsSlice, error)
- func LoadPlaylistItemDTOs(id int64) ([]m.PlaylistItemDTO, error)
- func LoadPlaylistItems(id int64) ([]m.PlaylistItem, error)
- func ProxyGnetRequest(c *m.ReqContext)
- func ReverseProxyGnetReq(proxyPath string) *httputil.ReverseProxy
- func Search(c *m.ReqContext)
- func ValidateOrgAlert(c *m.ReqContext)
- func ValidateOrgPlaylist(c *m.ReqContext)
- func Wrap(action interface{}) macaron.Handler
- type CreateAnnotationError
- type CreateExternalSnapshotResponse
- type HTTPServer
- func (hs *HTTPServer) ChangeActiveOrgAndRedirectToHome(c *m.ReqContext)
- func (hs *HTTPServer) CompleteInvite(c *m.ReqContext, completeInvite dtos.CompleteInviteForm) Response
- func (hs *HTTPServer) GetFrontendSettings(c *m.ReqContext)
- func (hs *HTTPServer) GetPluginList(c *m.ReqContext) Response
- func (hs *HTTPServer) Index(c *m.ReqContext)
- func (hs *HTTPServer) Init() error
- func (hs *HTTPServer) LoginAPIPing(c *m.ReqContext) Response
- func (hs *HTTPServer) LoginPost(c *m.ReqContext, cmd dtos.LoginCommand) Response
- func (hs *HTTPServer) LoginView(c *m.ReqContext)
- func (hs *HTTPServer) Logout(c *m.ReqContext)
- func (hs *HTTPServer) NotFoundHandler(c *m.ReqContext)
- func (hs *HTTPServer) OAuthLogin(ctx *m.ReqContext)
- func (hs *HTTPServer) ProxyDataSourceRequest(c *m.ReqContext)
- func (hs *HTTPServer) QueryMetrics(c *m.ReqContext, reqDto dtos.MetricRequest) Response
- func (hs *HTTPServer) RenderToPng(c *m.ReqContext)
- func (hs *HTTPServer) Run(ctx context.Context) error
- func (hs *HTTPServer) SignUpStep2(c *m.ReqContext, form dtos.SignUpStep2Form) Response
- type NormalResponse
- type Response
- func AddAPIKey(c *m.ReqContext, cmd m.AddApiKeyCommand) Response
- func AddDataSource(c *m.ReqContext, cmd m.AddDataSourceCommand) Response
- func AddOrgInvite(c *m.ReqContext, inviteDto dtos.AddInviteForm) Response
- func AddOrgUser(c *m.ReqContext, cmd m.AddOrgUserCommand) Response
- func AddOrgUserToCurrentOrg(c *m.ReqContext, cmd m.AddOrgUserCommand) Response
- func AddTeamMember(c *m.ReqContext, cmd m.AddTeamMemberCommand) Response
- func AlertTest(c *m.ReqContext, dto dtos.AlertTestCommand) Response
- func CalculateDashboardDiff(c *m.ReqContext, apiOptions dtos.CalculateDiffOptions) Response
- func ChangeUserPassword(c *m.ReqContext, cmd m.ChangeUserPasswordCommand) Response
- func ClearHelpFlags(c *m.ReqContext) Response
- func CreateAlertNotification(c *m.ReqContext, cmd m.CreateAlertNotificationCommand) Response
- func CreateFolder(c *m.ReqContext, cmd m.CreateFolderCommand) Response
- func CreateOrg(c *m.ReqContext, cmd m.CreateOrgCommand) Response
- func CreatePlaylist(c *m.ReqContext, cmd m.CreatePlaylistCommand) Response
- func CreateTeam(c *m.ReqContext, cmd m.CreateTeamCommand) Response
- func DeleteAPIKey(c *m.ReqContext) Response
- func DeleteAlertNotification(c *m.ReqContext) Response
- func DeleteAnnotationByID(c *m.ReqContext) Response
- func DeleteAnnotationRegion(c *m.ReqContext) Response
- func DeleteAnnotations(c *m.ReqContext, cmd dtos.DeleteAnnotationsCmd) Response
- func DeleteDashboard(c *m.ReqContext) Response
- func DeleteDashboardByUID(c *m.ReqContext) Response
- func DeleteDashboardSnapshot(c *m.ReqContext) Response
- func DeleteDashboardSnapshotByDeleteKey(c *m.ReqContext) Response
- func DeleteDataSourceById(c *m.ReqContext) Response
- func DeleteDataSourceByName(c *m.ReqContext) Response
- func DeleteFolder(c *m.ReqContext) Response
- func DeleteOrgByID(c *m.ReqContext) Response
- func DeletePlaylist(c *m.ReqContext) Response
- func DeleteTeamByID(c *m.ReqContext) Response
- func GenerateError(c *m.ReqContext) Response
- func GenerateSQLTestData(c *m.ReqContext) Response
- func GetAPIKeys(c *m.ReqContext) Response
- func GetAlert(c *m.ReqContext) Response
- func GetAlertNotificationByID(c *m.ReqContext) Response
- func GetAlertNotifications(c *m.ReqContext) Response
- func GetAlertNotifiers(c *m.ReqContext) Response
- func GetAlertStatesForDashboard(c *m.ReqContext) Response
- func GetAlerts(c *m.ReqContext) Response
- func GetAnnotations(c *m.ReqContext) Response
- func GetDashboard(c *m.ReqContext) Response
- func GetDashboardPermissionList(c *m.ReqContext) Response
- func GetDashboardVersion(c *m.ReqContext) Response
- func GetDashboardVersions(c *m.ReqContext) Response
- func GetDataSourceById(c *m.ReqContext) Response
- func GetDataSourceByName(c *m.ReqContext) Response
- func GetDataSourceIdByName(c *m.ReqContext) Response
- func GetDataSources(c *m.ReqContext) Response
- func GetFolderByID(c *m.ReqContext) Response
- func GetFolderByUID(c *m.ReqContext) Response
- func GetFolderPermissionList(c *m.ReqContext) Response
- func GetFolders(c *m.ReqContext) Response
- func GetHomeDashboard(c *m.ReqContext) Response
- func GetInviteInfoByCode(c *m.ReqContext) Response
- func GetOrgByID(c *m.ReqContext) Response
- func GetOrgByName(c *m.ReqContext) Response
- func GetOrgCurrent(c *m.ReqContext) Response
- func GetOrgPreferences(c *m.ReqContext) Response
- func GetOrgQuotas(c *m.ReqContext) Response
- func GetOrgUsers(c *m.ReqContext) Response
- func GetOrgUsersForCurrentOrg(c *m.ReqContext) Response
- func GetPendingOrgInvites(c *m.ReqContext) Response
- func GetPlaylist(c *m.ReqContext) Response
- func GetPlaylistDashboards(c *m.ReqContext) Response
- func GetPlaylistItems(c *m.ReqContext) Response
- func GetPluginDashboards(c *m.ReqContext) Response
- func GetPluginMarkdown(c *m.ReqContext) Response
- func GetPluginSettingByID(c *m.ReqContext) Response
- func GetSignUpOptions(c *m.ReqContext) Response
- func GetSignedInUser(c *m.ReqContext) Response
- func GetSignedInUserOrgList(c *m.ReqContext) Response
- func GetSignedInUserTeamList(c *m.ReqContext) Response
- func GetTeamByID(c *m.ReqContext) Response
- func GetTeamMembers(c *m.ReqContext) Response
- func GetTeamPreferences(c *m.ReqContext) Response
- func GetTestDataRandomWalk(c *m.ReqContext) Response
- func GetTestDataScenarios(c *m.ReqContext) Response
- func GetUserByID(c *m.ReqContext) Response
- func GetUserByLoginOrEmail(c *m.ReqContext) Response
- func GetUserOrgList(c *m.ReqContext) Response
- func GetUserPreferences(c *m.ReqContext) Response
- func GetUserQuotas(c *m.ReqContext) Response
- func GetUserTeams(c *m.ReqContext) Response
- func ImportDashboard(c *m.ReqContext, apiCmd dtos.ImportDashboardCommand) Response
- func NotificationTest(c *m.ReqContext, dto dtos.NotificationTestCommand) Response
- func PatchAnnotation(c *m.ReqContext, cmd dtos.PatchAnnotationsCmd) Response
- func PauseAlert(c *m.ReqContext, dto dtos.PauseAlertCommand) Response
- func PauseAllAlerts(c *m.ReqContext, dto dtos.PauseAllAlertsCommand) Response
- func PostAnnotation(c *m.ReqContext, cmd dtos.PostAnnotationsCmd) Response
- func PostDashboard(c *m.ReqContext, cmd m.SaveDashboardCommand) Response
- func PostGraphiteAnnotation(c *m.ReqContext, cmd dtos.PostGraphiteAnnotationsCmd) Response
- func RemoveOrgUser(c *m.ReqContext) Response
- func RemoveOrgUserForCurrentOrg(c *m.ReqContext) Response
- func RemoveTeamMember(c *m.ReqContext) Response
- func ResetPassword(c *m.ReqContext, form dtos.ResetUserPasswordForm) Response
- func RestoreDashboardVersion(c *m.ReqContext, apiCmd dtos.RestoreDashboardVersionCommand) Response
- func RevokeInvite(c *m.ReqContext) Response
- func SearchDashboardSnapshots(c *m.ReqContext) Response
- func SearchOrgs(c *m.ReqContext) Response
- func SearchPlaylists(c *m.ReqContext) Response
- func SearchTeams(c *m.ReqContext) Response
- func SearchUsers(c *m.ReqContext) Response
- func SearchUsersWithPaging(c *m.ReqContext) Response
- func SendResetPasswordEmail(c *m.ReqContext, form dtos.SendResetPasswordEmailForm) Response
- func SetHelpFlag(c *m.ReqContext) Response
- func SetHomeDashboard(c *m.ReqContext, cmd m.SavePreferencesCommand) Response
- func SignUp(c *m.ReqContext, form dtos.SignUpForm) Response
- func StarDashboard(c *m.ReqContext) Response
- func UnstarDashboard(c *m.ReqContext) Response
- func UpdateAlertNotification(c *m.ReqContext, cmd m.UpdateAlertNotificationCommand) Response
- func UpdateAnnotation(c *m.ReqContext, cmd dtos.UpdateAnnotationsCmd) Response
- func UpdateDashboardPermissions(c *m.ReqContext, apiCmd dtos.UpdateDashboardAclCommand) Response
- func UpdateDataSource(c *m.ReqContext, cmd m.UpdateDataSourceCommand) Response
- func UpdateFolder(c *m.ReqContext, cmd m.UpdateFolderCommand) Response
- func UpdateFolderPermissions(c *m.ReqContext, apiCmd dtos.UpdateDashboardAclCommand) Response
- func UpdateOrg(c *m.ReqContext, form dtos.UpdateOrgForm) Response
- func UpdateOrgAddress(c *m.ReqContext, form dtos.UpdateOrgAddressForm) Response
- func UpdateOrgAddressCurrent(c *m.ReqContext, form dtos.UpdateOrgAddressForm) Response
- func UpdateOrgCurrent(c *m.ReqContext, form dtos.UpdateOrgForm) Response
- func UpdateOrgPreferences(c *m.ReqContext, dtoCmd dtos.UpdatePrefsCmd) Response
- func UpdateOrgQuota(c *m.ReqContext, cmd m.UpdateOrgQuotaCmd) Response
- func UpdateOrgUser(c *m.ReqContext, cmd m.UpdateOrgUserCommand) Response
- func UpdateOrgUserForCurrentOrg(c *m.ReqContext, cmd m.UpdateOrgUserCommand) Response
- func UpdatePlaylist(c *m.ReqContext, cmd m.UpdatePlaylistCommand) Response
- func UpdatePluginSetting(c *m.ReqContext, cmd m.UpdatePluginSettingCmd) Response
- func UpdateSignedInUser(c *m.ReqContext, cmd m.UpdateUserCommand) Response
- func UpdateTeam(c *m.ReqContext, cmd m.UpdateTeamCommand) Response
- func UpdateTeamPreferences(c *m.ReqContext, dtoCmd dtos.UpdatePrefsCmd) Response
- func UpdateUser(c *m.ReqContext, cmd m.UpdateUserCommand) Response
- func UpdateUserActiveOrg(c *m.ReqContext) Response
- func UpdateUserPreferences(c *m.ReqContext, dtoCmd dtos.UpdatePrefsCmd) Response
- func UpdateUserQuota(c *m.ReqContext, cmd m.UpdateUserQuotaCmd) Response
- func UserSetUsingOrg(c *m.ReqContext) Response
Constants ¶
const ( ViewIndex = "index" LoginErrorCookieName = "login_error" )
Variables ¶
var ( NotFound = func() Response { return Error(404, "Not found", nil) } ServerError = func(err error) Response { return Error(500, "Server error", err) } )
var (
OauthStateCookieName = "oauth_state"
)
Functions ¶
func AdminCreateUser ¶
func AdminCreateUser(c *m.ReqContext, form dtos.AdminCreateUserForm)
func AdminDeleteUser ¶
func AdminDeleteUser(c *m.ReqContext)
func AdminGetSettings ¶
func AdminGetSettings(c *m.ReqContext)
func AdminGetStats ¶
func AdminGetStats(c *m.ReqContext)
func AdminUpdateUserPassword ¶
func AdminUpdateUserPassword(c *m.ReqContext, form dtos.AdminUpdateUserPasswordForm)
func AdminUpdateUserPermissions ¶
func AdminUpdateUserPermissions(c *m.ReqContext, form dtos.AdminUpdateUserPermissionsForm)
PUT /api/admin/users/:id/permissions
func AppPluginRoute ¶
func AppPluginRoute(route *plugins.AppPluginRoute, appID string) macaron.Handler
func BasicAuthenticatedRequest ¶
BasicAuthenticatedRequest parses the provided HTTP request for basic authentication credentials and returns true if the provided credentials match the expected username and password. Returns false if the request is unauthenticated. Uses constant-time comparison in order to mitigate timing attacks.
func CreateDashboardSnapshot ¶
func CreateDashboardSnapshot(c *m.ReqContext, cmd m.CreateDashboardSnapshotCommand)
POST /api/snapshots
func GenStateString ¶
func GenStateString() string
func GetDashboardTags ¶
func GetDashboardTags(c *m.ReqContext)
func GetSharingOptions ¶
func GetSharingOptions(c *m.ReqContext)
func LoadPlaylistDashboards ¶
func LoadPlaylistDashboards(orgID int64, signedInUser *m.SignedInUser, playlistID int64) (dtos.PlaylistDashboardsSlice, error)
func LoadPlaylistItemDTOs ¶
func LoadPlaylistItemDTOs(id int64) ([]m.PlaylistItemDTO, error)
func LoadPlaylistItems ¶
func LoadPlaylistItems(id int64) ([]m.PlaylistItem, error)
func ProxyGnetRequest ¶
func ProxyGnetRequest(c *m.ReqContext)
func ReverseProxyGnetReq ¶
func ReverseProxyGnetReq(proxyPath string) *httputil.ReverseProxy
func Search ¶
func Search(c *m.ReqContext)
func ValidateOrgAlert ¶
func ValidateOrgAlert(c *m.ReqContext)
func ValidateOrgPlaylist ¶
func ValidateOrgPlaylist(c *m.ReqContext)
Types ¶
type CreateAnnotationError ¶
type CreateAnnotationError struct {
// contains filtered or unexported fields
}
func (*CreateAnnotationError) Error ¶
func (e *CreateAnnotationError) Error() string
type HTTPServer ¶
type HTTPServer struct { RouteRegister routing.RouteRegister `inject:""` Bus bus.Bus `inject:""` RenderService rendering.Service `inject:""` Cfg *setting.Cfg `inject:""` HooksService *hooks.HooksService `inject:""` CacheService *cache.CacheService `inject:""` DatasourceCache datasources.CacheService `inject:""` AuthTokenService models.UserTokenService `inject:""` // contains filtered or unexported fields }
func (*HTTPServer) ChangeActiveOrgAndRedirectToHome ¶
func (hs *HTTPServer) ChangeActiveOrgAndRedirectToHome(c *m.ReqContext)
GET /profile/switch-org/:id
func (*HTTPServer) CompleteInvite ¶
func (hs *HTTPServer) CompleteInvite(c *m.ReqContext, completeInvite dtos.CompleteInviteForm) Response
func (*HTTPServer) GetFrontendSettings ¶
func (hs *HTTPServer) GetFrontendSettings(c *m.ReqContext)
func (*HTTPServer) GetPluginList ¶
func (hs *HTTPServer) GetPluginList(c *m.ReqContext) Response
func (*HTTPServer) Index ¶
func (hs *HTTPServer) Index(c *m.ReqContext)
func (*HTTPServer) Init ¶
func (hs *HTTPServer) Init() error
func (*HTTPServer) LoginAPIPing ¶
func (hs *HTTPServer) LoginAPIPing(c *m.ReqContext) Response
func (*HTTPServer) LoginPost ¶
func (hs *HTTPServer) LoginPost(c *m.ReqContext, cmd dtos.LoginCommand) Response
func (*HTTPServer) LoginView ¶
func (hs *HTTPServer) LoginView(c *m.ReqContext)
func (*HTTPServer) Logout ¶
func (hs *HTTPServer) Logout(c *m.ReqContext)
func (*HTTPServer) NotFoundHandler ¶
func (hs *HTTPServer) NotFoundHandler(c *m.ReqContext)
func (*HTTPServer) OAuthLogin ¶
func (hs *HTTPServer) OAuthLogin(ctx *m.ReqContext)
func (*HTTPServer) ProxyDataSourceRequest ¶
func (hs *HTTPServer) ProxyDataSourceRequest(c *m.ReqContext)
func (*HTTPServer) QueryMetrics ¶
func (hs *HTTPServer) QueryMetrics(c *m.ReqContext, reqDto dtos.MetricRequest) Response
POST /api/tsdb/query
func (*HTTPServer) RenderToPng ¶
func (hs *HTTPServer) RenderToPng(c *m.ReqContext)
func (*HTTPServer) SignUpStep2 ¶
func (hs *HTTPServer) SignUpStep2(c *m.ReqContext, form dtos.SignUpStep2Form) Response
type NormalResponse ¶
type NormalResponse struct {
// contains filtered or unexported fields
}
func Error ¶
func Error(status int, message string, err error) *NormalResponse
Error create a erroneous response
func (*NormalResponse) Cache ¶
func (r *NormalResponse) Cache(ttl string) *NormalResponse
func (*NormalResponse) Header ¶
func (r *NormalResponse) Header(key, value string) *NormalResponse
func (*NormalResponse) WriteTo ¶
func (r *NormalResponse) WriteTo(ctx *m.ReqContext)
type Response ¶
type Response interface {
WriteTo(ctx *m.ReqContext)
}
func AddAPIKey ¶
func AddAPIKey(c *m.ReqContext, cmd m.AddApiKeyCommand) Response
func AddDataSource ¶
func AddDataSource(c *m.ReqContext, cmd m.AddDataSourceCommand) Response
func AddOrgInvite ¶
func AddOrgInvite(c *m.ReqContext, inviteDto dtos.AddInviteForm) Response
func AddOrgUser ¶
func AddOrgUser(c *m.ReqContext, cmd m.AddOrgUserCommand) Response
POST /api/orgs/:orgId/users
func AddOrgUserToCurrentOrg ¶
func AddOrgUserToCurrentOrg(c *m.ReqContext, cmd m.AddOrgUserCommand) Response
POST /api/org/users
func AddTeamMember ¶
func AddTeamMember(c *m.ReqContext, cmd m.AddTeamMemberCommand) Response
POST /api/teams/:teamId/members
func AlertTest ¶
func AlertTest(c *m.ReqContext, dto dtos.AlertTestCommand) Response
POST /api/alerts/test
func CalculateDashboardDiff ¶
func CalculateDashboardDiff(c *m.ReqContext, apiOptions dtos.CalculateDiffOptions) Response
POST /api/dashboards/calculate-diff performs diffs on two dashboards
func ChangeUserPassword ¶
func ChangeUserPassword(c *m.ReqContext, cmd m.ChangeUserPasswordCommand) Response
func ClearHelpFlags ¶
func ClearHelpFlags(c *m.ReqContext) Response
func CreateAlertNotification ¶
func CreateAlertNotification(c *m.ReqContext, cmd m.CreateAlertNotificationCommand) Response
func CreateFolder ¶
func CreateFolder(c *m.ReqContext, cmd m.CreateFolderCommand) Response
func CreatePlaylist ¶
func CreatePlaylist(c *m.ReqContext, cmd m.CreatePlaylistCommand) Response
func CreateTeam ¶
func CreateTeam(c *m.ReqContext, cmd m.CreateTeamCommand) Response
POST /api/teams
func DeleteAPIKey ¶
func DeleteAPIKey(c *m.ReqContext) Response
func DeleteAlertNotification ¶
func DeleteAlertNotification(c *m.ReqContext) Response
func DeleteAnnotationByID ¶
func DeleteAnnotationByID(c *m.ReqContext) Response
func DeleteAnnotationRegion ¶
func DeleteAnnotationRegion(c *m.ReqContext) Response
func DeleteAnnotations ¶
func DeleteAnnotations(c *m.ReqContext, cmd dtos.DeleteAnnotationsCmd) Response
func DeleteDashboard ¶
func DeleteDashboard(c *m.ReqContext) Response
func DeleteDashboardByUID ¶
func DeleteDashboardByUID(c *m.ReqContext) Response
func DeleteDashboardSnapshot ¶
func DeleteDashboardSnapshot(c *m.ReqContext) Response
DELETE /api/snapshots/:key
func DeleteDashboardSnapshotByDeleteKey ¶
func DeleteDashboardSnapshotByDeleteKey(c *m.ReqContext) Response
GET /api/snapshots-delete/:deleteKey
func DeleteDataSourceById ¶
func DeleteDataSourceById(c *m.ReqContext) Response
func DeleteDataSourceByName ¶
func DeleteDataSourceByName(c *m.ReqContext) Response
func DeleteFolder ¶
func DeleteFolder(c *m.ReqContext) Response
func DeletePlaylist ¶
func DeletePlaylist(c *m.ReqContext) Response
func GenerateError ¶
func GenerateError(c *m.ReqContext) Response
Generates a index out of range error
func GenerateSQLTestData ¶
func GenerateSQLTestData(c *m.ReqContext) Response
GET /api/tsdb/testdata/gensql
func GetAPIKeys ¶
func GetAPIKeys(c *m.ReqContext) Response
func GetAlertNotificationByID ¶
func GetAlertNotificationByID(c *m.ReqContext) Response
func GetAlertNotifications ¶
func GetAlertNotifications(c *m.ReqContext) Response
func GetAlertNotifiers ¶
func GetAlertNotifiers(c *m.ReqContext) Response
func GetAlertStatesForDashboard ¶
func GetAlertStatesForDashboard(c *m.ReqContext) Response
func GetAnnotations ¶
func GetAnnotations(c *m.ReqContext) Response
func GetDashboard ¶
func GetDashboard(c *m.ReqContext) Response
func GetDashboardPermissionList ¶
func GetDashboardPermissionList(c *m.ReqContext) Response
func GetDashboardVersion ¶
func GetDashboardVersion(c *m.ReqContext) Response
GetDashboardVersion returns the dashboard version with the given ID.
func GetDashboardVersions ¶
func GetDashboardVersions(c *m.ReqContext) Response
GetDashboardVersions returns all dashboard versions as JSON
func GetDataSourceById ¶
func GetDataSourceById(c *m.ReqContext) Response
func GetDataSourceByName ¶
func GetDataSourceByName(c *m.ReqContext) Response
Get /api/datasources/name/:name
func GetDataSourceIdByName ¶
func GetDataSourceIdByName(c *m.ReqContext) Response
Get /api/datasources/id/:name
func GetDataSources ¶
func GetDataSources(c *m.ReqContext) Response
func GetFolderByID ¶
func GetFolderByID(c *m.ReqContext) Response
func GetFolderByUID ¶
func GetFolderByUID(c *m.ReqContext) Response
func GetFolderPermissionList ¶
func GetFolderPermissionList(c *m.ReqContext) Response
func GetFolders ¶
func GetFolders(c *m.ReqContext) Response
func GetHomeDashboard ¶
func GetHomeDashboard(c *m.ReqContext) Response
func GetInviteInfoByCode ¶
func GetInviteInfoByCode(c *m.ReqContext) Response
func GetOrgQuotas ¶
func GetOrgQuotas(c *m.ReqContext) Response
func GetOrgUsersForCurrentOrg ¶
func GetOrgUsersForCurrentOrg(c *m.ReqContext) Response
GET /api/org/users
func GetPendingOrgInvites ¶
func GetPendingOrgInvites(c *m.ReqContext) Response
func GetPlaylist ¶
func GetPlaylist(c *m.ReqContext) Response
func GetPlaylistDashboards ¶
func GetPlaylistDashboards(c *m.ReqContext) Response
func GetPlaylistItems ¶
func GetPlaylistItems(c *m.ReqContext) Response
func GetPluginDashboards ¶
func GetPluginDashboards(c *m.ReqContext) Response
func GetPluginMarkdown ¶
func GetPluginMarkdown(c *m.ReqContext) Response
func GetPluginSettingByID ¶
func GetPluginSettingByID(c *m.ReqContext) Response
func GetSignUpOptions ¶
func GetSignUpOptions(c *m.ReqContext) Response
GET /api/user/signup/options
func GetSignedInUser ¶
func GetSignedInUser(c *m.ReqContext) Response
GET /api/user (current authenticated user)
func GetSignedInUserOrgList ¶
func GetSignedInUserOrgList(c *m.ReqContext) Response
GET /api/user/orgs
func GetSignedInUserTeamList ¶
func GetSignedInUserTeamList(c *m.ReqContext) Response
GET /api/user/teams
func GetTeamPreferences ¶
func GetTeamPreferences(c *m.ReqContext) Response
GET /api/teams/:teamId/preferences
func GetTestDataRandomWalk ¶
func GetTestDataRandomWalk(c *m.ReqContext) Response
GET /api/tsdb/testdata/random-walk
func GetTestDataScenarios ¶
func GetTestDataScenarios(c *m.ReqContext) Response
GET /api/tsdb/testdata/scenarios
func GetUserByLoginOrEmail ¶
func GetUserByLoginOrEmail(c *m.ReqContext) Response
GET /api/users/lookup
func GetUserPreferences ¶
func GetUserPreferences(c *m.ReqContext) Response
GET /api/user/preferences
func GetUserQuotas ¶
func GetUserQuotas(c *m.ReqContext) Response
func ImportDashboard ¶
func ImportDashboard(c *m.ReqContext, apiCmd dtos.ImportDashboardCommand) Response
func NotificationTest ¶
func NotificationTest(c *m.ReqContext, dto dtos.NotificationTestCommand) Response
POST /api/alert-notifications/test
func PatchAnnotation ¶
func PatchAnnotation(c *m.ReqContext, cmd dtos.PatchAnnotationsCmd) Response
func PauseAlert ¶
func PauseAlert(c *m.ReqContext, dto dtos.PauseAlertCommand) Response
POST /api/alerts/:alertId/pause
func PauseAllAlerts ¶
func PauseAllAlerts(c *m.ReqContext, dto dtos.PauseAllAlertsCommand) Response
POST /api/admin/pause-all-alerts
func PostAnnotation ¶
func PostAnnotation(c *m.ReqContext, cmd dtos.PostAnnotationsCmd) Response
func PostDashboard ¶
func PostDashboard(c *m.ReqContext, cmd m.SaveDashboardCommand) Response
func PostGraphiteAnnotation ¶
func PostGraphiteAnnotation(c *m.ReqContext, cmd dtos.PostGraphiteAnnotationsCmd) Response
func RemoveOrgUser ¶
func RemoveOrgUser(c *m.ReqContext) Response
DELETE /api/orgs/:orgId/users/:userId
func RemoveOrgUserForCurrentOrg ¶
func RemoveOrgUserForCurrentOrg(c *m.ReqContext) Response
DELETE /api/org/users/:userId
func RemoveTeamMember ¶
func RemoveTeamMember(c *m.ReqContext) Response
DELETE /api/teams/:teamId/members/:userId
func ResetPassword ¶
func ResetPassword(c *m.ReqContext, form dtos.ResetUserPasswordForm) Response
func RestoreDashboardVersion ¶
func RestoreDashboardVersion(c *m.ReqContext, apiCmd dtos.RestoreDashboardVersionCommand) Response
RestoreDashboardVersion restores a dashboard to the given version.
func RevokeInvite ¶
func RevokeInvite(c *m.ReqContext) Response
func SearchDashboardSnapshots ¶
func SearchDashboardSnapshots(c *m.ReqContext) Response
GET /api/dashboard/snapshots
func SearchOrgs ¶
func SearchOrgs(c *m.ReqContext) Response
func SearchPlaylists ¶
func SearchPlaylists(c *m.ReqContext) Response
func SearchUsersWithPaging ¶
func SearchUsersWithPaging(c *m.ReqContext) Response
GET /api/users/search
func SendResetPasswordEmail ¶
func SendResetPasswordEmail(c *m.ReqContext, form dtos.SendResetPasswordEmailForm) Response
func SetHelpFlag ¶
func SetHelpFlag(c *m.ReqContext) Response
func SetHomeDashboard ¶
func SetHomeDashboard(c *m.ReqContext, cmd m.SavePreferencesCommand) Response
POST /api/preferences/set-home-dash
func StarDashboard ¶
func StarDashboard(c *m.ReqContext) Response
func UnstarDashboard ¶
func UnstarDashboard(c *m.ReqContext) Response
func UpdateAlertNotification ¶
func UpdateAlertNotification(c *m.ReqContext, cmd m.UpdateAlertNotificationCommand) Response
func UpdateAnnotation ¶
func UpdateAnnotation(c *m.ReqContext, cmd dtos.UpdateAnnotationsCmd) Response
func UpdateDashboardPermissions ¶
func UpdateDashboardPermissions(c *m.ReqContext, apiCmd dtos.UpdateDashboardAclCommand) Response
func UpdateDataSource ¶
func UpdateDataSource(c *m.ReqContext, cmd m.UpdateDataSourceCommand) Response
func UpdateFolder ¶
func UpdateFolder(c *m.ReqContext, cmd m.UpdateFolderCommand) Response
func UpdateFolderPermissions ¶
func UpdateFolderPermissions(c *m.ReqContext, apiCmd dtos.UpdateDashboardAclCommand) Response
func UpdateOrg ¶
func UpdateOrg(c *m.ReqContext, form dtos.UpdateOrgForm) Response
PUT /api/orgs/:orgId
func UpdateOrgAddress ¶
func UpdateOrgAddress(c *m.ReqContext, form dtos.UpdateOrgAddressForm) Response
PUT /api/orgs/:orgId/address
func UpdateOrgAddressCurrent ¶
func UpdateOrgAddressCurrent(c *m.ReqContext, form dtos.UpdateOrgAddressForm) Response
PUT /api/org/address
func UpdateOrgCurrent ¶
func UpdateOrgCurrent(c *m.ReqContext, form dtos.UpdateOrgForm) Response
PUT /api/org
func UpdateOrgPreferences ¶
func UpdateOrgPreferences(c *m.ReqContext, dtoCmd dtos.UpdatePrefsCmd) Response
PUT /api/org/preferences
func UpdateOrgQuota ¶
func UpdateOrgQuota(c *m.ReqContext, cmd m.UpdateOrgQuotaCmd) Response
func UpdateOrgUser ¶
func UpdateOrgUser(c *m.ReqContext, cmd m.UpdateOrgUserCommand) Response
PATCH /api/orgs/:orgId/users/:userId
func UpdateOrgUserForCurrentOrg ¶
func UpdateOrgUserForCurrentOrg(c *m.ReqContext, cmd m.UpdateOrgUserCommand) Response
PATCH /api/org/users/:userId
func UpdatePlaylist ¶
func UpdatePlaylist(c *m.ReqContext, cmd m.UpdatePlaylistCommand) Response
func UpdatePluginSetting ¶
func UpdatePluginSetting(c *m.ReqContext, cmd m.UpdatePluginSettingCmd) Response
func UpdateSignedInUser ¶
func UpdateSignedInUser(c *m.ReqContext, cmd m.UpdateUserCommand) Response
POST /api/user
func UpdateTeam ¶
func UpdateTeam(c *m.ReqContext, cmd m.UpdateTeamCommand) Response
PUT /api/teams/:teamId
func UpdateTeamPreferences ¶
func UpdateTeamPreferences(c *m.ReqContext, dtoCmd dtos.UpdatePrefsCmd) Response
PUT /api/teams/:teamId/preferences
func UpdateUser ¶
func UpdateUser(c *m.ReqContext, cmd m.UpdateUserCommand) Response
POST /api/users/:id
func UpdateUserActiveOrg ¶
func UpdateUserActiveOrg(c *m.ReqContext) Response
POST /api/users/:id/using/:orgId
func UpdateUserPreferences ¶
func UpdateUserPreferences(c *m.ReqContext, dtoCmd dtos.UpdatePrefsCmd) Response
PUT /api/user/preferences
func UpdateUserQuota ¶
func UpdateUserQuota(c *m.ReqContext, cmd m.UpdateUserQuotaCmd) Response
Source Files ¶
- admin.go
- admin_users.go
- alerting.go
- annotations.go
- api.go
- apikey.go
- app_routes.go
- basic_auth.go
- common.go
- dashboard.go
- dashboard_permission.go
- dashboard_snapshot.go
- dataproxy.go
- datasources.go
- folder.go
- folder_permission.go
- frontendsettings.go
- grafana_com_proxy.go
- http_server.go
- index.go
- login.go
- login_oauth.go
- metrics.go
- org.go
- org_invite.go
- org_users.go
- password.go
- playlist.go
- playlist_play.go
- plugins.go
- preferences.go
- quota.go
- render.go
- search.go
- signup.go
- stars.go
- team.go
- team_members.go
- user.go