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

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

          body = arguments.delete(:body)

          _calendar_id = arguments.delete(:calendar_id)

          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/calendars/#{Utils.__listify(_calendar_id)}/events"
          params = {}

          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
# Posts scheduled events in a calendar.
#
# @option arguments [String] :calendar_id The ID of the calendar to modify
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body A list of events (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html
#
Posts scheduled events in a calendar.
Posts scheduled events in a calendar .
def post_calendar_events(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          _calendar_id = arguments.delete(:calendar_id)
          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/calendars/#{Utils.__listify(_calendar_id)}/events"
          params = {}
          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
def post_calendar_events ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'calendar_id' missing" unless arguments [ :calendar_id ] arguments = arguments . clone headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) _calendar_id = arguments . delete ( :calendar_id ) method = Elasticsearch :: API :: HTTP_POST path = "_ml/calendars/#{Utils.__listify(_calendar_id)}/events" params = { } Elasticsearch :: API :: Response . new ( perform_request ( method , path , params , body , headers ) ) end
Posts scheduled events in a calendar.
Posts scheduled events in a calendar .
arguments
:body A list of events (*Required*)
: body A list of events ( * Required * )
see
None