Module: Elasticsearch::API::Logstash::Actions
- Included in:
- LogstashClient
- Defined in:
- lib/elasticsearch/api/namespace/logstash.rb,
lib/elasticsearch/api/actions/logstash/get_pipeline.rb,
lib/elasticsearch/api/actions/logstash/put_pipeline.rb,
lib/elasticsearch/api/actions/logstash/delete_pipeline.rb more...
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
permalink #delete_pipeline(arguments = {}) ⇒ Object
Deletes Logstash Pipelines used by Central Management
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/logstash/delete_pipeline.rb', line 32 def delete_pipeline(arguments = {}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE path = "_logstash/pipeline/#{Utils.__listify(_id)}" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #get_pipeline(arguments = {}) ⇒ Object
Retrieves Logstash Pipelines used by Central Management
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/elasticsearch/api/actions/logstash/get_pipeline.rb', line 32 def get_pipeline(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET path = if _id "_logstash/pipeline/#{Utils.__listify(_id)}" else "_logstash/pipeline" end params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #put_pipeline(arguments = {}) ⇒ Object
Adds and updates Logstash Pipelines used for Central Management
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/elasticsearch/api/actions/logstash/put_pipeline.rb', line 33 def put_pipeline(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT path = "_logstash/pipeline/#{Utils.__listify(_id)}" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |