Skip to content

QueryBuilder🔗

Constructor🔗

new QueryBuilder(refId: string)

Methods🔗

build🔗

Builds the object.

build()

datasourceUid🔗

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

datasourceUid(datasourceUid: string)

model🔗

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

model(model: cog.Builder<cog.Dataquery>)

queryType🔗

QueryType is an optional identifier for the type of query.

It can be used to distinguish different types of queries.

queryType(queryType: string)

refId🔗

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

refId(refId: string)

relativeTimeRange🔗

RelativeTimeRange is the per query start and end time

for requests.

relativeTimeRange(relativeTimeRange: alerting.RelativeTimeRange)

See also🔗