QueryBasedDashboardParameter is a datatype for a dashboard parameter where suggestions are sourced from query results from LogScale. It implements the interface datatype, DashboardParameter.

Table: QueryBasedDashboardParameter

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
defaultValueV2string  Long-Term The value assigned to the parameter on dashboard load, if no other value is specified.
idstringyes Long-Term The unique identifier of the parameter.
invalidInputMessagestring  Long-Term Message when parameter input is blocked.
invalidInputPatterns[string]yes Long-Term Regex patterns used to block parameter input.
labelstringyes Long-Term The label or name displayed next to the input for the variable to make it more human-readable.
optionLabelFieldstringyes Long-Term The field in the result set used as the label (i.e., the text in the dropdown) of the suggestions.
optionValueFieldstringyes Long-Term The field in the result set used as the value of the suggestions.
orderinteger  Long-Term A number that determines the order in which parameters are displayed on a dashboard. If null, the parameter is ordered alphanumerical after other parameters
queryStringstringyes Long-Term The LogScale query executed to find suggestions for the parameter value.
timeWindowstringyes Long-Term The time window relative to now in which LogScale will search for suggestions (e.g., 24h or 30d).
useDashboardTimeIfSetbooleanyes Long-Term If true, the parameters search time window will change to match the dashboard's global time when active.
widthinteger  Long-Term The width of the parameter.