Skip to content

QueryV2Builder🔗

Constructor🔗

new QueryV2Builder()

Methods🔗

build🔗

Builds the object.

build()

classicConditions🔗

classicConditions(typeClassicConditions: cog.Builder<expr.TypeClassicConditions>)

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.

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

labels🔗

labels(labels: Record<string, string>)

math🔗

math(typeMath: cog.Builder<expr.TypeMath>)

reduce🔗

reduce(typeReduce: cog.Builder<expr.TypeReduce>)

resample🔗

resample(typeResample: cog.Builder<expr.TypeResample>)

sql🔗

sql(typeSql: cog.Builder<expr.TypeSql>)

threshold🔗

threshold(typeThreshold: cog.Builder<expr.TypeThreshold>)

version🔗

version(version: string)

See also🔗