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

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

          body = arguments.delete(:body)

          arguments = arguments.clone

          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/anomaly_detectors/_validate/detector"
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Validates an anomaly detection detector.
#
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The detector (*Required*)
#
# @see https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html
#
Validates an anomaly detection detector.
Validates an anomaly detection detector .
def validate_detector(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          method = Elasticsearch::API::HTTP_POST
          path   = "_ml/anomaly_detectors/_validate/detector"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def validate_detector ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone method = Elasticsearch :: API :: HTTP_POST path = "_ml/anomaly_detectors/_validate/detector" params = { } perform_request ( method , path , params , body , headers ) . body end
Validates an anomaly detection detector.
Validates an anomaly detection detector .
arguments
:body The detector (*Required*)
: body The detector ( * Required * )
see
None