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
30 31 32 33 34 35 36 37 38 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb', line 30 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
30 31 32 33 34 35 36 37 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb', line 30 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
28 29 30 31 32 33 34 35 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb', line 28 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
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/put_job.rb', line 31 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
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb', line 32 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, :rest_total_hits_as_int ] 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
30 31 32 33 34 35 36 37 38 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/start_job.rb', line 30 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
30 31 32 33 34 35 36 37 38 |
# File 'lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb', line 30 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 |