Skip to content

AnnotationQueryBuilder🔗

Constructor🔗

func NewAnnotationQueryBuilder() *AnnotationQueryBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *AnnotationQueryBuilder) Build() (AnnotationQueryKind, error)

BuiltIn🔗

func (builder *AnnotationQueryBuilder) BuiltIn(builtIn bool) *AnnotationQueryBuilder

Enable🔗

func (builder *AnnotationQueryBuilder) Enable(enable bool) *AnnotationQueryBuilder

Filter🔗

func (builder *AnnotationQueryBuilder) Filter(filter cog.Builder[dashboardv2beta1.AnnotationPanelFilter]) *AnnotationQueryBuilder

Hide🔗

func (builder *AnnotationQueryBuilder) Hide(hide bool) *AnnotationQueryBuilder

IconColor🔗

func (builder *AnnotationQueryBuilder) IconColor(iconColor string) *AnnotationQueryBuilder

LegacyOptions🔗

Catch-all field for datasource-specific properties. Should not be available in as code tooling.

func (builder *AnnotationQueryBuilder) LegacyOptions(legacyOptions map[string]any) *AnnotationQueryBuilder

Mappings🔗

Mappings define how to convert data frame fields to annotation event fields.

func (builder *AnnotationQueryBuilder) Mappings(mappings map[string]cog.Builder[dashboardv2beta1.AnnotationEventFieldMapping]) *AnnotationQueryBuilder

Name🔗

func (builder *AnnotationQueryBuilder) Name(name string) *AnnotationQueryBuilder

Placement🔗

Placement can be used to display the annotation query somewhere else on the dashboard other than the default location.

func (builder *AnnotationQueryBuilder) Placement(placement string) *AnnotationQueryBuilder

Query🔗

func (builder *AnnotationQueryBuilder) Query(query cog.Builder[dashboardv2beta1.DataQueryKind]) *AnnotationQueryBuilder

Spec🔗

func (builder *AnnotationQueryBuilder) Spec(spec cog.Builder[dashboardv2beta1.AnnotationQuerySpec]) *AnnotationQueryBuilder

See also🔗