AnnotationQuery🔗
Constructor🔗
Methods🔗
build🔗
Builds the object.
built_in🔗
Set to 1 for the standard annotation query all dashboards have by default.
datasource🔗
Datasource where the annotations data is
enable🔗
When enabled the annotation query is issued with every dashboard refresh
expr🔗
filter_val🔗
Filters to apply when fetching annotations
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.
icon_color🔗
Color to use for the annotation event markers
mappings🔗
Mappings define how to convert data frame fields to annotation event fields.
def mappings(mappings: dict[str, cogbuilder.Builder[dashboard.AnnotationEventFieldMapping]]) -> typing.Self
name🔗
Name of annotation.
placement🔗
Placement can be used to display the annotation query somewhere else on the dashboard other than the default location.
step🔗
Legacy Prometheus annotation query step interval.
tag_keys🔗
Comma-separated label keys used as annotation tags.
target🔗
TODO.. this should just be a normal query target
text_format🔗
Format for Prometheus annotation text. Label values can be interpolated with templates like {{instance}}.
title_format🔗
Format for Prometheus and Loki annotation titles. Label values can be interpolated with templates like {{instance}}.
type_val🔗
TODO -- this should not exist here, it is based on the --grafana-- datasource
use_value_for_time🔗
Use the Prometheus series value as the annotation timestamp.