Preferences🔗
Spec defines user, team or org Grafana preferences
swagger:model Preferences
Definition🔗
class Preferences implements \JsonSerializable
{
/**
* UID for the home dashboard
*/
public ?string $homeDashboardUID;
/**
* The timezone selection
* TODO: this should use the timezone defined in common
*/
public ?string $timezone;
/**
* day of the week (sunday, monday, etc)
*/
public ?string $weekStart;
/**
* light, dark, empty is default
*/
public ?string $theme;
/**
* Selected language (beta)
*/
public ?string $language;
/**
* Explore query history preferences
*/
public ?\Grafana\Foundation\Preferences\QueryHistoryPreference $queryHistory;
/**
* Cookie preferences
*/
public ?\Grafana\Foundation\Preferences\CookiePreferences $cookiePreferences;
/**
* Navigation preferences
*/
public ?\Grafana\Foundation\Preferences\NavbarPreference $navbar;
}
Methods🔗
fromArray🔗
Builds this object from an array.
This function is meant to be used with the return value of json_decode($json, true)
.
jsonSerialize🔗
Returns the data representing this object, preparing it for JSON serialization with json_encode()
.