Module: Elasticsearch::API::Streams::Actions
- Defined in:
- lib/elasticsearch/api/actions/streams/status.rb,
lib/elasticsearch/api/actions/streams/logs_enable.rb,
lib/elasticsearch/api/actions/streams/logs_disable.rb
Instance Method Summary collapse
-
#logs_disable(arguments = {}) ⇒ Object
Disable the Logs Streams feature for this cluster.
-
#logs_enable(arguments = {}) ⇒ Object
Enable the Logs Streams feature for this cluster.
-
#status(arguments = {}) ⇒ Object
Return the current status of the streams feature for each streams type.
Instance Method Details
#logs_disable(arguments = {}) ⇒ Object
Disable the Logs Streams feature for this cluster
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/streams/logs_disable.rb', line 31 def logs_disable(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'streams.logs_disable' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = '_streams/logs/_disable' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#logs_enable(arguments = {}) ⇒ Object
Enable the Logs Streams feature for this cluster
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/streams/logs_enable.rb', line 31 def logs_enable(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'streams.logs_enable' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = '_streams/logs/_enable' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#status(arguments = {}) ⇒ Object
Return the current status of the streams feature for each streams type
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/streams/status.rb', line 31 def status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'streams.status' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_streams/status' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |