Skip to content

TimeSeriesListBuilder🔗

Constructor🔗

func NewTimeSeriesListBuilder() *TimeSeriesListBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *TimeSeriesListBuilder) Build() (TimeSeriesList, error)

AlignmentPeriod🔗

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

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

CrossSeriesReducer🔗

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

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

Filters🔗

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

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

GroupBys🔗

Array of labels to group data by.

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

PerSeriesAligner🔗

Alignment function to be used. Defaults to ALIGN_MEAN.

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

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 *TimeSeriesListBuilder) Preprocessor(preprocessor googlecloudmonitoring.PreprocessorType) *TimeSeriesListBuilder

ProjectName🔗

GCP project to execute the query against.

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

SecondaryAlignmentPeriod🔗

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

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

SecondaryCrossSeriesReducer🔗

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

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

SecondaryGroupBys🔗

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

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

SecondaryPerSeriesAligner🔗

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

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

Text🔗

Annotation text.

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

Title🔗

Annotation title.

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

View🔗

Data view, defaults to FULL.

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

See also🔗