Skip to content

QueryV2Builder🔗

Constructor🔗

new QueryV2Builder()

Methods🔗

build🔗

Builds the object.

public QueryV2 build()

classicConditions🔗

public QueryV2Builder 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 QueryV2Builder datasource(com.grafana.foundation.cog.Builder<Dashboardv2DataQueryKindDatasource> datasource)

labels🔗

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

math🔗

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

reduce🔗

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

resample🔗

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

sql🔗

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

threshold🔗

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

version🔗

public QueryV2Builder version(String version)

See also🔗