Module: Elasticsearch::XPack::API::Rollup::Actions
- Included in:
- RollupClient
- Defined in:
- lib/elasticsearch/xpack/api/namespace/rollup.rb,
lib/elasticsearch/xpack/api/actions/rollup/put_job.rb,
lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb,
lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb,
lib/elasticsearch/xpack/api/actions/rollup/start_job.rb,
lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb,
lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb,
lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb,
lib/elasticsearch/xpack/api/actions/rollup/get_rollup_index_caps.rb
Instance Method Summary collapse
-
#delete_job(arguments = {}) ⇒ Object
TODO: Description.
-
#get_jobs(arguments = {}) ⇒ Object
TODO: Description.
-
#get_rollup_caps(arguments = {}) ⇒ Object
TODO: Description.
-
#get_rollup_index_caps(arguments = {}) ⇒ Object
TODO: Description.
-
#put_job(arguments = {}) ⇒ Object
TODO: Description.
-
#rollup_search(arguments = {}) ⇒ Object
TODO: Description.
-
#start_job(arguments = {}) ⇒ Object
TODO: Description.
-
#stop_job(arguments = {}) ⇒ Object
TODO: Description.
Instance Method Details
#delete_job(arguments = {}) ⇒ Object
TODO: Description
13 14 15 16 17 18 19 20 21 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb', line 13 def delete_job(arguments={}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] method = Elasticsearch::API::HTTP_DELETE path = "_xpack/rollup/job/#{arguments[:id]}" params = {} body = nil perform_request(method, path, params, body).body end |
#get_jobs(arguments = {}) ⇒ Object
TODO: Description
13 14 15 16 17 18 19 20 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb', line 13 def get_jobs(arguments={}) method = Elasticsearch::API::HTTP_GET path = "_xpack/rollup/job/#{arguments[:id]}" params = {} body = nil perform_request(method, path, params, body).body end |
#get_rollup_caps(arguments = {}) ⇒ Object
TODO: Description
11 12 13 14 15 16 17 18 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb', line 11 def get_rollup_caps(arguments={}) method = Elasticsearch::API::HTTP_GET path = "_xpack/rollup/data/#{arguments[:id]}" params = {} body = nil perform_request(method, path, params, body).body end |
#get_rollup_index_caps(arguments = {}) ⇒ Object
TODO: Description
13 14 15 16 17 18 19 20 21 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/get_rollup_index_caps.rb', line 13 def get_rollup_index_caps(arguments={}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] method = Elasticsearch::API::HTTP_GET path = "#{arguments[:index]}/_xpack/rollup/data" params = {} body = nil perform_request(method, path, params, body).body end |
#put_job(arguments = {}) ⇒ Object
TODO: Description
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/put_job.rb', line 14 def put_job(arguments={}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] method = Elasticsearch::API::HTTP_PUT path = "_xpack/rollup/job/#{arguments[:id]}" params = {} body = arguments[:body] perform_request(method, path, params, body).body end |
#rollup_search(arguments = {}) ⇒ Object
TODO: Description
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb', line 15 def rollup_search(arguments={}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] valid_params = [ :typed_keys ] method = Elasticsearch::API::HTTP_GET path = "#{arguments[:index]}/_rollup_search" params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params body = arguments[:body] perform_request(method, path, params, body).body end |
#start_job(arguments = {}) ⇒ Object
TODO: Description
13 14 15 16 17 18 19 20 21 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/start_job.rb', line 13 def start_job(arguments={}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] method = Elasticsearch::API::HTTP_POST path = "_xpack/rollup/job/#{arguments[:id]}/_start" params = {} body = nil perform_request(method, path, params, body).body end |
#stop_job(arguments = {}) ⇒ Object
TODO: Description
13 14 15 16 17 18 19 20 21 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb', line 13 def stop_job(arguments={}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] method = Elasticsearch::API::HTTP_POST path = "_xpack/rollup/job/#{arguments[:id]}/_stop" params = {} body = nil perform_request(method, path, params, body).body end |