Skip to content

CloudMonitoringQueryBuilder🔗

Constructor🔗

new CloudMonitoringQueryBuilder()

Methods🔗

build🔗

Builds the object.

public CloudMonitoringQuery build()

aliasBy🔗

Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.

public CloudMonitoringQueryBuilder aliasBy(String aliasBy)

datasource🔗

For mixed data sources the selected datasource is on the query level.

For non mixed scenarios this is undefined.

TODO find a better way to do this ^ that's friendly to schema

TODO this shouldn't be unknown but DataSourceRef | null

public CloudMonitoringQueryBuilder datasource(DataSourceRef datasource)

hide🔗

If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.

public CloudMonitoringQueryBuilder hide(Boolean hide)

intervalMs🔗

Time interval in milliseconds.

public CloudMonitoringQueryBuilder intervalMs(Double intervalMs)

promQLQuery🔗

PromQL sub-query properties.

public CloudMonitoringQueryBuilder promQLQuery(com.grafana.foundation.cog.Builder<PromQLQuery> promQLQuery)

queryType🔗

Specify the query flavor

TODO make this required and give it a default

public CloudMonitoringQueryBuilder queryType(String queryType)

refId🔗

A unique identifier for the query within the list of targets.

In server side expressions, the refId is used as a variable name to identify results.

By default, the UI will assign A->Z; however setting meaningful names may be useful.

public CloudMonitoringQueryBuilder refId(String refId)

sloQuery🔗

SLO sub-query properties.

public CloudMonitoringQueryBuilder sloQuery(com.grafana.foundation.cog.Builder<SLOQuery> sloQuery)

timeSeriesList🔗

GCM query type.

queryType: #QueryType

Time Series List sub-query properties.

public CloudMonitoringQueryBuilder timeSeriesList(com.grafana.foundation.cog.Builder<TimeSeriesList> timeSeriesList)

timeSeriesQuery🔗

Time Series sub-query properties.

public CloudMonitoringQueryBuilder timeSeriesQuery(com.grafana.foundation.cog.Builder<TimeSeriesQuery> timeSeriesQuery)

See also🔗