Monitoring/src/V3/Aggregation.php
public function setPerSeriesAligner($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Monitoring\V3\Aggregation_Aligner::class);
        $this->per_series_aligner = $var;

        return $this;
    }
public function setPerSeriesAligner($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Monitoring\V3\Aggregation_Aligner::class);
        $this->per_series_aligner = $var;

        return $this;
    }
public function setPerSeriesAligner ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Monitoring \ V3 \ Aggregation_Aligner :: class ) ; $ this -> per_series_aligner = $ var ; return $ this ; }
The approach to be used to align individual time series. Not all
alignment functions may be applied to all time series, depending
on the metric type and value type of the original time
series. Alignment may change the metric type or the value type of
the time series.
Time series data must be aligned in order to perform cross-time
series reduction. If `crossSeriesReducer` is specified, then
`perSeriesAligner` must be specified and not equal `ALIGN_NONE`
and `alignmentPeriod` must be specified; otherwise, an error is
returned.

Generated from protobuf field <code>.google.monitoring.v3.Aggregation.Aligner per_series_aligner = 2;</code>
@param int $var
@return $this
The approach to be used to align individual time series . Not all alignment functions may be applied to all time series depending on the metric type and value type of the original time series . Alignment may change the metric type or the value type of the time series . Time series data must be aligned in order to perform cross - time series reduction . If crossSeriesReducer is specified then perSeriesAligner must be specified and not equal ALIGN_NONE and alignmentPeriod must be specified ; otherwise an error is returned .