lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb in elasticsearch-xpack-5.5.0 vs lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb in elasticsearch-xpack-6.0.0
- old
+ new
@@ -2,17 +2,17 @@
module XPack
module API
module MachineLearning
module Actions
- # TODO: Description
+ # Send data to an anomaly detection job for analysis
#
# @option arguments [String] :job_id The name of the job receiving the data (*Required*)
# @option arguments [Hash] :body The data to process (*Required*)
# @option arguments [String] :reset_start Optional parameter to specify the start of the bucket resetting range
# @option arguments [String] :reset_end Optional parameter to specify the end of the bucket resetting range
#
- # @see http://www.elastic.co/guide/en/x-pack/current/ml-post-data.html
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html
#
def post_data(arguments={})
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
valid_params = [