Skip to content

AnnotationQueryBuilder🔗

Constructor🔗

func NewAnnotationQueryBuilder() *AnnotationQueryBuilder

Methods🔗

Build🔗

Builds the object.

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

AlignmentPeriod🔗

Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.

func (builder *AnnotationQueryBuilder) AlignmentPeriod(alignmentPeriod string) *AnnotationQueryBuilder

CrossSeriesReducer🔗

Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.

func (builder *AnnotationQueryBuilder) CrossSeriesReducer(crossSeriesReducer string) *AnnotationQueryBuilder

Filters🔗

Array of filters to query data by. Labels that can be filtered on are defined by the metric.

func (builder *AnnotationQueryBuilder) Filters(filters []string) *AnnotationQueryBuilder

GroupBys🔗

Array of labels to group data by.

func (builder *AnnotationQueryBuilder) GroupBys(groupBys []string) *AnnotationQueryBuilder

PerSeriesAligner🔗

Alignment function to be used. Defaults to ALIGN_MEAN.

func (builder *AnnotationQueryBuilder) PerSeriesAligner(perSeriesAligner string) *AnnotationQueryBuilder

Preprocessor🔗

Preprocessor is not part of the API, but is used to store the preprocessor and not affect the UI for the rest of parameters

func (builder *AnnotationQueryBuilder) Preprocessor(preprocessor googlecloudmonitoring.PreprocessorType) *AnnotationQueryBuilder

ProjectName🔗

GCP project to execute the query against.

func (builder *AnnotationQueryBuilder) ProjectName(projectName string) *AnnotationQueryBuilder

SecondaryAlignmentPeriod🔗

Only present if a preprocessor is selected. Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.

func (builder *AnnotationQueryBuilder) SecondaryAlignmentPeriod(secondaryAlignmentPeriod string) *AnnotationQueryBuilder

SecondaryCrossSeriesReducer🔗

Only present if a preprocessor is selected. Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.

func (builder *AnnotationQueryBuilder) SecondaryCrossSeriesReducer(secondaryCrossSeriesReducer string) *AnnotationQueryBuilder

SecondaryGroupBys🔗

Only present if a preprocessor is selected. Array of labels to group data by.

func (builder *AnnotationQueryBuilder) SecondaryGroupBys(secondaryGroupBys []string) *AnnotationQueryBuilder

SecondaryPerSeriesAligner🔗

Only present if a preprocessor is selected. Alignment function to be used. Defaults to ALIGN_MEAN.

func (builder *AnnotationQueryBuilder) SecondaryPerSeriesAligner(secondaryPerSeriesAligner string) *AnnotationQueryBuilder

Text🔗

Annotation text.

func (builder *AnnotationQueryBuilder) Text(text string) *AnnotationQueryBuilder

Title🔗

Annotation title.

func (builder *AnnotationQueryBuilder) Title(title string) *AnnotationQueryBuilder

View🔗

Data view, defaults to FULL.

func (builder *AnnotationQueryBuilder) View(view string) *AnnotationQueryBuilder

See also🔗