Class: Google::Apis::MonitoringV3::ForecastOptions
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::ForecastOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
Options used when forecasting the time series and testing the predicted value against the threshold.
Instance Attribute Summary collapse
-
#forecast_horizon ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ForecastOptions
constructor
A new instance of ForecastOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ForecastOptions
Returns a new instance of ForecastOptions.
1602 1603 1604 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1602 def initialize(**args) update!(**args) end |
Instance Attribute Details
#forecast_horizon ⇒ String
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.
Corresponds to the JSON property forecastHorizon
1600 1601 1602 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1600 def forecast_horizon @forecast_horizon end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1607 1608 1609 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1607 def update!(**args) @forecast_horizon = args[:forecast_horizon] if args.key?(:forecast_horizon) end |