Skip to content

AnnotationQueryBuilder🔗

Constructor🔗

new AnnotationQueryBuilder()

Methods🔗

build🔗

Builds the object.

public AnnotationQuery build()

builtIn🔗

Set to 1 for the standard annotation query all dashboards have by default.

public AnnotationQueryBuilder builtIn(Double builtIn)

datasource🔗

Datasource where the annotations data is

public AnnotationQueryBuilder datasource(DataSourceRef datasource)

enable🔗

When enabled the annotation query is issued with every dashboard refresh

public AnnotationQueryBuilder enable(Boolean enable)

expr🔗

public AnnotationQueryBuilder expr(String expr)

filter🔗

Filters to apply when fetching annotations

public AnnotationQueryBuilder filter(com.grafana.foundation.cog.Builder<AnnotationPanelFilter> filter)

hide🔗

Annotation queries can be toggled on or off at the top of the dashboard.

When hide is true, the toggle is not shown in the dashboard.

public AnnotationQueryBuilder hide(Boolean hide)

iconColor🔗

Color to use for the annotation event markers

public AnnotationQueryBuilder iconColor(String iconColor)

name🔗

Name of annotation.

public AnnotationQueryBuilder name(String name)

target🔗

TODO.. this should just be a normal query target

public AnnotationQueryBuilder target(com.grafana.foundation.cog.Builder<AnnotationTarget> target)

type🔗

TODO -- this should not exist here, it is based on the --grafana-- datasource

public AnnotationQueryBuilder type(String type)

See also🔗