Skip to content

VariableRefresh🔗

Options to config when to refresh a variable

never: Never refresh the variable

onDashboardLoad: Queries the data source every time the dashboard loads.

onTimeRangeChanged: Queries the data source when the dashboard time range changes.

Definition🔗

class VariableRefresh(enum.StrEnum):
    """
    Options to config when to refresh a variable
    `never`: Never refresh the variable
    `onDashboardLoad`: Queries the data source every time the dashboard loads.
    `onTimeRangeChanged`: Queries the data source when the dashboard time range changes.
    """

    NEVER = "never"
    ON_DASHBOARD_LOAD = "onDashboardLoad"
    ON_TIME_RANGE_CHANGED = "onTimeRangeChanged"