Module: Elastic::EnterpriseSearch::Actions
- Included in:
- Client
- Defined in:
- lib/elastic/enterprise-search/api/stats.rb,
lib/elastic/enterprise-search/api/health.rb,
lib/elastic/enterprise-search/api/version.rb,
lib/elastic/enterprise-search/api/read_only.rb,
lib/elastic/enterprise-search/api/put_read_only.rb,
lib/elastic/enterprise-search/api/search_engines.rb
Instance Method Summary collapse
-
#health(arguments = {}) ⇒ Object
Health - Get information on the health of a deployment and basic statistics around resource usage Get information on the health of a deployment and basic statistics around resource usage.
-
#put_read_only(arguments = {}) ⇒ Object
Read-Only - Update the read-only flag’s state Update the read-only flag’s state.
-
#read_only(arguments = {}) ⇒ Object
Read-Only - Get the read-only flag’s state Get the read-only flag’s state.
-
#search_engines(arguments = {}) ⇒ Object
SearchEngines - Retrieve information about search engines Retrieve information about search engines.
-
#stats(arguments = {}) ⇒ Object
Stats - Get information about the resource usage of the application, the state of different internal queues, etc.
-
#version(arguments = {}) ⇒ Object
Version - Get version information for this server Get version information for this server.
Instance Method Details
#health(arguments = {}) ⇒ Object
Health - Get information on the health of a deployment and basic statistics around resource usage Get information on the health of a deployment and basic statistics around resource usage
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/elastic/enterprise-search/api/health.rb', line 31 def health(arguments = {}) headers = arguments.delete(:headers) || {} request( :get, 'api/ent/v1/internal/health/', arguments, nil, headers ) end |
#put_read_only(arguments = {}) ⇒ Object
Read-Only - Update the read-only flag’s state Update the read-only flag’s state
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/elastic/enterprise-search/api/put_read_only.rb', line 33 def put_read_only(arguments = {}) raise ArgumentError, "Required parameter 'body (enabled)' missing" unless arguments[:body] body = arguments.delete(:body) || {} headers = arguments.delete(:headers) || {} request( :put, 'api/ent/v1/internal/read_only_mode/', arguments, body, headers ) end |
#read_only(arguments = {}) ⇒ Object
Read-Only - Get the read-only flag’s state Get the read-only flag’s state
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/elastic/enterprise-search/api/read_only.rb', line 31 def read_only(arguments = {}) headers = arguments.delete(:headers) || {} request( :get, 'api/ent/v1/internal/read_only_mode/', arguments, nil, headers ) end |
#search_engines(arguments = {}) ⇒ Object
SearchEngines - Retrieve information about search engines Retrieve information about search engines
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/elastic/enterprise-search/api/search_engines.rb', line 31 def search_engines(arguments = {}) headers = arguments.delete(:headers) || {} request( :get, 'api/search_engines/', arguments, nil, headers ) end |
#stats(arguments = {}) ⇒ Object
Stats - Get information about the resource usage of the application, the state of different internal queues, etc. Get information about the resource usage of the application, the state of different internal queues, etc.
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/elastic/enterprise-search/api/stats.rb', line 32 def stats(arguments = {}) headers = arguments.delete(:headers) || {} request( :get, 'api/ent/v1/internal/stats/', arguments, nil, headers ) end |
#version(arguments = {}) ⇒ Object
Version - Get version information for this server Get version information for this server
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/elastic/enterprise-search/api/version.rb', line 31 def version(arguments = {}) headers = arguments.delete(:headers) || {} request( :get, 'api/ent/v1/internal/version/', arguments, nil, headers ) end |