Module: Elasticsearch::XPack::API::Logstash::Actions
- Included in:
- LogstashClient
- Defined in:
- lib/elasticsearch/xpack/api/namespace/logstash.rb,
lib/elasticsearch/xpack/api/actions/logstash/get_pipeline.rb,
lib/elasticsearch/xpack/api/actions/logstash/put_pipeline.rb,
lib/elasticsearch/xpack/api/actions/logstash/delete_pipeline.rb
Instance Method Summary collapse
-
#delete_pipeline(arguments = {}) ⇒ Object
Deletes Logstash Pipelines used by Central Management.
-
#get_pipeline(arguments = {}) ⇒ Object
Retrieves Logstash Pipelines used by Central Management.
-
#put_pipeline(arguments = {}) ⇒ Object
Adds and updates Logstash Pipelines used for Central Management.
Instance Method Details
#delete_pipeline(arguments = {}) ⇒ Object
Deletes Logstash Pipelines used by Central Management
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/elasticsearch/xpack/api/actions/logstash/delete_pipeline.rb', line 30 def delete_pipeline(arguments = {}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] headers = arguments.delete(:headers) || {} arguments = arguments.clone _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE path = "_logstash/pipeline/#{Elasticsearch::API::Utils.__listify(_id)}" params = {} body = nil perform_request(method, path, params, body, headers).body end |
#get_pipeline(arguments = {}) ⇒ Object
Retrieves Logstash Pipelines used by Central Management
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/elasticsearch/xpack/api/actions/logstash/get_pipeline.rb', line 30 def get_pipeline(arguments = {}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] headers = arguments.delete(:headers) || {} arguments = arguments.clone _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET path = "_logstash/pipeline/#{Elasticsearch::API::Utils.__listify(_id)}" params = {} body = nil perform_request(method, path, params, body, headers).body end |
#put_pipeline(arguments = {}) ⇒ Object
Adds and updates Logstash Pipelines used for Central Management
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/elasticsearch/xpack/api/actions/logstash/put_pipeline.rb', line 31 def put_pipeline(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] headers = arguments.delete(:headers) || {} arguments = arguments.clone _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT path = "_logstash/pipeline/#{Elasticsearch::API::Utils.__listify(_id)}" params = {} body = arguments[:body] perform_request(method, path, params, body, headers).body end |