Skip to content

AnnotationQueryBuilder🔗

Constructor🔗

new AnnotationQueryBuilder()

Methods🔗

build🔗

Builds the object.

build()

alignmentPeriod🔗

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

alignmentPeriod(alignmentPeriod: string)

crossSeriesReducer🔗

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

crossSeriesReducer(crossSeriesReducer: string)

filters🔗

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

filters(filters: string[])

groupBys🔗

Array of labels to group data by.

groupBys(groupBys: string[])

perSeriesAligner🔗

Alignment function to be used. Defaults to ALIGN_MEAN.

perSeriesAligner(perSeriesAligner: string)

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

preprocessor(preprocessor: googlecloudmonitoring.PreprocessorType)

projectName🔗

GCP project to execute the query against.

projectName(projectName: string)

secondaryAlignmentPeriod🔗

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

secondaryAlignmentPeriod(secondaryAlignmentPeriod: string)

secondaryCrossSeriesReducer🔗

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

secondaryCrossSeriesReducer(secondaryCrossSeriesReducer: string)

secondaryGroupBys🔗

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

secondaryGroupBys(secondaryGroupBys: string[])

secondaryPerSeriesAligner🔗

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

secondaryPerSeriesAligner(secondaryPerSeriesAligner: string)

text🔗

Annotation text.

text(text: string)

title🔗

Annotation title.

title(title: string)

view🔗

Data view, defaults to FULL.

view(view: string)

See also🔗