Documentation ¶
Index ¶
- func GetGravatarUrl(text string) string
- type AddInviteForm
- type AdminCreateUserForm
- type AdminUpdateUserForm
- type AdminUpdateUserPasswordForm
- type AdminUpdateUserPermissionsForm
- type AdminUserListItem
- type AlertNotification
- type AlertRule
- type AlertTestCommand
- type AlertTestResult
- type AlertTestResultLog
- type AnyId
- type CalculateDiffOptions
- type CalculateDiffTarget
- type CompleteInviteForm
- type CurrentUser
- type DashboardFullWithMeta
- type DashboardMeta
- type DashboardRedirect
- type DataSource
- type DataSourceList
- type DataSourceListItemDTO
- type DeleteAnnotationsCmd
- type EvalMatch
- type ImportDashboardCommand
- type IndexViewData
- type InviteInfo
- type LoginCommand
- type MetricRequest
- type NavLink
- type NewApiKeyResult
- type NotificationTestCommand
- type PauseAlertCommand
- type PauseAllAlertsCommand
- type PlaylistDashboard
- type PlaylistDashboardsSlice
- type PluginCss
- type PluginList
- type PluginListItem
- type PluginSetting
- type PostAnnotationsCmd
- type PostGraphiteAnnotationsCmd
- type Prefs
- type ResetUserPasswordForm
- type RestoreDashboardVersionCommand
- type SendResetPasswordEmailForm
- type SignUpForm
- type SignUpStep2Form
- type StreamMessage
- type StreamMessageSeries
- type UpdateAnnotationsCmd
- type UpdateOrgAddressForm
- type UpdateOrgForm
- type UpdatePrefsCmd
- type UserStars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGravatarUrl ¶
Types ¶
type AddInviteForm ¶
type AdminCreateUserForm ¶
type AdminUpdateUserForm ¶
type AdminUpdateUserPasswordForm ¶
type AdminUpdateUserPasswordForm struct {
Password string `json:"password" binding:"Required"`
}
type AdminUpdateUserPermissionsForm ¶
type AdminUpdateUserPermissionsForm struct {
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
}
type AdminUserListItem ¶
type AlertNotification ¶
type AlertRule ¶
type AlertRule struct { Id int64 `json:"id"` DashboardId int64 `json:"dashboardId"` PanelId int64 `json:"panelId"` Name string `json:"name"` Message string `json:"message"` State m.AlertStateType `json:"state"` NewStateDate time.Time `json:"newStateDate"` EvalDate time.Time `json:"evalDate"` EvalData *simplejson.Json `json:"evalData"` ExecutionError string `json:"executionError"` DashbboardUri string `json:"dashboardUri"` }
type AlertTestCommand ¶
type AlertTestCommand struct { Dashboard *simplejson.Json `json:"dashboard" binding:"Required"` PanelId int64 `json:"panelId" binding:"Required"` }
type AlertTestResult ¶
type AlertTestResult struct { Firing bool `json:"firing"` State m.AlertStateType `json:"state"` ConditionEvals string `json:"conditionEvals"` TimeMs string `json:"timeMs"` Error string `json:"error,omitempty"` EvalMatches []*EvalMatch `json:"matches,omitempty"` Logs []*AlertTestResultLog `json:"logs,omitempty"` }
type AlertTestResultLog ¶
type AlertTestResultLog struct { Message string `json:"message"` Data interface{} `json:"data"` }
type CalculateDiffOptions ¶
type CalculateDiffOptions struct { Base CalculateDiffTarget `json:"base" binding:"Required"` New CalculateDiffTarget `json:"new" binding:"Required"` DiffType string `json:"diffType" binding:"Required"` }
type CalculateDiffTarget ¶
type CalculateDiffTarget struct { DashboardId int64 `json:"dashboardId"` Version int `json:"version"` UnsavedDashboard *simplejson.Json `json:"unsavedDashboard"` }
type CompleteInviteForm ¶
type CurrentUser ¶
type CurrentUser struct { IsSignedIn bool `json:"isSignedIn"` Id int64 `json:"id"` Login string `json:"login"` Email string `json:"email"` Name string `json:"name"` LightTheme bool `json:"lightTheme"` OrgId int64 `json:"orgId"` OrgName string `json:"orgName"` OrgRole m.RoleType `json:"orgRole"` IsGrafanaAdmin bool `json:"isGrafanaAdmin"` GravatarUrl string `json:"gravatarUrl"` Timezone string `json:"timezone"` Locale string `json:"locale"` HelpFlags1 m.HelpFlags1 `json:"helpFlags1"` }
type DashboardFullWithMeta ¶
type DashboardFullWithMeta struct { Meta DashboardMeta `json:"meta"` Dashboard *simplejson.Json `json:"dashboard"` }
type DashboardMeta ¶
type DashboardMeta struct { IsStarred bool `json:"isStarred,omitempty"` IsHome bool `json:"isHome,omitempty"` IsSnapshot bool `json:"isSnapshot,omitempty"` Type string `json:"type,omitempty"` CanSave bool `json:"canSave"` CanEdit bool `json:"canEdit"` CanStar bool `json:"canStar"` Slug string `json:"slug"` Expires time.Time `json:"expires"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` UpdatedBy string `json:"updatedBy"` CreatedBy string `json:"createdBy"` Version int `json:"version"` }
type DashboardRedirect ¶
type DashboardRedirect struct {
RedirectUri string `json:"redirectUri"`
}
type DataSource ¶
type DataSource struct { Id int64 `json:"id"` OrgId int64 `json:"orgId"` Name string `json:"name"` Type string `json:"type"` TypeLogoUrl string `json:"typeLogoUrl"` Access m.DsAccess `json:"access"` Url string `json:"url"` Password string `json:"password"` User string `json:"user"` Database string `json:"database"` BasicAuth bool `json:"basicAuth"` BasicAuthUser string `json:"basicAuthUser"` BasicAuthPassword string `json:"basicAuthPassword"` WithCredentials bool `json:"withCredentials"` IsDefault bool `json:"isDefault"` JsonData *simplejson.Json `json:"jsonData,omitempty"` SecureJsonFields map[string]bool `json:"secureJsonFields"` }
type DataSourceList ¶
type DataSourceList []DataSourceListItemDTO
func (DataSourceList) Len ¶
func (slice DataSourceList) Len() int
func (DataSourceList) Less ¶
func (slice DataSourceList) Less(i, j int) bool
func (DataSourceList) Swap ¶
func (slice DataSourceList) Swap(i, j int)
type DataSourceListItemDTO ¶
type DataSourceListItemDTO struct { Id int64 `json:"id"` OrgId int64 `json:"orgId"` Name string `json:"name"` Type string `json:"type"` TypeLogoUrl string `json:"typeLogoUrl"` Access m.DsAccess `json:"access"` Url string `json:"url"` Password string `json:"password"` User string `json:"user"` Database string `json:"database"` BasicAuth bool `json:"basicAuth"` IsDefault bool `json:"isDefault"` JsonData *simplejson.Json `json:"jsonData,omitempty"` }
type DeleteAnnotationsCmd ¶
type ImportDashboardCommand ¶
type ImportDashboardCommand struct { PluginId string `json:"pluginId"` Path string `json:"path"` Overwrite bool `json:"overwrite"` Dashboard *simplejson.Json `json:"dashboard"` Inputs []plugins.ImportDashboardInput `json:"inputs"` }
type IndexViewData ¶
type InviteInfo ¶
type LoginCommand ¶
type MetricRequest ¶
type MetricRequest struct { From string `json:"from"` To string `json:"to"` Queries []*simplejson.Json `json:"queries"` }
type NewApiKeyResult ¶
type NotificationTestCommand ¶
type NotificationTestCommand struct { Name string `json:"name"` Type string `json:"type"` Settings *simplejson.Json `json:"settings"` }
type PauseAlertCommand ¶
type PauseAllAlertsCommand ¶
type PauseAllAlertsCommand struct {
Paused bool `json:"paused"`
}
type PlaylistDashboard ¶
type PlaylistDashboardsSlice ¶
type PlaylistDashboardsSlice []PlaylistDashboard
func (PlaylistDashboardsSlice) Len ¶
func (slice PlaylistDashboardsSlice) Len() int
func (PlaylistDashboardsSlice) Less ¶
func (slice PlaylistDashboardsSlice) Less(i, j int) bool
func (PlaylistDashboardsSlice) Swap ¶
func (slice PlaylistDashboardsSlice) Swap(i, j int)
type PluginList ¶
type PluginList []PluginListItem
func (PluginList) Len ¶
func (slice PluginList) Len() int
func (PluginList) Less ¶
func (slice PluginList) Less(i, j int) bool
func (PluginList) Swap ¶
func (slice PluginList) Swap(i, j int)
type PluginListItem ¶
type PluginListItem struct { Name string `json:"name"` Type string `json:"type"` Id string `json:"id"` Enabled bool `json:"enabled"` Pinned bool `json:"pinned"` Info *plugins.PluginInfo `json:"info"` LatestVersion string `json:"latestVersion"` HasUpdate bool `json:"hasUpdate"` State string `json:"state"` }
type PluginSetting ¶
type PluginSetting struct { Name string `json:"name"` Type string `json:"type"` Id string `json:"id"` Enabled bool `json:"enabled"` Pinned bool `json:"pinned"` Module string `json:"module"` BaseUrl string `json:"baseUrl"` Info *plugins.PluginInfo `json:"info"` Includes []*plugins.PluginInclude `json:"includes"` Dependencies *plugins.PluginDependencies `json:"dependencies"` JsonData map[string]interface{} `json:"jsonData"` LatestVersion string `json:"latestVersion"` HasUpdate bool `json:"hasUpdate"` State string `json:"state"` }
type PostAnnotationsCmd ¶
type ResetUserPasswordForm ¶
type RestoreDashboardVersionCommand ¶
type RestoreDashboardVersionCommand struct {
Version int `json:"version" binding:"Required"`
}
type SendResetPasswordEmailForm ¶
type SendResetPasswordEmailForm struct {
UserOrEmail string `json:"userOrEmail" binding:"Required"`
}
type SignUpForm ¶
type SignUpForm struct {
Email string `json:"email" binding:"Required"`
}
type SignUpStep2Form ¶
type StreamMessage ¶
type StreamMessage struct { Stream string `json:"stream"` Series []StreamMessageSeries `json:"series"` }
type StreamMessageSeries ¶
type UpdateAnnotationsCmd ¶
type UpdateOrgAddressForm ¶
type UpdateOrgForm ¶
type UpdateOrgForm struct {
Name string `json:"name" binding:"Required"`
}
type UpdatePrefsCmd ¶
Click to show internal directories.
Click to hide internal directories.