Skip to content

MetricQueryBuilder🔗

Constructor🔗

new MetricQueryBuilder()

Methods🔗

build🔗

Builds the object.

build()

aliasBy🔗

Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.

aliasBy(aliasBy: string)

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)

editorMode🔗

editorMode(editorMode: string)

filters🔗

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

filters(filters: string[])

graphPeriod🔗

To disable the graphPeriod, it should explictly be set to 'disabled'.

graphPeriod(graphPeriod: string)

groupBys🔗

Array of labels to group data by.

groupBys(groupBys: string[])

metricKind🔗

metricKind(metricKind: googlecloudmonitoring.MetricKind)

metricType🔗

metricType(metricType: 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)

query🔗

MQL query to be executed.

query(query: string)

valueType🔗

valueType(valueType: string)

view🔗

view(view: string)

See also🔗