Class AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder (3.84.0)

public static final class AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder extends GeneratedMessage.Builder<AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder> implements AlertPolicy.Condition.MetricThreshold.ForecastOptionsOrBuilder

Options used when forecasting the time series and testing the predicted value against the threshold.

Protobuf type google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions build()
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions

buildPartial()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions buildPartial()
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions

clear()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clear()
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

clearForecastHorizon()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clearForecastHorizon()

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
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

getDefaultInstanceForType()

public AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType()
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getForecastHorizon()

public 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.

getForecastHorizonBuilder()

public Duration.Builder getForecastHorizonBuilder()

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
Builder

getForecastHorizonOrBuilder()

public 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeForecastHorizon(Duration value)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeForecastHorizon(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

mergeFrom(AlertPolicy.Condition.MetricThreshold.ForecastOptions other)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(AlertPolicy.Condition.MetricThreshold.ForecastOptions other)
Parameter
Name Description
other AlertPolicy.Condition.MetricThreshold.ForecastOptions
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder
Overrides

setForecastHorizon(Duration value)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setForecastHorizon(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder

setForecastHorizon(Duration.Builder builderForValue)

public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setForecastHorizon(Duration.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder