Skip to content

Commit

Permalink
[ML] Use 'anomaly-detector' in job config doc name (#36254)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Dec 5, 2018
1 parent fd1e6d4 commit 29fc10d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public DatafeedConfig(StreamInput in) throws IOException {
* @return The ID of document the datafeed config is persisted in
*/
public static String documentId(String datafeedId) {
return "datafeed-" + datafeedId;
return TYPE + "-" + datafeedId;
}

public String getId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public static String documentId(String jobId) {
throw new IllegalArgumentException(Messages.getMessage(Messages.JOB_CONFIG_ID_TOO_LONG, MlStrings.ID_LENGTH_LIMIT));
}

return "job-" + jobId;
return ANOMALY_DETECTOR_JOB_TYPE + "-" + jobId;
}


Expand Down

0 comments on commit 29fc10d

Please sign in to comment.