2023-01-25 13:00:32 -06:00
|
|
|
package kind
|
|
|
|
|
2023-01-31 16:54:22 -06:00
|
|
|
name: "Preferences"
|
2023-05-26 15:08:43 -05:00
|
|
|
pluralName: "Preferences"
|
2023-01-31 16:54:22 -06:00
|
|
|
maturity: "merged"
|
|
|
|
description: "The user or team frontend preferences"
|
2023-01-25 13:00:32 -06:00
|
|
|
|
2023-05-24 03:47:25 -05:00
|
|
|
lineage: schemas: [{
|
|
|
|
version: [0, 0]
|
|
|
|
schema: {
|
2023-12-04 08:51:09 -06:00
|
|
|
// Spec defines user, team or org Grafana preferences
|
|
|
|
// swagger:model Preferences
|
2023-05-24 03:47:25 -05:00
|
|
|
spec: {
|
|
|
|
// UID for the home dashboard
|
|
|
|
homeDashboardUID?: string
|
|
|
|
|
|
|
|
// The timezone selection
|
|
|
|
// TODO: this should use the timezone defined in common
|
|
|
|
timezone?: string
|
|
|
|
|
|
|
|
// day of the week (sunday, monday, etc)
|
|
|
|
weekStart?: string
|
|
|
|
|
|
|
|
// light, dark, empty is default
|
|
|
|
theme?: string
|
|
|
|
|
|
|
|
// Selected language (beta)
|
|
|
|
language?: string
|
|
|
|
|
|
|
|
// Explore query history preferences
|
|
|
|
queryHistory?: #QueryHistoryPreference
|
2023-07-21 11:17:11 -05:00
|
|
|
|
|
|
|
// Cookie preferences
|
|
|
|
cookiePreferences?: #CookiePreferences
|
2024-07-03 04:40:51 -05:00
|
|
|
|
|
|
|
// Navigation preferences
|
|
|
|
navbar?: #NavbarPreference
|
2023-05-24 03:47:25 -05:00
|
|
|
} @cuetsy(kind="interface")
|
|
|
|
|
|
|
|
#QueryHistoryPreference: {
|
|
|
|
// one of: '' | 'query' | 'starred';
|
|
|
|
homeTab?: string
|
|
|
|
} @cuetsy(kind="interface")
|
2023-07-21 11:17:11 -05:00
|
|
|
|
|
|
|
#CookiePreferences: {
|
|
|
|
analytics?: {}
|
|
|
|
performance?: {}
|
|
|
|
functional?: {}
|
|
|
|
} @cuetsy(kind="interface")
|
2024-07-03 04:40:51 -05:00
|
|
|
|
|
|
|
#NavbarPreference: {
|
2024-07-31 07:56:39 -05:00
|
|
|
bookmarkUrls: [...string]
|
2024-07-03 04:40:51 -05:00
|
|
|
} @cuetsy(kind="interface")
|
2023-05-24 03:47:25 -05:00
|
|
|
}
|
|
|
|
}]
|