forked from grafana/grafana-api-golang-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preferences.go
31 lines (27 loc) · 1.13 KB
/
preferences.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package gapi
// NavLink represents a Grafana nav link.
type NavLink struct {
ID string `json:"id,omitempty"`
Text string `json:"text,omitempty"`
URL string `json:"url,omitempty"`
Target string `json:"target,omitempty"`
}
// NavbarPreference represents a Grafana navbar preference.
type NavbarPreference struct {
SavedItems []NavLink `json:"savedItems"`
}
// QueryHistoryPreference represents a Grafana query history preference.
type QueryHistoryPreference struct {
HomeTab string `json:"homeTab"`
}
// Preferences represents Grafana preferences.
type Preferences struct {
Theme string `json:"theme,omitempty"`
HomeDashboardID int64 `json:"homeDashboardId,omitempty"`
HomeDashboardUID string `json:"homeDashboardUID,omitempty"`
Timezone string `json:"timezone,omitempty"`
WeekStart string `json:"weekStart,omitempty"`
Locale string `json:"locale,omitempty"`
Navbar NavbarPreference `json:"navbar,omitempty"`
QueryHistory QueryHistoryPreference `json:"queryHistory,omitempty"`
}