elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb
def forecast(arguments = {})
          raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]

          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          _job_id = arguments.delete(:job_id)

          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_forecast"
          params = Utils.process_params(arguments)

          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
# Predicts the future behavior of a time series by using its historical behavior.
#
# @option arguments [String] :job_id The ID of the job to forecast for
# @option arguments [Time] :duration The duration of the forecast
# @option arguments [Time] :expires_in The time interval after which the forecast expires. Expired forecasts will be deleted at the first opportunity.
# @option arguments [String] :max_model_memory The max memory able to be used by the forecast. Default is 20mb.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body Query parameters can be specified in the body
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html
#
Predicts the future behavior of a time series by using its historical behavior.
Predicts the future behavior of a time series by using its historical behavior .
def forecast(arguments = {})
          raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          _job_id = arguments.delete(:job_id)
          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_forecast"
          params = Utils.process_params(arguments)
          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
def forecast ( arguments = { } ) raise ArgumentError , "Required argument 'job_id' missing" unless arguments [ :job_id ] arguments = arguments . clone headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) _job_id = arguments . delete ( :job_id ) method = Elasticsearch :: API :: HTTP_POST path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_forecast" params = Utils . process_params ( arguments ) Elasticsearch :: API :: Response . new ( perform_request ( method , path , params , body , headers ) ) end
Predicts the future behavior of a time series by using its historical behavior.
Predicts the future behavior of a time series by using its historical behavior .
arguments
:body Query parameters can be specified in the body
: body Query parameters can be specified in the body
see
None