/** * * * <pre> * Specifies the alignment of data points in individual time series as * well as how to combine the retrieved time series together (such as * when aggregating multiple streams on each resource to a single * stream for each resource or when aggregating streams across all * members of a group of resrouces). Multiple aggregations * are applied in the order specified. * This field is similar to the * one in the [`MetricService.ListTimeSeries` request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). * It is advisable to use the `ListTimeSeries` method when debugging this field. * </pre> * * <code>repeated .google.monitoring.v3.Aggregation aggregations = 5;</code> */ public Builder setAggregations( int index, com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationsBuilder_ == null) { ensureAggregationsIsMutable(); aggregations_.set(index, builderForValue.build()); onChanged(); } else { aggregationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Specifies the alignment of data points in individual time series as * well as how to combine the retrieved time series together (such as * when aggregating multiple streams on each resource to a single * stream for each resource or when aggregating streams across all * members of a group of resrouces). Multiple aggregations * are applied in the order specified. * This field is similar to the * one in the [`MetricService.ListTimeSeries` request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). * It is advisable to use the `ListTimeSeries` method when debugging this field. * </pre> * * <code>repeated .google.monitoring.v3.Aggregation aggregations = 5;</code> */ public Builder addAggregations( com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationsBuilder_ == null) { ensureAggregationsIsMutable(); aggregations_.add(builderForValue.build()); onChanged(); } else { aggregationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Specifies the alignment of data points in individual time series as * well as how to combine the retrieved time series together (such as * when aggregating multiple streams on each resource to a single * stream for each resource or when aggregating streams across all * members of a group of resrouces). Multiple aggregations * are applied in the order specified. * This field is similar to the one in the * [`MetricService.ListTimeSeries` request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). * It is advisable to use the `ListTimeSeries` method when debugging this field. * </pre> * * <code>repeated .google.monitoring.v3.Aggregation aggregations = 8;</code> */ public Builder addAggregations( int index, com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationsBuilder_ == null) { ensureAggregationsIsMutable(); aggregations_.add(index, builderForValue.build()); onChanged(); } else { aggregationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * By default, the raw time series data is returned. * Use this field to combine multiple time series for different * views of the data. * </pre> * * <code>optional .google.monitoring.v3.Aggregation aggregation = 5;</code> */ public Builder setAggregation( com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationBuilder_ == null) { aggregation_ = builderForValue.build(); onChanged(); } else { aggregationBuilder_.setMessage(builderForValue.build()); } return this; } /**
.setAlignmentPeriod(Duration.newBuilder().setSeconds(600).build()) .setPerSeriesAligner(Aggregation.Aligner.ALIGN_MEAN) .build();
.setPerSeriesAligner(Aggregation.Aligner.ALIGN_MEAN) .setCrossSeriesReducer(Aggregation.Reducer.REDUCE_MEAN) .build();
/** * * * <pre> * Specifies the alignment of data points in individual time series as * well as how to combine the retrieved time series together (such as * when aggregating multiple streams on each resource to a single * stream for each resource or when aggregating streams across all * members of a group of resrouces). Multiple aggregations * are applied in the order specified. * This field is similar to the * one in the [`MetricService.ListTimeSeries` request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). * It is advisable to use the `ListTimeSeries` method when debugging this field. * </pre> * * <code>repeated .google.monitoring.v3.Aggregation aggregations = 5;</code> */ public Builder addAggregations( int index, com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationsBuilder_ == null) { ensureAggregationsIsMutable(); aggregations_.add(index, builderForValue.build()); onChanged(); } else { aggregationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Specifies the alignment of data points in individual time series as * well as how to combine the retrieved time series together (such as * when aggregating multiple streams on each resource to a single * stream for each resource or when aggregating streams across all * members of a group of resrouces). Multiple aggregations * are applied in the order specified. * This field is similar to the one in the * [`MetricService.ListTimeSeries` request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). * It is advisable to use the `ListTimeSeries` method when debugging this field. * </pre> * * <code>repeated .google.monitoring.v3.Aggregation aggregations = 8;</code> */ public Builder setAggregations( int index, com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationsBuilder_ == null) { ensureAggregationsIsMutable(); aggregations_.set(index, builderForValue.build()); onChanged(); } else { aggregationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Specifies the alignment of data points in individual time series as * well as how to combine the retrieved time series together (such as * when aggregating multiple streams on each resource to a single * stream for each resource or when aggregating streams across all * members of a group of resrouces). Multiple aggregations * are applied in the order specified. * This field is similar to the one in the * [`MetricService.ListTimeSeries` request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). * It is advisable to use the `ListTimeSeries` method when debugging this field. * </pre> * * <code>repeated .google.monitoring.v3.Aggregation aggregations = 8;</code> */ public Builder addAggregations( com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationsBuilder_ == null) { ensureAggregationsIsMutable(); aggregations_.add(builderForValue.build()); onChanged(); } else { aggregationsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * By default, the raw time series data is returned. * Use this field to combine multiple time series for different * views of the data. * </pre> * * <code>.google.monitoring.v3.Aggregation aggregation = 5;</code> */ public Builder setAggregation(com.google.monitoring.v3.Aggregation.Builder builderForValue) { if (aggregationBuilder_ == null) { aggregation_ = builderForValue.build(); onChanged(); } else { aggregationBuilder_.setMessage(builderForValue.build()); } return this; } /**