Skip to content

[HLRC][ML] Add ML delete model snapshot API #35537

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

Merged

Conversation

edsavage
Copy link
Contributor

Relates #29827

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

public class DeleteModelSnapshotRequest extends ActionRequest {

private String jobId;
private String snapshotId;
Copy link
Member

Choose a reason for hiding this comment

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

Both of these should be final

*/
public void setSnapshotId(String snapshotId) {
this.snapshotId = Objects.requireNonNull(snapshotId, "[snapshot_id] must not be null");
}
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure these setters are necessary, there is only one constructor and it requires both parameters to be set anyways.

@edsavage edsavage merged commit 2d948a0 into elastic:master Nov 15, 2018
edsavage added a commit that referenced this pull request Nov 15, 2018
edsavage added a commit to edsavage/elasticsearch that referenced this pull request Nov 19, 2018
edsavage added a commit that referenced this pull request Nov 20, 2018
edsavage added a commit that referenced this pull request Nov 20, 2018
@tomcallahan tomcallahan removed the :ml Machine learning label Dec 18, 2018
@edsavage edsavage deleted the feature/add-ml-delete-model-snapshot-to-hlrc branch April 12, 2019 09:25
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.

5 participants