Interface AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder (3.47.0)

See more code actions.
public static interface AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder extends MessageOrBuilder
MessageOrBuilder

getForecastHorizon()

public abstract Duration 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. The forecast horizon can range from 1 hour to 60 hours.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The forecastHorizon.

getForecastHorizonOrBuilder()

public abstract DurationOrBuilder getForecastHorizonOrBuilder()

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. The forecast horizon can range from 1 hour to 60 hours.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

hasForecastHorizon()

public abstract boolean hasForecastHorizon()

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. The forecast horizon can range from 1 hour to 60 hours.

.google.protobuf.Duration forecast_horizon = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the forecastHorizon field is set.