public static final class AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AlertPolicy.Condition.MetricThreshold.ForecastOptions build()
buildPartial()
public AlertPolicy.Condition.MetricThreshold.ForecastOptions buildPartial()
clear()
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder clone()
Overrides
getDefaultInstanceForType()
public AlertPolicy.Condition.MetricThreshold.ForecastOptions getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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
|
mergeFrom(AlertPolicy.Condition.MetricThreshold.ForecastOptions other)
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(AlertPolicy.Condition.MetricThreshold.ForecastOptions other)
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
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
|
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Condition.MetricThreshold.ForecastOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides