AdhocVariable
Constructor
Methods
build
Builds the object.
def build() -> dashboardv2.AdhocVariableKind
allow_custom_value
def allow_custom_value(allow_custom_value: bool) -> typing.Self
base_filters
def base_filters(base_filters: list[cogbuilder.Builder[dashboardv2.AdHocFilterWithLabels]]) -> typing.Self
datasource
def datasource(datasource: cogbuilder.Builder[dashboardv2.Dashboardv2AdhocVariableKindDatasource]) -> typing.Self
default_keys
def default_keys(default_keys: list[cogbuilder.Builder[dashboardv2.MetricFindValue]]) -> typing.Self
description
def description(description: str) -> typing.Self
enable_group_by
Whether the group-by operator is enabled in the ad hoc filter combobox.
def enable_group_by(enable_group_by: bool) -> typing.Self
filters
def filters(filters: list[cogbuilder.Builder[dashboardv2.AdHocFilterWithLabels]]) -> typing.Self
group
def group(group: str) -> typing.Self
hide
def hide(hide: dashboardv2.VariableHide) -> typing.Self
label
def label(label: str) -> typing.Self
labels
def labels(labels: dict[str, str]) -> typing.Self
name
def name(name: str) -> typing.Self
origin
def origin(origin: cogbuilder.Builder[dashboardv2.ControlSourceRef]) -> typing.Self
skip_url_sync
def skip_url_sync(skip_url_sync: bool) -> typing.Self
See also