Interface AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder (3.33.0)

public static interface AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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.

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

Returns
TypeDescription
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.

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

Returns
TypeDescription
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.

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

Returns
TypeDescription
boolean

Whether the forecastHorizon field is set.