QueryV2
Constructor
Methods
build
Builds the object.
def build() -> dashboardv2.DataQueryKind
classic_conditions
def classic_conditions(type_classic_conditions: cogbuilder.Builder[expr.TypeClassicConditions]) -> typing.Self
datasource
New type for datasource reference
Not creating a new type until we figure out how to handle DS refs for group by, adhoc, and every place that uses DataSourceRef in TS.
def datasource(ref: cogbuilder.Builder[dashboardv2.Dashboardv2DataQueryKindDatasource]) -> typing.Self
labels
def labels(labels: dict[str, str]) -> typing.Self
math
def math(type_math: cogbuilder.Builder[expr.TypeMath]) -> typing.Self
reduce
def reduce(type_reduce: cogbuilder.Builder[expr.TypeReduce]) -> typing.Self
resample
def resample(type_resample: cogbuilder.Builder[expr.TypeResample]) -> typing.Self
sql
def sql(type_sql: cogbuilder.Builder[expr.TypeSql]) -> typing.Self
threshold
def threshold(type_threshold: cogbuilder.Builder[expr.TypeThreshold]) -> typing.Self
version
def version(version: str) -> typing.Self
See also