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 job reset endpoint #494

Closed
jgowdyelastic opened this issue Jul 19, 2021 · 0 comments · Fixed by #524
Closed

ML job reset endpoint #494

jgowdyelastic opened this issue Jul 19, 2021 · 0 comments · Fixed by #524

Comments

@jgowdyelastic
Copy link
Member

jgowdyelastic commented Jul 19, 2021

A new endpoint has been added for reseting anomaly detection jobs
elastic/elasticsearch#73908

POST _ml/anomaly_detectors/<job_id>/_reset

I imagine the request type will looks something like this

export interface MlResetJobRequest extends RequestBase {
  job_id: Id
  wait_for_completion?: boolean
}

MlJob will also need updating with new properties added with this reset work

 class MlJob {
...
+ blocked?: MlJobBlocked
 }

where MlJobBlocked should look like this:

MlJobBlocked {
  reason: 'delete' | 'revert' | 'reset';
  task_id?: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant