Module: Elasticsearch::XPack::API::Cat::Actions
- Included in:
- CatClient
- Defined in:
- lib/elasticsearch/xpack/api/namespace/cat.rb,
lib/elasticsearch/xpack/api/actions/cat/ml_jobs.rb,
lib/elasticsearch/xpack/api/actions/cat/transform.rb,
lib/elasticsearch/xpack/api/actions/cat/transforms.rb,
lib/elasticsearch/xpack/api/actions/cat/ml_datafeeds.rb,
lib/elasticsearch/xpack/api/actions/cat/params_registry.rb,
lib/elasticsearch/xpack/api/actions/cat/ml_trained_models.rb,
lib/elasticsearch/xpack/api/actions/cat/ml_data_frame_analytics.rb
Defined Under Namespace
Modules: ParamsRegistry
Instance Method Summary collapse
-
#ml_data_frame_analytics(arguments = {}) ⇒ Object
Gets configuration and usage information about data frame analytics jobs.
-
#ml_datafeeds(arguments = {}) ⇒ Object
Gets configuration and usage information about datafeeds.
-
#ml_jobs(arguments = {}) ⇒ Object
Gets configuration and usage information about anomaly detection jobs.
-
#ml_trained_models(arguments = {}) ⇒ Object
Gets configuration and usage information about inference trained models.
- #transform(arguments = {}) ⇒ Object
-
#transforms(arguments = {}) ⇒ Object
Gets configuration and usage information about transforms.
Instance Method Details
#ml_data_frame_analytics(arguments = {}) ⇒ Object
Gets configuration and usage information about data frame analytics jobs.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/elasticsearch/xpack/api/actions/cat/ml_data_frame_analytics.rb', line 38 def ml_data_frame_analytics(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET path = if _id "_cat/ml/data_frame/analytics/#{Elasticsearch::API::Utils.__listify(_id)}" else "_cat/ml/data_frame/analytics" end params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end |
#ml_datafeeds(arguments = {}) ⇒ Object
Gets configuration and usage information about datafeeds.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/elasticsearch/xpack/api/actions/cat/ml_datafeeds.rb', line 38 def ml_datafeeds(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone _datafeed_id = arguments.delete(:datafeed_id) method = Elasticsearch::API::HTTP_GET path = if _datafeed_id "_cat/ml/datafeeds/#{Elasticsearch::API::Utils.__listify(_datafeed_id)}" else "_cat/ml/datafeeds" end params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end |
#ml_jobs(arguments = {}) ⇒ Object
Gets configuration and usage information about anomaly detection jobs.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/elasticsearch/xpack/api/actions/cat/ml_jobs.rb', line 39 def ml_jobs(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_GET path = if _job_id "_cat/ml/anomaly_detectors/#{Elasticsearch::API::Utils.__listify(_job_id)}" else "_cat/ml/anomaly_detectors" end params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end |
#ml_trained_models(arguments = {}) ⇒ Object
Gets configuration and usage information about inference trained models.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/elasticsearch/xpack/api/actions/cat/ml_trained_models.rb', line 40 def ml_trained_models(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_GET path = if _model_id "_cat/ml/trained_models/#{Elasticsearch::API::Utils.__listify(_model_id)}" else "_cat/ml/trained_models" end params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end |
#transform(arguments = {}) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/elasticsearch/xpack/api/actions/cat/transform.rb', line 42 def transform(arguments = {}) arguments = arguments.clone _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_GET path = if _transform_id "_cat/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}" else "_cat/transforms" end params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body).body end |
#transforms(arguments = {}) ⇒ Object
Gets configuration and usage information about transforms.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/elasticsearch/xpack/api/actions/cat/transforms.rb', line 39 def transforms(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_GET path = if _transform_id "_cat/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}" else "_cat/transforms" end params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = nil perform_request(method, path, params, body, headers).body end |