Reference documentation and code samples for the Stackdriver Monitoring V3 Client class ForecastOptions.
Options used when forecasting the time series and testing the predicted value against the threshold.
Generated from protobuf message google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions
Namespace
Google \ Cloud \ Monitoring \ V3 \ AlertPolicy \ Condition \ MetricThresholdMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ forecast_horizon |
Google\Protobuf\Duration
Required. The length of time into the future to forecast whether a time series will violate the threshold. If the predicted value is found to violate the threshold, and the violation is observed in all forecasts made for the configured |
getForecastHorizon
Required. The length of time into the future to forecast whether a
time series will violate the threshold. If the predicted value is
found to violate the threshold, and the violation is observed in all
forecasts made for the configured duration
, then the time series is
considered to be failing.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Duration|null |
hasForecastHorizon
clearForecastHorizon
setForecastHorizon
Required. The length of time into the future to forecast whether a
time series will violate the threshold. If the predicted value is
found to violate the threshold, and the violation is observed in all
forecasts made for the configured duration
, then the time series is
considered to be failing.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |