AnnotationQueryBuilder🔗
Constructor🔗
Methods🔗
Build🔗
Builds the object.
BuiltIn🔗
Set to 1 for the standard annotation query all dashboards have by default.
Datasource🔗
Datasource where the annotations data is
func (builder *AnnotationQueryBuilder) Datasource(datasource common.DataSourceRef) *AnnotationQueryBuilder
Enable🔗
When enabled the annotation query is issued with every dashboard refresh
Expr🔗
Filter🔗
Filters to apply when fetching annotations
func (builder *AnnotationQueryBuilder) Filter(filter cog.Builder[dashboard.AnnotationPanelFilter]) *AnnotationQueryBuilder
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.
IconColor🔗
Color to use for the annotation event markers
Mappings🔗
Mappings define how to convert data frame fields to annotation event fields.
func (builder *AnnotationQueryBuilder) Mappings(mappings map[string]cog.Builder[dashboard.AnnotationEventFieldMapping]) *AnnotationQueryBuilder
Name🔗
Name of annotation.
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 dashboard.AnnotationQueryPlacement) *AnnotationQueryBuilder
Step🔗
Legacy Prometheus annotation query step interval.
TagKeys🔗
Comma-separated label keys used as annotation tags.
Target🔗
TODO.. this should just be a normal query target
func (builder *AnnotationQueryBuilder) Target(target cog.Builder[cog/variants.Dataquery]) *AnnotationQueryBuilder
TextFormat🔗
Format for Prometheus annotation text. Label values can be interpolated with templates like {{instance}}.
TitleFormat🔗
Format for Prometheus and Loki annotation titles. Label values can be interpolated with templates like {{instance}}.
Type🔗
TODO -- this should not exist here, it is based on the --grafana-- datasource
UseValueForTime🔗
Use the Prometheus series value as the annotation timestamp.
func (builder *AnnotationQueryBuilder) UseValueForTime(useValueForTime bool) *AnnotationQueryBuilder