Skip to content

Preferences🔗

Definition🔗

class Preferences:
    # Explicit home URL (NOTE: this can only be modified in the system settings)
    home_url: typing.Optional[str]
    # UID for the home dashboard
    home_dashboard_uid: typing.Optional[str]
    # The timezone selection
    timezone: typing.Optional[str]
    # day of the week (sunday, monday, etc)
    week_start: typing.Optional[str]
    # user interface theme
    theme: typing.Optional[str]
    # Selected language
    language: typing.Optional[str]
    # Explore query history preferences
    query_history: typing.Optional[preferencesv1alpha1.QueryHistoryPreference]
    # Navigation preferences
    navbar: typing.Optional[preferencesv1alpha1.NavbarPreference]

Methods🔗

to_json🔗

Converts this object into a representation that can easily be encoded to JSON.

def to_json() -> dict[str, object]

from_json🔗

Builds this object from a JSON-decoded dict.

@classmethod
def from_json(data: dict[str, typing.Any]) -> typing.Self

See also🔗