MetricQueryBuilder🔗
Constructor🔗
Methods🔗
Build🔗
Builds the object.
AliasBy🔗
Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.
AlignmentPeriod🔗
Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.
CrossSeriesReducer🔗
Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.
func (builder *MetricQueryBuilder) CrossSeriesReducer(crossSeriesReducer string) *MetricQueryBuilder
EditorMode🔗
Filters🔗
Array of filters to query data by. Labels that can be filtered on are defined by the metric.
GraphPeriod🔗
To disable the graphPeriod, it should explictly be set to 'disabled'.
GroupBys🔗
Array of labels to group data by.
MetricKind🔗
func (builder *MetricQueryBuilder) MetricKind(metricKind googlecloudmonitoring.MetricKind) *MetricQueryBuilder
MetricType🔗
PerSeriesAligner🔗
Alignment function to be used. Defaults to ALIGN_MEAN.
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 *MetricQueryBuilder) Preprocessor(preprocessor googlecloudmonitoring.PreprocessorType) *MetricQueryBuilder
ProjectName🔗
GCP project to execute the query against.
Query🔗
MQL query to be executed.