Skip to content

AdhocVariableBuilder🔗

Constructor🔗

new AdhocVariableBuilder(name: string)

Methods🔗

build🔗

Builds the object.

build()

allowCustomValue🔗

allowCustomValue(allowCustomValue: boolean)

baseFilters🔗

baseFilters(baseFilters: cog.Builder<dashboardv2beta1.AdHocFilterWithLabels>[])

datasource🔗

datasource(datasource: {
    name?: string;
})

defaultKeys🔗

defaultKeys(defaultKeys: cog.Builder<dashboardv2beta1.MetricFindValue>[])

description🔗

description(description: string)

enableGroupBy🔗

Whether the group-by operator is enabled in the ad hoc filter combobox.

enableGroupBy(enableGroupBy: boolean)

filters🔗

filters(filters: cog.Builder<dashboardv2beta1.AdHocFilterWithLabels>[])

group🔗

group(group: string)

hide🔗

hide(hide: dashboardv2beta1.VariableHide)

label🔗

label(label: string)

labels🔗

labels(labels: Record<string, string>)

name🔗

name(name: string)

origin🔗

origin(origin: cog.Builder<dashboardv2beta1.ControlSourceRef>)

skipUrlSync🔗

skipUrlSync(skipUrlSync: boolean)

See also🔗