Skip to content

QueryBuilder🔗

Constructor🔗

new QueryBuilder()

Methods🔗

build🔗

Builds the object.

public Query build()

classicConditions🔗

public QueryBuilder classicConditions(com.grafana.foundation.cog.Builder<TypeClassicConditions> 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.

public QueryBuilder datasource(com.grafana.foundation.cog.Builder<Dashboardv2beta1DataQueryKindDatasource> datasource)

labels🔗

public QueryBuilder labels(Map<String, String> labels)

math🔗

public QueryBuilder math(com.grafana.foundation.cog.Builder<TypeMath> typeMath)

reduce🔗

public QueryBuilder reduce(com.grafana.foundation.cog.Builder<TypeReduce> typeReduce)

resample🔗

public QueryBuilder resample(com.grafana.foundation.cog.Builder<TypeResample> typeResample)

sql🔗

public QueryBuilder sql(com.grafana.foundation.cog.Builder<TypeSql> typeSql)

threshold🔗

public QueryBuilder threshold(com.grafana.foundation.cog.Builder<TypeThreshold> typeThreshold)

version🔗

public QueryBuilder version(String version)

See also🔗