Sha256: 275e077cf97e7e51b641d1c7779d7a1ab8e9545461b88701e2592915fc3aa016

Contents?: true

Size: 918 Bytes

Versions: 6

Compression:

Stored size: 918 Bytes

Contents

module Elasticsearch
  module XPack
    module API
      module MachineLearning
        module Actions

          # TODO: Description
          #
          # @option arguments [String] :calendar_id The ID of the calendar to modify (*Required*)
          # @option arguments [Hash] :body A list of events (*Required*)
          #
          # @see [TODO]
          #
          def post_calendar_events(arguments={})
            raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
            raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
            method = Elasticsearch::API::HTTP_POST
            path   = "_xpack/ml/calendars/#{arguments[:calendar_id]}/events"
            params = {}
            body   = arguments[:body]

            perform_request(method, path, params, body).body
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
elasticsearch-xpack-6.8.1 lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb
elasticsearch-xpack-6.8.0 lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb
elasticsearch-xpack-6.3.1 lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb
elasticsearch-xpack-6.3.0 lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb
elasticsearch-xpack-6.2.0 lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb
elasticsearch-xpack-6.1.0 lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb