Skip to content

QueryBuilder🔗

Constructor🔗

new QueryBuilder(String refId)

Methods🔗

build🔗

Builds the object.

public Query build()

datasourceUid🔗

Grafana data source unique identifier; it should be 'expr' for a Server Side Expression operation.

public QueryBuilder datasourceUid(String datasourceUid)

model🔗

JSON is the raw JSON query and includes the above properties as well as custom properties.

public QueryBuilder model(com.grafana.foundation.cog.Builder<Dataquery> model)

queryType🔗

QueryType is an optional identifier for the type of query.

It can be used to distinguish different types of queries.

public QueryBuilder queryType(String queryType)

refId🔗

RefID is the unique identifier of the query, set by the frontend call.

public QueryBuilder refId(String refId)

relativeTimeRange🔗

RelativeTimeRange is the per query start and end time

for requests.

public QueryBuilder relativeTimeRange(RelativeTimeRange relativeTimeRange)

See also🔗