Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Add _cat/ml/data_frame/analytics API #52260

Merged
merged 3 commits into from
Feb 13, 2020

Conversation

przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Feb 12, 2020

Adds new _cat/ml/data_frame/analytics and _cat/ml/data_frame/analytics/{id} endpoints.

Example output for single job:

GET _cat/ml/data_frame/analytics/classifier_job_3
classifier_job_3 2020-02-12T11:49:16.928Z classification stopped

Example output for multiple jobs:

GET _cat/ml/data_frame/analytics?v
id               create_time              type             state
classifier_job_1 2020-02-12T11:49:09.594Z classification stopped
classifier_job_2 2020-02-12T11:49:14.479Z classification stopped
classifier_job_3 2020-02-12T11:49:16.928Z classification stopped
classifier_job_4 2020-02-12T11:49:19.127Z classification stopped
classifier_job_5 2020-02-12T11:49:21.349Z classification stopped

Help output:

GET _cat/ml/data_frame/analytics?help
id                     |                          | the id                                                     
type                   | t                        | analysis type                                              
create_time            | ct,createTime            | job creation time                                          
version                | v                        | the version of Elasticsearch when the analytics was created
source_index           | si,sourceIndex           | source index                                               
dest_index             | di,destIndex             | destination index                                          
description            | d                        | description                                                
model_memory_limit     | mml,modelMemoryLimit     | model memory limit                                         
state                  | s                        | job state                                                  
failure_reason         | fr,failureReason         | failure reason                                             
progress               | p                        | progress                                                   
assignment_explanation | ae,assignmentExplanation | why the job is or is not assigned to a node                
node.id                | ni,nodeId                | id of the assigned node                                    
node.name              | nn,nodeName              | name of the assigned node                                  
node.ephemeral_id      | ne,nodeEphemeralId       | ephemeral id of the assigned node                          
node.address           | na,nodeAddress           | network address of the assigned node  

Relates #51413

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@benwtrent benwtrent self-requested a review February 12, 2020 12:02
Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should also include dataframe analytics version as well as an optional column?

Copy link
Contributor Author

@przemekwitek przemekwitek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should also include dataframe analytics version as well as an optional column?

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants